diff --git a/tmux.conf b/tmux.conf index 4e64a0a..ecfa144 100644 --- a/tmux.conf +++ b/tmux.conf @@ -24,6 +24,13 @@ setw -g automatic-rename on # Automatically set window title set -g mouse on # mouse cap set-window-option -g clock-mode-colour brightwhite # set colour clock set -g focus-events on # for vim (?) +# Clipboard over ssh: force OSC 52 (tmux buffer -> local clipboard) whatever +# TERM the client announces. Auto-detection misses some terminals (Windows +# Terminal under WSL, TERM mismatch), so copy worked only sometimes. +# terminal-features needs tmux >= 3.2 (-q: ignored on 3.1), Ms covers older. +set -g set-clipboard on +set -aq terminal-features ',*:clipboard' +set -ga terminal-overrides ',*:Ms=\E]52;%p1%s;%p2%s\007' set-option -g automatic-rename on # auto rename session set-option -g status-interval 5 # rename session interval set -g status on # enable status bar at start