diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf index 098a0c9..08f4e09 100644 --- a/dotfiles/tmux.conf +++ b/dotfiles/tmux.conf @@ -1,6 +1,6 @@ # better prefix key -set -g prefix C-a -bind C-a send-prefix +set -g prefix C-x +bind C-x send-prefix # better splitting bind | split-window -h -c "#{pane_current_path}" @@ -13,11 +13,21 @@ bind-key -r < resize-pane -L 10 bind-key -r > resize-pane -R 10 # 256 colors support -set -g default-terminal "screen-256color" +set-option -ga terminal-overrides ",xterm-256color:Tc" -# sane scrolling +# 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' @@ -27,4 +37,8 @@ set -g @plugin "arcticicestudio/nord-tmux" # 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'