Skip to content

Instantly share code, notes, and snippets.

@pinealan
Last active February 6, 2018 14:32
Show Gist options
  • Save pinealan/6b097687050b44e3f79b3b42083cdd3b to your computer and use it in GitHub Desktop.
Save pinealan/6b097687050b44e3f79b3b42083cdd3b to your computer and use it in GitHub Desktop.
Tmux cheatsheet (custom)

Tmux cheatsheet

The prefix key is C-a

From terminal:

tmux new -s <session-name>                          Create and attach to new session
tmux attach -t <session-name>                       Attach to existing session
tmux new -t <target-session> -s <session-name>      Create new <session-name> that is grouped with <target-session>

Session:

C-a d         detach from tmux
C-a s         choose a session from a list

Windows:

C-a n         next window
C-a p         previous window
C-a 1 ...     switch to window 0,1...9
C-a ,         rename window
C-a .         reindex window
C-a c         create new window
C-a '         vertical split
C-a "         horizontal split

Pane:

C-a h         focus on right pane
C-a l         focus on left pane
C-a j         focus on upper pane
C-a k         focus on lower pane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment