Skip to content

Instantly share code, notes, and snippets.

@ayozebarrera
Last active August 29, 2015 14:24
Show Gist options
  • Save ayozebarrera/77e49aa16db192133c04 to your computer and use it in GitHub Desktop.
Save ayozebarrera/77e49aa16db192133c04 to your computer and use it in GitHub Desktop.

#Tmux Cheat Sheet

Dotfiles: richardkall/dotfiles

##Basic

Command Description
<C-a> Prefix
<Prefix> : Command mode
<Prefix> ? Show bindings

##Sessions

Command Description
$ tn {name} New session
$ ta {name} Attach to session
$ tls, <Prefix> s List sessions
$ exit Destroy session
<Prefix> (, ) Next/previous session
<Prefix> d Detach from session

##Windows

Command Description
<Prefix>{#} Select window by number
<Prefix> <C-h>, <C-l> Next/previous window
<Prefix> <C-o> Rotate window
<Prefix> , Rename window
<Prefix> X Kill window

##Panes

Command Description
<Prefix> %, " Split horizontal/vertical
<Prefix> _ Split vertical 75/25
<Prefix> h, j, k, l Navigate between panes
<Prefix> <Space> Cycle layouts
<Prefix> <S-{> Rotate panes
<Prefix> <C-a> Switch to last pane
<Prefix> H, J, K, L Resize panes
<Prefix> z Maximize pane
<Prefix> q Display pane numbers
<Prefix> ! Create window from pane
<Prefix> <C-l> Clear buffer
<Prefix> x Close pane

##Copy mode

Command Description
<Prefix> [ Enter copy mode
v Highlight
y Copy selection
g, G Go to top/bottom
<C-b>, <C-f> Page up/down
/, ? Search forward/backward
q, <CR> Exit copy mode

##Tmuxinator

Command Description
$ mux list List projects
$ mux {name} Launch project
$ mux new {name} New project
$ mux open {name} Edit project
$ mux copy {old} {new} Duplicate project
$ mux delete {name} Delete project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment