Windows
start a new session with the name mysession and window mywindow
- tmux new -s mysession -n mywindow
Create window
- ctrl+b c
Rename current window
- ctrl+b ,
Close current window
- ctrl+b &
List windows
- ctrl+b w
Previous window
- ctrl+b p
Next window
- ctrl+b n
Switch/select window by number
- ctrl+b 0..9
Toggle last active window
- ctrl+b l
Reorder window, swap window number 2(src) and 1(dst)
- :swap-window -s 2 -t 1
Move current window to the left by one position
- :swap-window -t -1
Move window from source to target
- :move-window -s src_ses:win -t target_ses:win
- :movew -s foo:0 -t bar:9
- :movew -s 0:0 -t 1:9
Reposition window in the current session
- :move-window -s src_session:src_window
- :movew -s 0:9
Renumber windows to remove gap in the sequence
- :move-window -r
- :movew -r