mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-21 22:18:07 +01:00
template .tmux.conf
This commit is contained in:
parent
0979c949f4
commit
dab4993a77
1 changed files with 9 additions and 2 deletions
|
@ -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"
|
Loading…
Reference in a new issue