aboutsummaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-19 10:18:13 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-19 10:18:13 +1300
commit0a48ef9fc7c78322baef0f04f07cdc5494d88ea4 (patch)
treee2c2e856e335f8a6794335c8ffb67276c9119418 /zsh
parent35433c0f2087eacaa0b40841121fe8594e4e22be (diff)
downloaddotfiles-0a48ef9fc7c78322baef0f04f07cdc5494d88ea4.tar.gz
Attempt a much saner approach to managing SHLVL
Diffstat (limited to '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