mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-14 10:43:56 +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
|
bind v copy-mode
|
||||||
# v to start a visual selection
|
# v to start a visual selection
|
||||||
bind -T copy-mode-vi v send -X begin-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
|
# y to yank
|
||||||
bind -T copy-mode-vi y send -X copy-pipe-and-cancel
|
bind -T copy-mode-vi y send -X copy-pipe-and-cancel
|
||||||
# prefix + P to paste
|
|
||||||
bind P paste-buffer
|
|
||||||
# mouse support
|
# mouse support
|
||||||
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel
|
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel
|
||||||
|
{{- end }}
|
||||||
|
# prefix + P to paste
|
||||||
|
bind P paste-buffer
|
||||||
|
|
||||||
# color support
|
# color support
|
||||||
set -g default-terminal "xterm-256color"
|
set -g default-terminal "xterm-256color"
|
Loading…
Reference in a new issue