[tmux] Allow cross-ssh copying

This commit is contained in:
Fabian Ising
2025-04-18 08:49:54 +02:00
parent edde785a03
commit 0e251ec36a
5 changed files with 74 additions and 2 deletions

View File

@@ -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'