diff options
author | johannst <stoelp@eit.uni-kl.de> | 2017-05-14 18:25:01 +0200 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2017-05-14 18:25:01 +0200 |
commit | e020b5ecdfb4e5ec20f567fb67219c4e713b18dd (patch) | |
tree | 51a2b61a17851c035965213f6a8bfcfd3a5cc584 /tmux.conf | |
parent | 379e315489c95a36ae468b3ef00a3892e26ed8e7 (diff) | |
download | dotfiles-e020b5ecdfb4e5ec20f567fb67219c4e713b18dd.tar.gz dotfiles-e020b5ecdfb4e5ec20f567fb67219c4e713b18dd.zip |
adapted tmux.conf to handle different versions
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 |