fix(tmux): force OSC 52 clipboard so ssh copy works every time
This commit is contained in:
1 parent
91bbe059ec
commit
e4e242d6ea
1 file changed
+7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user