From 00cde332501b644374190aab1aee42fadf722e5d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 11 Mar 2023 19:30:39 -0300 Subject: etc/sh/rc: Remove special handling of $TMUX in $PS1 --- etc/sh/rc | 10 ++-------- 1 file 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' -- cgit v1.2.3