summaryrefslogtreecommitdiff
path: root/core/tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to 'core/tmux.conf')
-rw-r--r--core/tmux.conf4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/tmux.conf b/core/tmux.conf
index 0093aaa..b9a6cb1 100644
--- a/core/tmux.conf
+++ b/core/tmux.conf
@@ -57,7 +57,9 @@ bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "$YAN
57# no buffer on CLIP_HOST yet (exit 3, e.g. after its reboot) = paste tmux's own buffer 57# no buffer on CLIP_HOST yet (exit 3, e.g. after its reboot) = paste tmux's own buffer
58bind-key ] run-shell "f=\$(mktemp); $CLIP '[ -f /dev/shm/clip/buf ] || exit 3; cat /dev/shm/clip/buf' >\$f; r=\$?; [ \$r -eq 0 ] && tmux load-buffer \$f; rm -f \$f; [ \$r -eq 0 ] || [ \$r -eq 3 ] && tmux paste-buffer -p" 58bind-key ] run-shell "f=\$(mktemp); $CLIP '[ -f /dev/shm/clip/buf ] || exit 3; cat /dev/shm/clip/buf' >\$f; r=\$?; [ \$r -eq 0 ] && tmux load-buffer \$f; rm -f \$f; [ \$r -eq 0 ] || [ \$r -eq 3 ] && tmux paste-buffer -p"
59# ===== end shared clipboard ===== 59# ===== end shared clipboard =====
60# TODO: try `set -g set-clipboard off` later (tmux default "external" sends copies to the local terminal clipboard via OSC 52); unrelated to the shared clipboard above 60# OSC 52: copy-mode yanks also go to the clipboard of the terminal you type in; "on" (not "external")
61# also forwards OSC 52 that vim writes inside a pane
62set -g set-clipboard on
61 63
62# Linux only: true-color regardless of what TERM the outer terminal/distro sets 64# Linux only: true-color regardless of what TERM the outer terminal/distro sets
63if-shell 'uname | grep -q Darwin' {} { 65if-shell 'uname | grep -q Darwin' {} {