Skip to content

Instantly share code, notes, and snippets.

@parkjinwoo
Created December 19, 2016 07:19
Show Gist options
  • Save parkjinwoo/2c8468de7b92b93b3a22b59ae16b1978 to your computer and use it in GitHub Desktop.
Save parkjinwoo/2c8468de7b92b93b3a22b59ae16b1978 to your computer and use it in GitHub Desktop.

command

  • ctrl + b + :

session

  • tmux ls
  • tmux new -s [session-name]
  • tmux a -t [session-name]
  • ctrl + b + d (detach)
  • ctrl + b + $ (rename session)
  • ctrl + d (exit)

window

  • tmux new -s [session-name] -n [window-name]
  • ctrl + b + c (new window)
  • ctrl + b + , (rename window)
  • ctrl + b + w (move)
  • ctrl + b + n, ctrl + b + p
  • ctrl + b + f (find window)
  • ctrl + b + [window number]
  • ctrl + b + l (last window)
  • ctrl + d (exit)
  • ctrl + b + &

pane

  • ctrl + b + % (split-window -h)
  • ctrl + b + " (split-window -v)
  • ctrl + b + [arrow key] (move)
  • ctrl + b + o
  • ctrl + d (exit)
  • ctrl + b + x
  • ctrl + b + alt + [arrow key] (resize-pane -[L,R,D,U] [num])
  • ctrl + b + spacebar (auto layout)
  • :setw synchronize-panes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment