64 lines
1.6 KiB
Plaintext
64 lines
1.6 KiB
Plaintext
|
|
|||
|
# history
|
|||
|
set -g history-limit 100000
|
|||
|
|
|||
|
# use vi mode
|
|||
|
setw -g mode-keys vi
|
|||
|
set -g status-keys vi
|
|||
|
|
|||
|
|
|||
|
# easy-to-remember split pane commands
|
|||
|
bind | split-window -h
|
|||
|
bind - split-window -v
|
|||
|
unbind '"'
|
|||
|
unbind %
|
|||
|
|
|||
|
|
|||
|
# moving between panes with vim movement keys
|
|||
|
bind h select-pane -L
|
|||
|
bind j select-pane -D
|
|||
|
bind k select-pane -U
|
|||
|
bind l select-pane -R
|
|||
|
|
|||
|
# resize the pane
|
|||
|
bind-key -r J resize-pane -D 3
|
|||
|
bind-key -r K resize-pane -U 3
|
|||
|
bind-key -r H resize-pane -L 3
|
|||
|
bind-key -r L resize-pane -R 3
|
|||
|
|
|||
|
|
|||
|
set-option -g status-position top
|
|||
|
|
|||
|
|
|||
|
# fast search - not necessary to go to copy first (will switch to copy mode automatically)
|
|||
|
bind-key -T copy-mode-vi / command-prompt -i -p "(search down)" "send -X search-forward-incremental \"%%%\""
|
|||
|
bind-key -T copy-mode-vi ? command-prompt -i -p "(search up)" "send -X search-backward-incremental \"%%%\""
|
|||
|
|
|||
|
bind / copy-mode \; command-prompt -i -p "(search up)" "send -X search-forward-incremental \"%%%\""
|
|||
|
bind ? copy-mode \; command-prompt -i -p "(search down)" "send -X search-backward-incremental \"%%%\""
|
|||
|
|
|||
|
|
|||
|
bind -T copy-mode-vi \} {
|
|||
|
send-keys -X end-of-line
|
|||
|
send-keys -X search-forward " "
|
|||
|
send-keys -X end-of-line
|
|||
|
send-keys -X search-backward " "
|
|||
|
send-keys -X cursor-right
|
|||
|
}
|
|||
|
|
|||
|
bind -T copy-mode-vi \{ {
|
|||
|
send-keys -X start-of-line
|
|||
|
send-keys -X search-backward " "
|
|||
|
send-keys -X end-of-line
|
|||
|
send-keys -X search-backward " "
|
|||
|
send-keys -X cursor-right
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
# Package manager
|
|||
|
set -g @plugin 'tmux-plugins/tpm'
|
|||
|
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
|||
|
set -g @plugin "arcticicestudio/nord-tmux"
|
|||
|
|
|||
|
run "$XDG_DATA_HOME/tmux/plugins/tpm/tpm'
|