diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-11-30 10:25:55 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-11-30 10:25:55 +1300 |
commit | 64663108281d54fa8bdfb8c3e41d8e5ed50253e9 (patch) | |
tree | 85205b7d0333ecf92e903720d0d6c02d008078cc /bash/bashrc.d | |
parent | Add > signs to show shell indentation level (diff) | |
download | dotfiles-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.bash | 2 |
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 |