diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-02-13 18:37:11 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-02-13 18:37:11 +0100 |
commit | bbdf8442157cccde4d6c492dc87ea6c2573928f0 (patch) | |
tree | e0c080f5309a29e736f470119f2d4ef26b97c8a0 | |
parent | ebfa3190f61fd92a1ecf1171d2526ee0c791d4ff (diff) | |
download | dotfiles-bbdf8442157cccde4d6c492dc87ea6c2573928f0.tar.gz dotfiles-bbdf8442157cccde4d6c492dc87ea6c2573928f0.tar.bz2 dotfiles-bbdf8442157cccde4d6c492dc87ea6c2573928f0.zip |
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.
-rw-r--r-- | tmux/.tmux.conf | 6 |
1 files 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" |