Enable vi-mode yank on macOS
This commit is contained in:
parent
fdcf4c701c
commit
a180f60a98
@ -5,5 +5,6 @@
|
|||||||
- xsel
|
- xsel
|
||||||
- brew:
|
- brew:
|
||||||
- tmux
|
- tmux
|
||||||
|
- reattach-to-user-namespace
|
||||||
- symlink:
|
- symlink:
|
||||||
- {src: tmux.conf, dst: ~/.tmux.conf}
|
- {src: tmux.conf, dst: ~/.tmux.conf}
|
||||||
|
@ -71,7 +71,8 @@ bind-key C-u copy-mode -u
|
|||||||
# Begin selection in copy mode with v not Space
|
# Begin selection in copy mode with v not Space
|
||||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||||
# Yank to the system clipboard in copy mode
|
# Yank to the system clipboard in copy mode
|
||||||
if -b '[ "`uname`" = "Linux" ]' \
|
if -b '[ "`uname`" = "Darwin" ]' \
|
||||||
|
"bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'" \
|
||||||
"bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xsel -i -p && xsel -o -p | xsel -i -b'"
|
"bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xsel -i -p && xsel -o -p | xsel -i -b'"
|
||||||
|
|
||||||
# Left status style
|
# Left status style
|
||||||
|
Loading…
x
Reference in New Issue
Block a user