From bd00a2b8b974c99a1b046194810c75cc43f4410c Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Tue, 2 May 2023 17:48:41 -0700 Subject: [PATCH] Update tmux config --- tmux/.config/tmux/tmux.conf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index 8bfaada..6ed5b72 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -6,16 +6,19 @@ set -g prefix C-a unbind C-b # More responsive with sending commands -set -sg escape-time 1 +set -sg escape-time 0 set-option -g history-limit 500000 # Start counting at 0, easier for keyboard shortcuts set -g base-index 1 +set -g pane-base-index 1 set-window-option -g pane-base-index 1 +set-option -g renumber-windows on # Status -set -g status-interval 20 +set -g status-interval 5 +set -g status-keys emacs set -g status-justify centre set -g status-left "#[fg=colour75]#S:#I.#P" @@ -45,13 +48,14 @@ unbind p bind p paste-buffer bind-key -T copy-mode-vi 'v' send -X begin-selection bind-key -T copy-mode-vi 'y' send -X copy-selection +bind-key -T copy-mode-vi 'q' send -X rectangle-toggle # Make switch session shortcut repeatable bind -r ( switch-client -p bind -r ) switch-client -n # Reload config with prefix r -bind r source-file $HOME/.tmux.conf \; display "Reloaded" +bind r source-file $XDG_CONFIG_HOME/tmux/tmux.conf \; display "Reloaded" # Send prefix to the terminal bind C-a send-prefix @@ -65,6 +69,7 @@ bind -r C-l select-window -t :+ set-environment -g TMUX_PLUGIN_MANAGER_PATH $XDG_DATA_HOME/tmux/plugins +set -g @plugin 'tmux-plugins/tmux' set -g @plugin 'tmux-plugins/tmux-copycat' set -g @plugin 'tmux-plugins/tmux-open' set -g @plugin 'tmux-plugins/tmux-pain-control'