Update tmux config to work on linux with tmux 3.0a

main
Buddy Sandidge 5 years ago
parent 9e71adc5d1
commit b437627f10

@ -44,6 +44,14 @@ bind p paste-buffer
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
# Linux
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "xclip -in -selection clipboard"
# macOS
#bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
#bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "pbcopy"
# Make switch session shortcut repeatable
bind -r ( switch-client -p
bind -r ) switch-client -n
@ -56,7 +64,7 @@ bind C-a send-prefix
# Create panes bindings
bind | split-window -h
bind \ split-window -h
bind \\ split-window -h
bind - split-window -v
# Vim bindings

Loading…
Cancel
Save