Browse Source

trapd00r: change more slowly between yellows

Also refactor the logic
Marc Cornellà 5 years ago
parent
commit
b4c8b60bb4
1 changed files with 7 additions and 8 deletions
  1. 7 8
      themes/trapd00r.zsh-theme

+ 7 - 8
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"