Use bind instead of bind-key
This commit is contained in:
parent
69ad546317
commit
f9f72c13ba
11
tmux.conf
11
tmux.conf
@ -64,16 +64,17 @@ bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
|
|||||||
bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
|
bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
|
||||||
|
|
||||||
# Integrate urlview
|
# Integrate urlview
|
||||||
bind-key u capture-pane \; split-window "tmux show-buffer | urlview -"
|
bind u capture-pane \; split-window "tmux show-buffer | urlview -"
|
||||||
|
|
||||||
# Enter copy mode with C-U
|
# Enter copy mode with C-U
|
||||||
bind-key C-u copy-mode -u
|
bind C-u copy-mode -u
|
||||||
|
|
||||||
# Begin selection in copy mode with v not Space
|
# Begin selection in copy mode with v not Space
|
||||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||||
# Yank to the system clipboard in copy mode
|
# Yank to the system clipboard in copy mode
|
||||||
if -b '[ "`uname`" = "Darwin" ]' \
|
if -b '[ "`uname`" = "Darwin" ]' \
|
||||||
"bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'" \
|
"bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'" \
|
||||||
"bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xsel -i -p && xsel -o -p | xsel -i -b'"
|
"bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xsel -i -p && xsel -o -p | xsel -i -b'"
|
||||||
|
|
||||||
# Left status style
|
# Left status style
|
||||||
set-window-option -g status-left " #S"
|
set-window-option -g status-left " #S"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user