zsh: theme: do not increase shell level when using tmux

fix-ci
bretello 2023-07-27 12:01:26 +02:00
parent fc0410eff3
commit 4b73ed209f
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
1 changed files with 1 additions and 1 deletions

View File

@ -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