Skip to content

Instantly share code, notes, and snippets.

@nluo
Created January 20, 2017 06:05
Show Gist options
  • Save nluo/4e690f6be0b8e1cde4e851996b8dccbb to your computer and use it in GitHub Desktop.
Save nluo/4e690f6be0b8e1cde4e851996b8dccbb to your computer and use it in GitHub Desktop.
my tmux conf file
# Bind to backtick
unbind C-b
set-option -g prefix `
bind ` send-prefix
set-window-option -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard'
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind -t vi-copy Enter copy-pipe 'xclip -in -selection clipboard'
bind-key -n C-S-Left swap-window -t -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment