From 4b73ed209fead25ca9619b71acab8c9df75d0827 Mon Sep 17 00:00:00 2001 From: bretello Date: Thu, 27 Jul 2023 12:01:26 +0200 Subject: [PATCH] zsh: theme: do not increase shell level when using tmux --- themes/brethil.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/brethil.zsh-theme b/themes/brethil.zsh-theme index 2592b75..cba3ebd 100644 --- a/themes/brethil.zsh-theme +++ b/themes/brethil.zsh-theme @@ -41,7 +41,7 @@ function job_prompt() { function shlvl_prompt() { local SHLVL_PROMPT - if [[ -n "$BYOBU_PREFIX" ]]; then + if [[ -n "$TMUX" ]]; then SHLVL_PROMPT="%(3L.%K{161}%F{255}%B $((SHLVL-1)) %f%b%k.)" # Shows SHLVL on a magenta background if SHLVL > 1 else SHLVL_PROMPT="%(2L.%K{161}%F{255}%B %L %f%b%k.)" # Shows SHLVL on a magenta background if SHLVL > 1