diff options
author | Guangxiong Lin <[email protected]> | 2023-01-21 09:21:47 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2023-01-21 09:21:47 +0800 |
commit | b34a46838767c88de394ab785d1162082593f3cf (patch) | |
tree | 7dc96003ad29c7c327078ebca4ac794c803e7138 | |
parent | a8d775ff00d9920971fb9b7e9cadb7a9347f825e (diff) | |
download | dotfiles-b34a46838767c88de394ab785d1162082593f3cf.tar.gz dotfiles-b34a46838767c88de394ab785d1162082593f3cf.tar.bz2 dotfiles-b34a46838767c88de394ab785d1162082593f3cf.zip |
Use wl-copy as tmux copy-command
I am mainly using Linux as my daily operating system. But I may need to
change it to if-else logic someday.
-rw-r--r-- | .tmux.conf | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -55,9 +55,11 @@ bind > resize-pane -R 5 bind - resize-pane -D 5 bind + resize-pane -U 5 +set -s copy-command 'wl-copy' # copy and paste like vim - bind -T copy-mode-vi 'v' send -X begin-selection - bind -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" +bind -T copy-mode-vi 'v' send -X begin-selection +bind -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace wl-copy" +bind P paste-buffer if-shell 'test -f "$HOME/.local/.tmux.conf"' 'source ~/.local/.tmux.conf' |