From f9f72c13bac26bbf3ccc51be86f7427aa2a123b1 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 28 Aug 2018 21:48:14 +0100 Subject: [PATCH] Use bind instead of bind-key --- tmux.conf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tmux.conf b/tmux.conf index a4936eb..a2c34c2 100644 --- a/tmux.conf +++ b/tmux.conf @@ -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"