Use bind instead of bind-key

This commit is contained in:
Kenneth Benzie 2018-08-28 21:48:14 +01:00
parent 69ad546317
commit f9f72c13ba

View File

@ -64,16 +64,17 @@ bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
# Integrate urlview
bind-key u capture-pane \; split-window "tmux show-buffer | urlview -"
bind u capture-pane \; split-window "tmux show-buffer | urlview -"
# Enter copy mode with C-U
bind-key C-u copy-mode -u
bind 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
bind -T copy-mode-vi v send-keys -X begin-selection
# Yank to the system clipboard in copy mode
if -b '[ "`uname`" = "Darwin" ]' \
"bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'" \
"bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xsel -i -p && xsel -o -p | xsel -i -b'"
"bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'" \
"bind -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"