aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-11-30 10:25:55 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-11-30 10:25:55 +1300
commit64663108281d54fa8bdfb8c3e41d8e5ed50253e9 (patch)
tree85205b7d0333ecf92e903720d0d6c02d008078cc /bash/bashrc.d
parentAdd > signs to show shell indentation level (diff)
downloaddotfiles-64663108281d54fa8bdfb8c3e41d8e5ed50253e9.tar.gz
dotfiles-64663108281d54fa8bdfb8c3e41d8e5ed50253e9.zip
Only add > starting from SHLVL=2
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/prompt.bash2
1 files changed, 1 insertions, 1 deletions
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