bind y to pbcopy when reattach-to-username is not present
This commit is contained in:
parent
e631331281
commit
ef8962bb39
|
@ -142,7 +142,8 @@ run -b 'tmux bind -T copy-mode-vi H send -X start-of-line 2> /dev/null || true'
|
||||||
run -b 'tmux bind -t vi-copy L end-of-line 2> /dev/null || true'
|
run -b 'tmux bind -t vi-copy L end-of-line 2> /dev/null || true'
|
||||||
run -b 'tmux bind -T copy-mode-vi L send -X end-of-line 2> /dev/null || true'
|
run -b 'tmux bind -T copy-mode-vi L send -X end-of-line 2> /dev/null || true'
|
||||||
|
|
||||||
# copy to Mac OSX clipboard
|
# copy to macOS clipboard
|
||||||
|
if -b 'command -v pbcopy > /dev/null 2>&1' 'bind y run -b "tmux save-buffer - | pbcopy"'
|
||||||
if -b 'command -v reattach-to-user-namespace > /dev/null 2>&1' 'bind y run -b "tmux save-buffer - | reattach-to-user-namespace pbcopy"'
|
if -b 'command -v reattach-to-user-namespace > /dev/null 2>&1' 'bind y run -b "tmux save-buffer - | reattach-to-user-namespace pbcopy"'
|
||||||
# copy to X11 clipboard
|
# copy to X11 clipboard
|
||||||
if -b 'command -v xsel > /dev/null 2>&1' 'bind y run -b "tmux save-buffer - | xsel -i -b"'
|
if -b 'command -v xsel > /dev/null 2>&1' 'bind y run -b "tmux save-buffer - | xsel -i -b"'
|
||||||
|
|
Loading…
Reference in a new issue