Quick shortcuts for OS161 (for my own reference)
- Run ctags on the source folder, makes it easier to navigate through code.
cd os161\ ctags -R -
tmux shortcuts,
a. All commands are triggered by prefix key -
Ctrl+B, pressCtrlandbtogether.b. To split the pane, in left and right
Ctrl + BthenShift + %.c. To split the pane, in top and bottom
Ctrl + BthenShift + ".d. To Exit from the current pane, type
exitor hitCtrl + D.e. To navigate, Press
Ctrl + B, then use arrow keys to navigate. -
Vim and ctags shortcuts,
a.
Ctrl + ]to go to definition.b.
Ctrl + Tto 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
-
Debugging OS-161 kernel,
a. Run
sys161 -w kernelin a new window.b. Run
os161-gdb kernelin another window. In this window, runtarget remote unix:.sockets/gdb.