15 $ tmux new -s session_name
17 $ tmux attach # Default session
18 $ tmux attach -t session_name
20 $ tmux switch -t session_name
22 $ tmux ls # List sessions
36 C-b [ # Enter scroll mode then press up and down
40 C-b [ # 1. Enter scroll mode first.
41 Space # 2. Start selecting and move around.
42 Enter # 3. Press enter to copy.
52 C-b q # show pane numbers
55 C-b { or } # move windows around
60 C-b 1 # Go to window 1
61 C-b n # Go to next window
62 C-b p # Go to previous window
63 C-b w # List all window
68 C-b ( ) # Switch through sessions
78 setw -g window-status-format `#[fg=8,bg=default]#I`
81 See `message-command-style` in the man page.
85 | `#[fg=1]` | standard color |
86 | `#[fg=yellow]` | yellow |
88 | `#[fg=colour240]` | 256 color |
89 | `#[fg=default]` | default |
90 | `#[fg=1,bg=2]` | combinations |
91 | `#[default]` | reset |
95 * `black` `red` `green` `yellow` `blue` `magenta` `cyan` `white`
96 * `brightred` (and so on)
97 * `colour0` ... `colour255`
102 * `bold` `underscore` `blink` `noreverse` `hidden` `dim` `italics`
106 | `#(date)` | shell command |
107 | `#I` | window index |
108 | `#S` | session name |
109 | `#W` | window name |
110 | `#F` | window flags |
112 | `#h` | Hostname, short |
114 | `#P` | pane index |
115 | `#T` | pane title |
119 set -g status-justify [left|centre|right]
120 set -g status-left '...'
122 setw -g window-status-style
123 setw -g window-status-activity-style
124 setw -g window-status-bell-style
125 setw -g window-status-content-style
126 setw -g window-status-current-style
127 setw -g window-status-last-style
129 setw -g window-status-format
130 setw -g window-status-current-format
132 setw -g window-status-separator