Update tmux config

This commit is contained in:
Jan Eitzinger 2023-10-31 07:06:37 +01:00
parent e524061518
commit 799afe0afb

View File

@ -24,9 +24,14 @@ bind -n M-4 select-window -t 4
bind -n M-5 select-window -t 5 bind -n M-5 select-window -t 5
bind -n M-6 select-window -t 6 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 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" bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "xclip -in -selection clipboard"
{{- end }}
# enable vi mode # enable vi mode
setw -g mode-keys vi setw -g mode-keys vi