sajad torkamani


brew install tmux


Create a ~/.tmux.conf and tmux should pick up your config automatically.

Create Bash /ZSH aliases

# Tmux
alias t="tmux"
alias tl="tmux ls"
alias tx="tmux kill-server"

Configure VIM-like keybindings:

# Remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix

# Split window horizontally
bind-key n split-window -h

# Split window vertically
bind-key v split-window -v

# Bind keys for moving panes
bind-key k select-pane -U
bind-key l select-pane -R
bind-key j select-pane -D
bind-key h select-pane -L

# Bind key for closing pane
bind-key q kill-pane

# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on


Tagged: Misc