2023-03-18 23:07:00 -04:00
|
|
|
# set prefix to C-z
|
|
|
|
set -g prefix C-z
|
|
|
|
unbind C-b
|
|
|
|
bind C-z send-prefix
|
|
|
|
|
2023-03-26 12:29:27 -04:00
|
|
|
# enable mouse support
|
|
|
|
set -g mouse on
|
|
|
|
|
2023-03-18 23:07:00 -04:00
|
|
|
# open new panes in current directory
|
|
|
|
bind % split-window -h -c "#{pane_current_path}"
|
|
|
|
bind '"' split-window -v -c "#{pane_current_path}"
|
2023-03-18 23:34:03 -04:00
|
|
|
|
|
|
|
# vim-like pane navigation
|
|
|
|
bind h select-pane -L
|
|
|
|
bind j select-pane -D
|
|
|
|
bind k select-pane -U
|
|
|
|
bind l select-pane -R
|
|
|
|
# resizing
|
|
|
|
bind -r C-h resize-pane -L
|
|
|
|
bind -r C-j resize-pane -D
|
|
|
|
bind -r C-k resize-pane -U
|
|
|
|
bind -r C-l resize-pane -R
|
|
|
|
bind -r M-h resize-pane -L 5
|
|
|
|
bind -r M-j resize-pane -D 5
|
|
|
|
bind -r M-k resize-pane -U 5
|
|
|
|
bind -r M-l resize-pane -R 5
|
2023-04-07 23:31:39 -04:00
|
|
|
|
|
|
|
# plugins
|
|
|
|
set-option -g @plugin 'tmux-plugins/tpm'
|
2023-04-07 23:31:51 -04:00
|
|
|
set-option -g @plugin 'noscript/tmux-mighty-scroll'
|
2023-04-07 23:31:39 -04:00
|
|
|
|
|
|
|
# install/update tpm
|
|
|
|
if-shell "test ! -d " \
|
|
|
|
"run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm'"
|
|
|
|
run-shell '~/.config/tmux/plugins/tpm/bin/install_plugins'
|
|
|
|
run-shell '~/.config/tmux/plugins/tpm/bin/clean_plugins'
|
|
|
|
run-shell '~/.config/tmux/plugins/tpm/bin/update_plugins all'
|
|
|
|
# start tpm
|
|
|
|
run-shell '~/.config/tmux/plugins/tpm/tpm'
|