summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2018-08-20 17:55:22 +0200
committerMarc Cornellà <marc.cornella@live.com>2018-08-20 17:55:22 +0200
commitb4c8b60bb45f00f3cd68000ceda3c96b2ad852ed (patch)
treeb2f32793af24bce9c258ae8611fa3310efea3b5c
parent3d1719c618e83b03ec7fae023444cdacf729f63a (diff)
downloadzsh-b4c8b60bb45f00f3cd68000ceda3c96b2ad852ed.tar.gz
zsh-b4c8b60bb45f00f3cd68000ceda3c96b2ad852ed.tar.bz2
zsh-b4c8b60bb45f00f3cd68000ceda3c96b2ad852ed.zip
trapd00r: change more slowly between yellows
Also refactor the logic
-rwxr-xr-xthemes/trapd00r.zsh-theme15
1 files changed, 7 insertions, 8 deletions
diff --git a/themes/trapd00r.zsh-theme b/themes/trapd00r.zsh-theme
index a1db9945c..33579e728 100755
--- a/themes/trapd00r.zsh-theme
+++ b/themes/trapd00r.zsh-theme
@@ -59,16 +59,15 @@ zsh_path() {
else
print -Pn "\e[31;1m /"
fi
- (( i++ ))
- continue
- fi
-
- if [[ $colors -ge 256 ]]; then
- print -Pn "${yellow[$i]:-%f} » "
else
- print -Pn "%F{yellow} > "
+ if [[ $colors -ge 256 ]]; then
+ print -Pn "${yellow[$i]:-%f} » "
+ else
+ print -Pn "%F{yellow} > "
+ fi
fi
- (( i += 6 ))
+
+ (( i++ ))
else
if [[ $colors -ge 256 ]]; then
print -Pn "%F{065}$c"