Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (31 sloc) 941 Bytes
# prefix
unbind C-b
set -g prefix C-a
# base index
set -g base-index 1
set -g pane-base-index 1
# enable mouse for pane, window
set -g mouse on
bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
bind -n WheelDownPane select-pane -t= \; send-keys -M
# highlight active window
set-window-option -g window-status-current-bg red
# activity
# setw -g monitor-activity on
# set -g visual-activity on
# splitting and cycling
unbind %
bind + split-window -h # horizontal split
unbind '"'
bind _ split-window -v # vertical split
bind C-j previous-window
bind C-k next-window
# pane switching with Alt+arrow
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
# window title
set-option -g set-titles on
set-option -g set-titles-string '#S:#W' # window number,program name,active (or not)
set-window-option -g automatic-rename on # auto name