Add tmux-yank binding for Linux
This commit is contained in:
@@ -65,6 +65,11 @@ bind-key u capture-pane \; split-window "tmux show-buffer | urlview -"
|
||||
|
||||
# Enter copy mode with C-U
|
||||
bind-key C-u copy-mode -u
|
||||
# Begin selection in copy mode with v not Space
|
||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||
# Yank to the system clipboard in copy mode
|
||||
if -b '[ "`uname`" = "Linux" ]' \
|
||||
"bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xsel -i -p && xsel -o -p | xsel -i -b'"
|
||||
|
||||
# Left status style
|
||||
set-window-option -g status-left " #S"
|
||||
|
||||
Reference in New Issue
Block a user