start new:
tmux
start new with session name:
tmux new -s myname
attach:
tmux a | at | attach
attach to named:
tmux a -t myname
list sessions:
tmux ls
kill session:
tmux kill-session -t myname
^B :new<CR> new session
^B s list sessions
^B $ name session
^B c new window
^B n|p switch windows
^B , name window
^B w list windows
^B f find window
^B & kill window
^B . move window - prompted for a new number
^B :movew<CR> move window to the next unused number
^B % horizontal split
^B " vertical split
^B h|j|k|l switch panes
^B o swap panes
^B q show pane numbers
^B x kill pane
^B ⍽ space - toggle between layouts:
even-vertical, even-horizontal, main-horizontal,
main-vertical, tiled
^B :joinp -s :2<CR> move window 2 into a new pane in the current window
^B :joinp -t :1<CR> move the current pane into a new pane in window 1
^B d detach
^B t big clock
^B ? list shortcuts
^B : tmux prompt
Resources:
Notes:
- You can Cmd+click URLs to open in iTerm.