template .tmux.conf

This commit is contained in:
Gabriel Augendre 2024-02-17 20:59:39 +01:00
parent 0979c949f4
commit dab4993a77

View file

@ -30,12 +30,19 @@ setw -g mode-keys vi
bind v copy-mode
# v to start a visual selection
bind -T copy-mode-vi v send -X begin-selection
{{- if eq .chezmoi.os "darwin" }}
# y to yank
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
# mouse support
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
{{- else }}
# y to yank
bind -T copy-mode-vi y send -X copy-pipe-and-cancel
# prefix + P to paste
bind P paste-buffer
# mouse support
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel
{{- end }}
# prefix + P to paste
bind P paste-buffer
# color support
set -g default-terminal "xterm-256color"