mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-02-18 17:34:29 +01:00

- 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.
4 lines
262 B
Bash
4 lines
262 B
Bash
# 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}%} "
|