71 lines
1.9 KiB
Bash
71 lines
1.9 KiB
Bash
set-option -g prefix C-a
|
|
|
|
unbind-key C-b
|
|
|
|
bind-key C-a send-prefix
|
|
|
|
bind-key | split-window -h -c "#{pane_current_path}"
|
|
bind-key - split-window -v -c "#{pane_current_path}"
|
|
|
|
set-option -ga terminal-overrides ",xterm-256color:Tc"
|
|
set-window-option -g mode-keys vi
|
|
|
|
# Use v to trigger selection
|
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
|
|
|
# Use y to yank current selection
|
|
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
|
|
|
# open alphabetically sorted session list
|
|
bind s choose-tree -Zs -O name
|
|
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
bind-key -r C-h resize-pane -L 10
|
|
bind-key -r C-k resize-pane -U 10
|
|
bind-key -r C-j resize-pane -D 10
|
|
bind-key -r C-l resize-pane -R 10
|
|
|
|
set -g base-index 1
|
|
setw -g pane-base-index 1
|
|
|
|
set -s escape-time 0
|
|
|
|
# List of plugins
|
|
# Note: In order to be executed periodically, tmux continuum updates the status-right tmux variable.
|
|
# In case some plugin (usually themes) overwrites the status-right variable, the autosave feature stops working.
|
|
# To fix this issue, place the plugin last in the TPM plugins list.
|
|
set -g @tpm_plugins ' \
|
|
tmux-plugins/tpm \
|
|
tmux-plugins/tmux-sensible \
|
|
tmux-plugins/tmux-resurrect \
|
|
tmux-plugins/tmux-yank \
|
|
tmux-plugins/tmux-continuum \
|
|
'
|
|
|
|
set -g @continuum-restore 'on'
|
|
set -g @continuum-save-interval '30'
|
|
|
|
set -g @resurrect-processes 'false'
|
|
|
|
# border colours
|
|
set -g pane-border-style "fg=#282728"
|
|
set -g pane-active-border-style "fg=#938AA9"
|
|
|
|
# status bar
|
|
set-option -g status-style bg=default
|
|
set -g message-command-style bg=default
|
|
set -g message-style bg=default
|
|
set -g status-left '| #S | '
|
|
set -g status-right ''
|
|
set -g status-left-length 500
|
|
|
|
set -g window-status-format "#I:#W "
|
|
set -g window-status-current-format "#[fg=red]#I#[fg=default]:#W* "
|
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
run '~/.config/tmux/plugins/tpm/tpm'
|