- omz plugin load tmux; omz plugin enable tmux
- omz reload
- omz plugin info tmux
| Alias | Command | Description |
| ---------- | -------------------------- | -------------------------------------------------------- |
| `ta` | tmux attach -t | Attach new tmux session to already running named session |
| `tad` | tmux attach -d -t | Detach named tmux session |
| `ts` | tmux new-session -s | Create a new named tmux session |
| `tl` | tmux list-sessions | Displays a list of running tmux sessions |
| `tksv` | tmux kill-server | Terminate all running tmux sessions |
| `tkss` | tmux kill-session -t | Terminate named running tmux session |
| `tmux` | `_zsh_tmux_plugin_run` | Start a new tmux session |
| `tmuxconf` | `$EDITOR $ZSH_TMUX_CONFIG` | Open .tmux.conf file with an editor |
| `tds` | `_tmux_directory_session` | Creates or attaches to a session for the current path |
Start a new session
- tmux new # -s SESSIONNAME # -n WINDOWNAME
- tmux -f ~/.tmux.conf
Create window
Ctrl + b c
Toggle panes
Ctrl + b ARROWS
Split pane vertically
Ctrl + b %
Split pane horizontally
Ctrl + b "
Toggle last active pane
- % #SHIFT5
- Ctrl + b ;
zoom into pane
Ctrl + b z
Show all sessions
- tmux ls
- Ctrl + b w
Attach to last session
tmux a # -t SESSIONNAME | SESSIONNUMBER
Enter command mode
Ctrl + b :
.tmux.conf
- cat /usr/share/doc/tmux/example_tmux.conf
- tmuxconf
- tmux source-file ~/.tmux.conf
set mouse on
set mode-keys vi