mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-20 10:51:13 +00:00
77f632bca6
Based on Evan's prompt, it uses colors, shows the exit status of the last command if it was non-zero, and displays "#" when running with elevated privileges
5 lines
235 B
Bash
5 lines
235 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 %B%F{red}::%b %B%F{green}%3~%(0?. . %F{red}%? )%F{red}%(0!.#.»)%b%F{white} "
|