Skip to content
tmux0 copies

tmux.conf — sane defaults, vim keys

by sudosecurity · 11/5/2026

The tmux config behind every SudoSecurity demo: prefix on C-a, vim-style pane moves, mouse on, and a status line that shows pane CWD.

unbind C-b
set -g prefix C-a
bind C-a send-prefix

set -g mouse on
setw -g mode-keys vi
set -g base-index 1
setw -g pane-base-index 1
set -g history-limit 50000

# splits that keep CWD — the single biggest QoL win
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"

# vim pane moves
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

set -g status-left "#S "
set -g status-right "#{pane_current_path} %H:%M"