Tags
  1. omz plugin load tmux; omz plugin enable tmux
  2. omz reload
  3. 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

  1. tmux new # -s SESSIONNAME # -n WINDOWNAME
  2. 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

  1. % #SHIFT5
  2. Ctrl + b ;

zoom into pane

Ctrl + b z

Show all sessions

  1. tmux ls
  2. Ctrl + b w

Attach to last session

tmux a # -t SESSIONNAME | SESSIONNUMBER

Enter command mode

Ctrl + b :

.tmux.conf

  1. cat /usr/share/doc/tmux/example_tmux.conf
  2. tmuxconf
  3. tmux source-file ~/.tmux.conf
set mouse on
set mode-keys vi
  1. https://tmuxcheatsheet.com