Skip to content

Instantly share code, notes, and snippets.

@admo
Created August 2, 2019 11:27
Show Gist options
  • Save admo/50737284f9a4c5b6aab30769c1fa492e to your computer and use it in GitHub Desktop.
Save admo/50737284f9a4c5b6aab30769c1fa492e to your computer and use it in GitHub Desktop.
dotfiles
# remap prefix from 'C-b' to 'C-a'
#unbind C-b
#set-option -g prefix C-a
#bind-key C-a send-prefix
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# switch panes using Alt-arrow without prefix
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
# set copy-mode to vi
set-window-option -g mode-keys vi
bind -T copy-mode-vi 'v' send-keys -X begin-selection
bind -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment