[tmux] Allow cross-ssh copying
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
set-environment -g PATH "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
|
||||
set-environment -g PATH "$HOME/dotfiles/scripts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
|
||||
set -g default-terminal "xterm-256color"
|
||||
|
||||
set -g history-limit 20000
|
||||
@@ -59,6 +59,11 @@ set-window-option -g mode-keys vi
|
||||
set-option -s set-clipboard on
|
||||
set -g @yank_with_mouse off
|
||||
set -g @yank_action 'copy-pipe'
|
||||
bind-key -Tcopy-mode-vi 'C-right' send -X next-word
|
||||
bind-key -Tcopy-mode-vi 'C-left' send -X previous-word
|
||||
unbind-key -T copy-mode-vi MouseDragEnd1Pane
|
||||
# Allow copy across SSH
|
||||
set -g @override_copy_command 'yank > #{pane_tty}'
|
||||
|
||||
if '[ `uname` == Darwin ]' \
|
||||
'source-file ~/.tmux/.mac_config'
|
||||
|
||||
Reference in New Issue
Block a user