Add darwin tmux copy config

This commit is contained in:
David Morgan 2022-11-21 16:44:49 +00:00
parent 3916b48eb1
commit 9632522130
Signed by: djm
GPG Key ID: C171251002C200F2
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@
bind-key -T copy-mode y send-keys -X copy-pipe-and-cancel "xsel -i -p && xsel -o -p | xsel -i -b"
bind-key C-y run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
''}
${lib.optionalString pkgs.stdenv.isDarwin ''
bind-key -T copy-mode y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind-key C-y run "reattach-to-user-namespace pbpaste | tmux load-buffer - ; tmux paste-buffer"
''}
set -g @open-S 'https://www.duckduckgo.com/?q='
set -g @thumbs-reverse enabled