Skip to content

Instantly share code, notes, and snippets.

@natanielstrack
Created January 23, 2018 08:25
Show Gist options
  • Save natanielstrack/e5bc17b2ab1c4542c33f78240d04f116 to your computer and use it in GitHub Desktop.
Save natanielstrack/e5bc17b2ab1c4542c33f78240d04f116 to your computer and use it in GitHub Desktop.
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
set -g mouse on
# Mouse based copy
bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode MouseDragEnd1Pane send -X copy-pipe-and-cancel "pbcopy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment