aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-11 19:30:39 -0300
committerEuAndreh <eu@euandre.org>2023-03-11 19:30:39 -0300
commit00cde332501b644374190aab1aee42fadf722e5d (patch)
treef5d9d0bf9ba2ab40c62b6d4b4ba83b78f75726a0
parentetc/ssh/: Add zh3051.rsync.net key and host alias (diff)
downloaddotfiles-00cde332501b644374190aab1aee42fadf722e5d.tar.gz
dotfiles-00cde332501b644374190aab1aee42fadf722e5d.tar.xz
etc/sh/rc: Remove special handling of $TMUX in $PS1
-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'