1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-22 13:31:40 +01:00

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

This commit is contained in:
bretello 2023-07-27 12:01:26 +02:00
parent fc0410eff3
commit 4b73ed209f
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

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