diff --git a/.tmux.conf b/.tmux.conf index 87f2aa4..f1aa6c2 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -128,6 +128,13 @@ bind-key -T copy-mode-vi 'C-l' select-pane -R bind-key -T copy-mode-vi 'C-\' select-pane -l +# Clipboard (OSC 52) +# Required for nested tmux (local tmux -> ssh/mosh -> remote tmux): the inner +# tmux sends its copies up as OSC 52, and tmux only accepts OSC 52 coming +# from a pane when set-clipboard is "on". The default "external" drops it. +set -g set-clipboard on +set -as terminal-features ',*:clipboard' + # # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm'