A blog on Computer Systems & Algorithms

Home | About | Contacts | Archive

Quick shortcuts for OS161 (for my own reference)

  1. Run ctags on the source folder, makes it easier to navigate through code.
    cd os161\
    ctags -R
    
  2. tmux shortcuts,

    a. All commands are triggered by prefix key - Ctrl+B, press Ctrl and b together.

    b. To split the pane, in left and right Ctrl + B then Shift + %.

    c. To split the pane, in top and bottom Ctrl + B then Shift + ".

    d. To Exit from the current pane, type exit or hit Ctrl + D.

    e. To navigate, Press Ctrl + B, then use arrow keys to navigate.

  3. Vim and ctags shortcuts,

    a. Ctrl + ] to go to definition.

    b. Ctrl + T to jump back from definition.

    c. Ctrl + W, Ctrl + ] open definition in a horizontal split.

    d.Add these lines in vimrc map <C-> :tab split:exec("tag ".expand("")) map <A-]> :vsp :exec("tag ".expand(""))

    Ctrl+\ - Open the definition in a new tab Alt+] - Open the definition in a vertical split

  4. Debugging OS-161 kernel,

    a. Run sys161 -w kernel in a new window.

    b. Run os161-gdb kernel in another window. In this window, run target remote unix:.sockets/gdb.