c66c3aef8126bf943b2746afb6a9c2a536990db5

Author
Fice-T <Fice-T@users.noreply.github.com>
Committer
Fice-T <Fice-T@users.noreply.github.com>
Date

Message

Fix graphical bug in cypher theme when return status is non-zero

- When the previous command's return status is non-zero and the prompt
  is redrawn, graphical errors sometimes arise due to the fg{red} not
  being escaped.

Diff

 1diff --git a/themes/cypher.zsh-theme b/themes/cypher.zsh-theme
 2index 45df53d22fb3544a5767e5935dcce713a5216548..6e6b78ee67d4ac5c5126323f8f1b9be7b73786f4 100644
 3--- a/themes/cypher.zsh-theme
 4+++ b/themes/cypher.zsh-theme
 5@@ -1,4 +1,4 @@
 6 # Based on evan's prompt
 7 # Shows the exit status of the last command if non-zero
 8 # Uses "#" instead of "»" when running with elevated privileges
 9-PROMPT="%m %{${fg_bold[red]}%}:: %{${fg[green]}%}%3~%(0?. . ${fg[red]}%? )%{${fg[blue]}%}»%{${reset_color}%} "
10+PROMPT="%m %{${fg_bold[red]}%}:: %{${fg[green]}%}%3~%(0?. . %{${fg[red]}%}%? )%{${fg[blue]}%}»%{${reset_color}%} "