# same prefix as `screen`set -g prefix C-aunbind C-b # 0-indexed is not keyboard friendlyset -g base-index 1set -g pane-base-index 1 # misc featuresset -s escape-time 1setw -g mode-keys vi # reloadbind r source-file ~/.tmux.conf \; display "Reloaded!"# send C-abind C-a send-prefix # status bar#set -g status-utf8 onset -g monitor-activity onset -g visual-activity on # Mouseset -g mode-mouse onset -g mouse-resize-pane onset -g mouse-select-pane onset -g mouse-select-window on # Toggle mouse on with ^A mbind m \ set -g mode-mouse on \;\ set -g mouse-resize-pane on \;\ set -g mouse-select-pane on \;\ set -g mouse-select-window on \;\ display 'Mouse: ON' # Toggle mouse off with ^A Mbind M \ set -g mode-mouse off \;\ set -g mouse-resize-pane off \;\ set -g mouse-select-pane off \;\ set -g mouse-select-window off \;\ display 'Mouse: OFF' # sessions#bind -r ( switch-client -pbind -r ) switch-client -n # windows#bind -r b select-window -t :-bind -r n select-window -t :+ # panes#bind | split-window -hbind - split-window -v bind h select-pane -Lbind j select-pane -Dbind k select-pane -Ubind l select-pane -R bind -r H resize-pane -L 5bind -r J resize-pane -D 5bind -r K resize-pane -U 5bind -r L resize-pane -R 5 # buffers#bind = paste-bufferbind -t vi-copy 'v' begin-selectionbind -t vi-copy 'y' copy-selection
# same prefix as `screen`
set -g prefix C-a
unbind C-b
# 0-indexed is not keyboard friendly
set -g base-index 1
set -g pane-base-index 1
# misc features
set -s escape-time 1
setw -g mode-keys vi
# reload
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# send C-a
bind C-a send-prefix
# status bar
#
set -g status-utf8 on
set -g monitor-activity on
set -g visual-activity on
# Mouse
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
# Toggle mouse on with ^A m
bind m \
set -g mode-mouse on \;\
set -g mouse-resize-pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
display 'Mouse: ON'
# Toggle mouse off with ^A M
bind M \
set -g mode-mouse off \;\
set -g mouse-resize-pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
display 'Mouse: OFF'
# sessions
bind -r ( switch-client -p
bind -r ) switch-client -n
# windows
bind -r b select-window -t :-
bind -r n select-window -t :+
# panes
bind | split-window -h
bind - split-window -v
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# buffers
bind = paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection