|
|
|
# better prefix key
|
|
|
|
set -g prefix C-x
|
|
|
|
bind C-x send-prefix
|
|
|
|
|
|
|
|
# better splitting
|
|
|
|
bind | split-window -h -c "#{pane_current_path}"
|
|
|
|
bind - split-window -v -c "#{pane_current_path}"
|
|
|
|
|
|
|
|
# better resizing
|
|
|
|
bind-key -r + resize-pane -U 10
|
|
|
|
bind-key -r = resize-pane -D 10
|
|
|
|
bind-key -r < resize-pane -L 10
|
|
|
|
bind-key -r > resize-pane -R 10
|
|
|
|
|
|
|
|
# 256 colors support
|
|
|
|
set-option -ga terminal-overrides ",xterm-256color:Tc"
|
|
|
|
|
|
|
|
# Mouse nav
|
|
|
|
set -g mouse on
|
|
|
|
|
|
|
|
# Don't let tmux override window names
|
|
|
|
set-option -g allow-rename off
|
|
|
|
|
|
|
|
# Quiet tmux
|
|
|
|
set -g visual-activity off
|
|
|
|
set -g visual-bell off
|
|
|
|
set -g visual-silence off
|
|
|
|
setw -g monitor-activity off
|
|
|
|
set -g bell-action none
|
|
|
|
|
|
|
|
# PLUGINS
|
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
|
|
set -g @plugin 'christoomey/vim-tmux-navigator'
|
|
|
|
set -g @plugin "arcticicestudio/nord-tmux"
|
|
|
|
# END PLUGINS
|
|
|
|
|
|
|
|
# TMUX plugin manager (keep at the bottom of tmux.conf)
|
|
|
|
# requires git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
|
|
|
|
|
|
|
if "test ! -d ~/.tmux/plugins/tpm" \
|
|
|
|
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm'"
|
|
|
|
|
|
|
|
run -b '~/.tmux/plugins/tpm/tpm'
|