Skip to content

Instantly share code, notes, and snippets.

@jkereako
Last active May 11, 2016 03:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkereako/027c05c00034ed002d98 to your computer and use it in GitHub Desktop.
Save jkereako/027c05c00034ed002d98 to your computer and use it in GitHub Desktop.
My cheatsheet for Tmux

My configuration

I use Thoughtbot's dotfiles which has the prefix combination set to control S

Sessions

command
Start new session tmux new -s session_name
End session tmux kill-session -t session_name

Panes

command keystrokes
Split window horizontally tmux split-window control S + "
Split window vertically tmux split-window -h control S + %
Swap pane tmux swap-pane -[UDLR] control S + { or }
Kill pane control S + X
Copy mode control S + [
Quit copy mode Q

"Copy mode" allows you to scroll the pane with your mouse or arrow keys.

Further reading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment