Skip to content

Instantly share code, notes, and snippets.

@Aricg
Created September 10, 2014 01:02
Show Gist options
  • Save Aricg/cfaa0210e664d5b4f71d to your computer and use it in GitHub Desktop.
Save Aricg/cfaa0210e664d5b4f71d to your computer and use it in GitHub Desktop.
tmux config
set -g default-terminal "screen-256color"
setw -g mode-keys vi
set -g prefix C-d
unbind C-b
bind C-d send-prefix
unbind ^A
bind ^A select-pane -t :.+
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "xsel --clipboard -i"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "xsel --clipboard -i"
bind-key y set-window-option synchronize-panes
bind-key -t vi-edit Up history-up
bind-key -t vi-edit Down history-down
set -g mouse-select-pane on
setw -g mode-mouse on
#bind -t vi-copy y copy-pipe "xclip"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment