Skip to content

Instantly share code, notes, and snippets.

@justinwalz
Created March 15, 2016 06:05
Show Gist options
  • Save justinwalz/7d9468eaf73e93fe4ffe to your computer and use it in GitHub Desktop.
Save justinwalz/7d9468eaf73e93fe4ffe to your computer and use it in GitHub Desktop.
tmux cheat sheet
#######################################
Sessions
# list sessions
tmux ls
# new session
tmux new -s <foo>
# new session with name
tmux new -s <foo> -n <shell>
# attach to session by name (or number)
tmux attach -t <foo>
tmux a -t <foo>
# kill
tmux kill-session -t basic
#######################################
Windows
# create windows
PRE C - create new window
PRE , - rename a window
# find windows
PRE n - next window
PRE p - previous window
PRE w - choose window
PRE f - find window by name
#######################################
Panes
PRE " - split horz
PRE % - split vert
PRE o - cycle
PRE <arrow> - cycle direction
PRE SPACE - switch layouts
PRE x - kill pane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment