31 lines
1010 B
Bash
31 lines
1010 B
Bash
set -g prefix C-t
|
|
bind C-t send-prefix
|
|
|
|
set -g mouse on
|
|
set -g base-index 1 # start windows numbering at 1wq
|
|
# List of plugins
|
|
set -g @plugin 'catppuccin/tmux#v2.1.3'
|
|
set -g @catppuccin_flavor 'mocha'
|
|
|
|
set -g @plugin 'jaclu/tmux-menus'
|
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
|
|
# Other examples:
|
|
# set -g @plugin 'github_username/plugin_name'
|
|
# set -g @plugin 'github_username/plugin_name#branch'
|
|
# set -g @plugin 'git@github.com:user/plugin'
|
|
# set -g @plugin 'git@bitbucket.com:user/plugin'
|
|
set-window-option -g mode-keys vi
|
|
|
|
# Auto-switch prefix: C-a for SSH/mosh, C-b for local
|
|
set -ga update-environment 'MOSH_SERVER_PID'
|
|
set-hook -g session-created 'run-shell ~/.config/tmux-prefix-detect.sh'
|
|
set-hook -g client-attached 'run-shell ~/.config/tmux-prefix-detect.sh'
|
|
|
|
# Manual override: prefix+T to toggle
|
|
bind T run-shell ~/.config/tmux-prefix-detect.sh
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
run '~/.tmux/plugins/tpm/tpm'
|