Another terminal multiplexer much like screens, however is more modernized and keeps my nice prompt colors....
# Command PREFIX: CTRL+B
| **Command/Hotkey** | **Result** |
| ------------------------- | --------------------------------------------------------------- |
| `tmux` | Create new basic session |
| `tmux new -s sessionName` | Create new session with given name |
| `tmux ls` | list sessions |
| `tmux attach -t 0` | Attach to running session, (from above command), use session ID |
| CTRL + B, C | Create new window |
| CTRL + B, D | Detach from current session |
| CTRL + B, X | Close window/pane, confirm with Y |
| CTRL + B, N or P | Move to next or previous window (WRAPS) |
| CTRL + B, 0 (1,2, etc) | Move to specific window number |
| CTRL + B, : | Enter command to tmux, tab complete |
| CTRL + B, ? | View all keybinds, Q to exit |
| CTRL + B, W | Open a panel to navigate across windows in multiple sessions |
| CTRL + B, % | Split window into 2 panes horizontally |
| CTRL + B, " | Split window into 2 panes vertically |
| CTRL + B, ARROWKEYs | move between panes |
## Configure TMUX
```
vim ~/.tmux.conf
# Set the prefix to Ctrl+A
set -g prefix C-a
# Remove the old prefix
unbind C-b
# Send Ctrl+A to applications by pressing it twice
bind C-a send-prefix
```
Many many changes can be placed here.
## My Current .tmux.conf
```
# easy config reload :D
bind r source-file ~/.tmux.conf
# Enable mouse control for clicking into panes, and resizing
set -g mouse on
# remap prefix to C-A
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set-option -g repeat-time 0
# sane split pane binds (| -> horizontal, - -> vertical)
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# switch panes using Alt(meta)-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Space to move to next window
unbind Space
bind Space next-window
# C-a, k to kill window/pane, confirm with y
unbind x
bind k kill-window
```