aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/sh/rc10
1 files changed, 2 insertions, 8 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index 57a4f79..872d879 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -166,17 +166,11 @@ shell_status_level() {
return
fi
- if [ -n "${TMUX:-}" ]; then
- LVL=$((SHLVL - 1))
- else
- LVL="$SHLVL"
- fi
-
- if [ "$LVL" = 1 ]; then
+ if [ "$SHLVL" = 1 ]; then
return
fi
- color -c white "$LVL"
+ color -c white "$SHLVL"
if [ -n "${RANGER_LEVEL:-}" ]; then
color -c white '|'
color -c bluei 'r'