trapd00r: change more slowly between yellows

Also refactor the logic
This commit is contained in:
Marc Cornellà 2018-08-20 17:55:22 +02:00
parent 3d1719c618
commit b4c8b60bb4

View file

@ -59,16 +59,15 @@ zsh_path() {
else else
print -Pn "\e[31;1m /" print -Pn "\e[31;1m /"
fi fi
(( i++ )) else
continue
fi
if [[ $colors -ge 256 ]]; then if [[ $colors -ge 256 ]]; then
print -Pn "${yellow[$i]:-%f} » " print -Pn "${yellow[$i]:-%f} » "
else else
print -Pn "%F{yellow} > " print -Pn "%F{yellow} > "
fi fi
(( i += 6 )) fi
(( i++ ))
else else
if [[ $colors -ge 256 ]]; then if [[ $colors -ge 256 ]]; then
print -Pn "%F{065}$c" print -Pn "%F{065}$c"