16 $ tmux new -s session_name
18 $ tmux attach # Default session
19 $ tmux attach -t session_name
21 $ tmux switch -t session_name
23 $ tmux ls # List sessions
37 C-b [ # Enter scroll mode then press up and down
41 C-b [ # 1. Enter scroll mode first.
42 Space # 2. Start selecting and move around.
43 Enter # 3. Press enter to copy.
53 C-b q # show pane numbers
56 C-b { or } # move windows around
61 C-b 1 # Go to window 1
62 C-b n # Go to next window
63 C-b p # Go to previous window
64 C-b w # List all window
69 C-b ( ) # Switch through sessions
79 setw -g window-status-format `#[fg=8,bg=default]#I`
82 See `message-command-style` in the man page.
88 | `#[fg=1]` | standard color |
89 | `#[fg=yellow]` | yellow |
91 | `#[fg=colour240]` | 256 color |
92 | `#[fg=default]` | default |
93 | `#[fg=1,bg=2]` | combinations |
94 | `#[default]` | reset |
98 * `black` `red` `green` `yellow` `blue` `magenta` `cyan` `white`
99 * `brightred` (and so on)
100 * `colour0` ... `colour255`
105 * `bold` `underscore` `blink` `noreverse` `hidden` `dim` `italics`
109 | Key | Description |
111 | `#(date)` | shell command |
112 | `#I` | window index |
113 | `#S` | session name |
114 | `#W` | window name |
115 | `#F` | window flags |
117 | `#h` | Hostname, short |
119 | `#P` | pane index |
120 | `#T` | pane title |
124 set -g status-justify [left|centre|right]
125 set -g status-left '...'
127 setw -g window-status-style
128 setw -g window-status-activity-style
129 setw -g window-status-bell-style
130 setw -g window-status-content-style
131 setw -g window-status-current-style
132 setw -g window-status-last-style
134 setw -g window-status-format
135 setw -g window-status-current-format
137 setw -g window-status-separator