From 0a48ef9fc7c78322baef0f04f07cdc5494d88ea4 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 19 Dec 2016 10:18:13 +1300 Subject: Attempt a much saner approach to managing SHLVL --- bash/bashrc.d/prompt.bash | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bash/bashrc.d') diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 7058f4c3..ed09afdd 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -31,10 +31,9 @@ prompt() { # Add terminating "$" or "#" sign PS1=$PS1'\$' - # Add > signs at the front of the prompt to show the current shell - # level, taking tmux sessions into account + # Add > symbols to show nested shells local shlvl - for ((shlvl = SHLVL - TMUX_SHLVL; shlvl > 1; shlvl--)) ; do + for ((shlvl = 1; shlvl < SHLVL; shlvl++)) ; do PS1='>'$PS1 done -- cgit v1.2.3