29 lines
791 B
Bash
29 lines
791 B
Bash
# status bar to top
|
|
set-option -g status-position top
|
|
|
|
# enable focus events
|
|
set -g focus-events on
|
|
|
|
# Correct numbering
|
|
set -g base-index 1
|
|
set -g pane-base-index 1
|
|
set -g renumber-windows on
|
|
|
|
# Mappings
|
|
## <Leader> |,- Split panes
|
|
bind-key \\ split-window -h -c '#{pane_current_path}' # Split panes horizontally
|
|
bind-key - split-window -v -c '#{pane_current_path}' # Split panes vertically
|
|
## <Leader> h,j,k,l to switch pane
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
# plugins
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
set -g @plugin 'dracula/tmux'
|
|
set -g @plugin 'tmux-plugins/tmux-sidebar'
|
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
run '~/.tmux/plugins/tpm/tpm'
|