tmux: Reorder prefix setting to top of bindings

This commit is contained in:
2024-08-19 17:27:51 +02:00
parent 41360b8278
commit faee7ea2ea

View File

@@ -16,6 +16,11 @@ set -g copy-command 'xclip -selection clipboard'
# https://github.com/neovim/neovim/wiki/FAQ#cursor-shape-doesnt-change-in-tmux
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
# Set C-a as new prefix
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Copy selection into primary selection (without aborting)
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-no-clear "xclip -se p"
@@ -67,11 +72,6 @@ bind -T copy-mode-vi WheelDownPane \
send -XN5 scroll-down
}
# Set C-a as new prefix
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Split panes with > and <
unbind %
bind < splitw -v -c "#{pane_current_path}"