diff --git a/dot_tmux.conf b/dot_tmux.conf.tmpl similarity index 89% rename from dot_tmux.conf rename to dot_tmux.conf.tmpl index a222b02..2ab2340 100644 --- a/dot_tmux.conf +++ b/dot_tmux.conf.tmpl @@ -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"