From 64663108281d54fa8bdfb8c3e41d8e5ed50253e9 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 30 Nov 2016 10:25:55 +1300 Subject: Only add > starting from SHLVL=2 --- bash/bashrc.d/prompt.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash') diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 47a01962..84cdf584 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -34,7 +34,7 @@ prompt() { # Add > signs at the front of the prompt to show the current shell # level local i - for ((i = 0; i < SHLVL; i++)) ; do + for ((i = 1; i < SHLVL; i++)) ; do PS1='>'$PS1 done -- cgit v1.2.3