Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.33 KB

tmux_keybindings.md

File metadata and controls

41 lines (30 loc) · 1.33 KB

tmux keybindings

  • C-b [ - scrolling mode (using arrows or Page Up/Down)

Panes

  • C-b % - split vertically (change to not require holding shift?)
  • C-b " - split horizontally (change?)
  • C-b - navigate between panes
  • C-b z - make a pane go fullscreen (Zen mode?)
  • C-b C- - resize pane in the direction of the arrow key

Ctrl+D to close a pane (just like closing a regular session).

Windows

Windows in tmux work similarly to tabs in the terminal (so why not just use those, one might ask?).

  • C-b c - create new window
  • C-b p - switch to previous window
  • C-b n - switch to next window
  • C-b - switch to a specific window
  • C-b , - rename current window

Sessions

  • C-b d - detach current session, leaving processes running in the background. Same as tmux detach.
  • tmux attach -t SOMENAME - attach to session SOMENAME (from tmux ls output; default names are ints). If there's just one session, can also just run tmux attach.
  • C-b C-z - suspend session (change this? It's too similar to zen mode)
  • tmux ls - list sessions
  • tmux new -s HACKING - create a new session named HACKING
  • tmux rename-session -t 0 HACKING - rename session 0 to HACKING

TODO