1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-21 21:30:09 +00:00

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.
This commit is contained in:
Fice-T 2015-08-16 22:36:32 -06:00
parent 192de6bcff
commit c66c3aef81

View file

@ -1,4 +1,4 @@
# Based on evan's prompt # Based on evan's prompt
# Shows the exit status of the last command if non-zero # Shows the exit status of the last command if non-zero
# Uses "#" instead of "»" when running with elevated privileges # 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}%} "