check that we can set a tmux status before loading tmux powerline config

main
World's Tallest Ladder 2025-04-24 12:34:48 -07:00
parent 2e1421a589
commit d8c2820c49
Signed by: wtl
GPG Key ID: F0D4D5526213099D
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ if command -v tmux >/dev/null 2>&1; then
&& [ -z "$TMUX" ]; then
exec tmux new -A -s default && exit
fi
if command -v powerline-config >/dev/null 2>&1; then
if tmux set -g status on >/dev/null 2>&1 && command -v powerline-config >/dev/null 2>&1; then
powerline-config tmux setup
fi
fi