1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

tmux: fix vim copy bindings for >= v2.4

This commit is contained in:
Daiderd Jordan 2017-06-04 19:20:19 +02:00
parent 0ef2374531
commit 9f669d69e3
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -160,11 +160,12 @@ in {
bind s split-window -v -c '#{pane_current_path}'
bind v split-window -h -c '#{pane_current_path}'
bind -t vi-copy v begin-selection
bind-key -T copy-mode-vi p send-keys -X copy-pipe-and-cancel "tmux paste-buffer"
bind-key -T copy-mode-vi v send-keys -X begin-selection
'' + optionalString stdenv.isLinux ''
bind -t vi-copy y copy-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
'' + optionalString stdenv.isDarwin ''
bind -t vi-copy y copy-pipe "${pkgs.reattach-to-user-namespace}/bin/reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "${pkgs.reattach-to-user-namespace}/bin/reattach-to-user-namespace pbcopy"
'');
};