From 99f55332f802345809f0ca9c4e3e390552f2a8fc Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Tue, 5 Mar 2024 01:11:40 +0200 Subject: [PATCH] update tmux.conf --- tmux/.tmux.conf | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index bfc0686..856af21 100755 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -8,18 +8,27 @@ set -g prefix C-a unbind C-b -# Start in newer bash -set-option -g default-command "/usr/local/bin/bash --login" -# Disable delay +# Start in newer bash +# set-option -g default-comma# Disable delay + set -sg escape-time 1 +# Increase scrollback buffer size from 2000 to 50000 lines +set -g history-limit 50000 + set -g base-index 1 # start windows numbering at 1 setw -g pane-base-index 1 # make pane numbering consistent with windows set -q -g status-utf8 on # expect UTF-8 (tmux < 2.2) setw -q -g utf8 on +# Focus events enabled for terminals that support them +set -g focus-events on + +# Super useful when using "grouped sessions" and multi-monitor setup +setw -g aggressive-resize on + # ------------------- # Visual Settings # ------------------- @@ -49,6 +58,9 @@ STYLE_AQUA="#[fg=$TMUX_USERNAME_FG,bg=$TMUX_STATUS_AQUA,bold]" # Status bar set-option -g status-position bottom +# Refresh 'status-left' and 'status-right' more often, from every 15s to 5s +set -g status-interval 5 + # Status mid style set -g status-style $STYLE_DEFAULT @@ -140,6 +152,7 @@ bind P choose-buffer # see all buffers bind C-c run-shell "bash -c 'tmux show-buffer | pbcopy'" \; display 'Copied to clipboard' + # Tmux Plugin manager # https://github.com/tmux-plugins/tpm