aboutsummaryrefslogtreecommitdiff
path: root/zsh/zshrc.d/prompt.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/zshrc.d/prompt.zsh')
-rw-r--r--zsh/zshrc.d/prompt.zsh5
1 files changed, 2 insertions, 3 deletions
diff --git a/zsh/zshrc.d/prompt.zsh b/zsh/zshrc.d/prompt.zsh
index 4b98c125..5dc00fd3 100644
--- a/zsh/zshrc.d/prompt.zsh
+++ b/zsh/zshrc.d/prompt.zsh
@@ -32,10 +32,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