aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-01-21 09:21:47 +0800
committerGuangxiong Lin <[email protected]>2023-01-21 09:21:47 +0800
commitb34a46838767c88de394ab785d1162082593f3cf (patch)
tree7dc96003ad29c7c327078ebca4ac794c803e7138
parenta8d775ff00d9920971fb9b7e9cadb7a9347f825e (diff)
downloaddotfiles-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.conf6
1 files changed, 4 insertions, 2 deletions
diff --git a/.tmux.conf b/.tmux.conf
index c795ac1..b7961ec 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -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'