15 $ tmux new -s session_name
17 $ tmux attach # Default session
18 $ tmux attach -s 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.
54 C-b { or } # move windows around
59 C-b 1 # Go to window 1
64 C-b ( ) # Switch through sessions
74 setw -g window-status-format `#[fg=8,bg=default]#I`
77 See `message-command-style` in the man page.
81 | `#[fg=1]` | standard color |
82 | `#[fg=yellow]` | yellow |
84 | `#[fg=colour240]` | 256 color |
85 | `#[fg=default]` | default |
86 | `#[fg=1,bg=2]` | combinations |
87 | `#[default]` | reset |
91 * `black` `red` `green` `yellow` `blue` `magenta` `cyan` `white`
92 * `brightred` (and so on)
93 * `colour0` ... `colour255`
98 * `bold` `underscore` `blink` `noreverse` `hidden` `dim` `italics`
102 | `#(date)` | shell command |
103 | `#I` | window index |
104 | `#S` | session name |
105 | `#W` | window name |
106 | `#F` | window flags |
108 | `#h` | Hostname, short |
110 | `#P` | pane index |
111 | `#T` | pane title |
115 set -g status-justify [left|centre|right]
116 set -g status-left '...'
118 setw -g window-status-style
119 setw -g window-status-activity-style
120 setw -g window-status-bell-style
121 setw -g window-status-content-style
122 setw -g window-status-current-style
123 setw -g window-status-last-style
125 setw -g window-status-format
126 setw -g window-status-current-format
128 setw -g window-status-separator