Browse Source

tmux: add some friendlier bindings from the tmux pragmatic book

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 10 years ago
parent
commit
bd48f7de5f
1 changed files with 35 additions and 0 deletions
  1. +35
    -0
      files/.tmux.conf

+ 35
- 0
files/.tmux.conf

@ -8,6 +8,7 @@ set -g pane-base-index 1
# misc features
set -s escape-time 1
setw -g mode-keys vi
setw -g mode-mouse on
# reload
@ -15,6 +16,40 @@ 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
# 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

Loading…
Cancel
Save