Squashed 'tmux/' changes from 57c4310..83cebed

83cebed Fix random characters on copy
ce1870c Adjust config for 2.4

git-subtree-dir: tmux
git-subtree-split: 83cebed9b561bc414f8f126298cf654bb8a5b4e8
This commit is contained in:
murgi
2017-05-12 11:29:03 +02:00
parent dcedac3d54
commit 8bce4d5bfd

View File

@@ -38,9 +38,9 @@ set -g mouse on
# Vi copypaste mode
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard'
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-selection
bind -Tcopy-mode-vi y send -X copy-pipe "xclip -i -sel p -f | xclip -i -sel c" \; display-message "copied to system clipboard"
# Smart pane switching with awareness of vim splits
# See: https://github.com/christoomey/vim-tmux-navigator
@@ -55,6 +55,7 @@ bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
# move tmux copy buffer into x clipboard
bind C-y run "tmux save-buffer - | xclip -i"
set-option -s set-clipboard off
source-file ~/.tmux/.tmux_config_powerline