From 3c5fac8dd030fb86ea8283cdf10388acf92f0055 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Tue, 24 Sep 2024 22:14:08 +0100 Subject: [PATCH] Tmux config tweaks --- config-files/.tmux.conf | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/config-files/.tmux.conf b/config-files/.tmux.conf index 53e196ca..ed1bbe49 100644 --- a/config-files/.tmux.conf +++ b/config-files/.tmux.conf @@ -1,9 +1,12 @@ # easy reload config bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded." +# Enable full colors +set-option -sa terminal-overrides ",xterm*:Tc" + # set window split -bind-key v split-window -h -bind-key b split-window +bind-key v split-window -h -c "#{pane_current_path}" +bind-key b split-window -v -c "#{pane_current_path}" # default window title colors set-window-option -g window-status-style fg=colour244,bg=default,dim @@ -31,16 +34,19 @@ bind-key C-a last-window # Start index at 1 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 # Allows for faster key repetition set -s escape-time 50 -# Rather than constraining window size to the maximum size of any client -# connected to the *session*, constrain window size to the maximum size of any +# Rather than constraining window size to the maximum size of any client +# connected to the *session*, constrain window size to the maximum size of any # client connected to *that window*. Much more reasonable. setw -g aggressive-resize on -# Allows us to use C-a a to send commands to a TMUX session inside +# Allows us to use C-a a to send commands to a TMUX session inside # another TMUX session bind-key a send-prefix @@ -82,3 +88,6 @@ set -g mouse on set-option -g focus-events on set-option -sa terminal-features ',foot:RGB' +# Remove confirm prompts +bind-key x kill-pane +bind-key & kill-window