Update tmux config
This commit is contained in:
parent
e524061518
commit
799afe0afb
@ -24,9 +24,14 @@ bind -n M-4 select-window -t 4
|
||||
bind -n M-5 select-window -t 5
|
||||
bind -n M-6 select-window -t 6
|
||||
|
||||
# Linux system clipboard
|
||||
{{- if eq .chezmoi.os "darwin" }}
|
||||
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
|
||||
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
|
||||
bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
|
||||
{{- else }}
|
||||
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
|
||||
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "xclip -in -selection clipboard"
|
||||
{{- end }}
|
||||
|
||||
# enable vi mode
|
||||
setw -g mode-keys vi
|
||||
|
Loading…
Reference in New Issue
Block a user