Skip to content

Instantly share code, notes, and snippets.

@bradylove
Created August 2, 2017 14:56
Show Gist options
  • Save bradylove/d60c09003b4769242e4fbc936c19b60a to your computer and use it in GitHub Desktop.
Save bradylove/d60c09003b4769242e4fbc936c19b60a to your computer and use it in GitHub Desktop.
tmux 2.4 selection settings
# selection key bindings
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'V' send -X select-line
bind-key -T copy-mode-vi 'r' send -X rectangle-toggle
# Linux copy to system clipboard
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "xclip -in -selection clipboard"
# OSX copy to system clipboard
# bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment