Skip to content

Commit d76ebb2

Browse files
tmux: run clipboard script in posix shell to overcome file permission issue
1 parent 0442197 commit d76ebb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.tmux.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ if-shell 'expr $TMUX_VERSION \< 2.4' \
224224
"bind-key -t vi-copy v rectangle-toggle'" # switch between line and columnwise selection
225225
226226
# Re-copy tmux buffer to macOS/linux system clipboard
227-
bind y run-shell "tmux show-buffer | ~/.bin/clipboard --to-system && tmux display-message \"COPIED: tmux buffer > system clipboard\" || tmux display-message \"FAILED: tmux buffer > system clipboard\""
227+
bind y run-shell "tmux show-buffer | sh ~/.bin/clipboard --to-system && tmux display-message \"COPIED: tmux buffer > system clipboard\" || tmux display-message \"FAILED: tmux buffer > system clipboard\""
228228
229229
# Clear shell terminal and tmux history at once like Terminal's Cmd+k
230230
# Inspired from: http://stackoverflow.com/questions/10543684/how-can-i-clear-scrollback-buffer-in-tmux

0 commit comments

Comments
 (0)