From bbdf8442157cccde4d6c492dc87ea6c2573928f0 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 13 Feb 2021 18:37:11 +0100 Subject: tmux: fix global status bar change With -g, we enable/disable the status bar globally, which is not what we want - that would mean that all sessions will start showing the bar if just one session creates a new window. Instead, we do it only for the current session. --- tmux/.tmux.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 1fc7f0c..9f61e37 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -2,7 +2,7 @@ set -s escape-time 0 set -g default-terminal "screen-256color" set -g mouse on -if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on" -set-hook -g window-linked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"' -set-hook -g window-unlinked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"' +set -g status off +set-hook -g window-linked 'if -F "#{==:#{session_windows},1}" "set status off" "set status on"' +set-hook -g window-unlinked 'if -F "#{==:#{session_windows},1}" "set status off" "set status on"' set -g status-position "top" -- cgit v1.2.3