Skip to content

Instantly share code, notes, and snippets.

@potomak
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save potomak/983e5d59964bd8860013 to your computer and use it in GitHub Desktop.
Save potomak/983e5d59964bd8860013 to your computer and use it in GitHub Desktop.
Minimal tmux cheatsheet

Minimal tmux cheatsheet

Command line

$ tmux                 # start tmux
$ tmux attach-session  # attach to an existing session

Attached client

Prefix commands with C-b (Ctrl-b) by default.

Sessions

:new  # create new session
s     # list sessions

Windows

c                               # create new window
w                               # list windows
:swap-window -t <dst-window>    # swap current window to <dst-window> (alias: swapw)
:move-window -t <dst-session>:  # move current window to <dst-session> as a new window (alias: movew)

Panes

%  # vertical split
"  # horizontal split
o  # swap panes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment