Permalink
Browse files

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.
  • Loading branch information...
1 parent 192de6b commit c66c3aef8126bf943b2746afb6a9c2a536990db5 @fice-t fice-t committed Aug 17, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 themes/cypher.zsh-theme
@@ -1,4 +1,4 @@
# Based on evan's prompt
# Shows the exit status of the last command if non-zero
# Uses "#" instead of "»" when running with elevated privileges
-PROMPT="%m %{${fg_bold[red]}%}:: %{${fg[green]}%}%3~%(0?. . ${fg[red]}%? )%{${fg[blue]}%}»%{${reset_color}%} "
+PROMPT="%m %{${fg_bold[red]}%}:: %{${fg[green]}%}%3~%(0?. . %{${fg[red]}%}%? )%{${fg[blue]}%}»%{${reset_color}%} "

0 comments on commit c66c3ae

Please sign in to comment.