diff options
Diffstat (limited to 'tmux.conf')
-rw-r--r-- | tmux.conf | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -40,10 +40,15 @@ bind-key l select-pane -R # Copy mode settings set-window-option -g mode-keys vi -bind-key -t vi-copy 'v' begin-selection -bind-key -t vi-copy 'y' copy-selection -bind-key -t vi-copy 'C-a' start-of-line -bind-key -t vi-copy 'C-e' end-of-line +if-shell "if [ $(echo \"$(tmux -V | awk '{print $2}') < 2.4\" | bc) -eq 1 ]; then true; else false; fi" \ + 'bind-key -t vi-copy v begin-selection; \ + bind-key -t vi-copy y copy-selection; \ + bind-key -t vi-copy C-a start-of-line; \ + bind-key -t vi-copy C-e end-of-line' \ + 'bind-key -T copy-mode-vi v send-key -X begin-selection; \ + bind-key -T copy-mode-vi y send-key -X copy-selection-and-cancel; \ + bind-key -T copy-mode-vi C-a send-key -X start-of-line; \ + bind-key -T copy-mode-vi C-e send-key -X end-of-line;' bind-key C-b choose-buffer bind-key C-v copy-mode bind-key C-p paste-buffer |