Browse code

Add my (cypher's) zsh prompt

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

Markus Prinz authored on 03/10/2009 at 17:34:49
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,4 @@
0
+# Based on evan's prompt
1
+# Shows the exit status of the last command if non-zero
2
+# Uses "#" instead of "»" when running with elevated privileges
3
+PROMPT="%m %B%F{red}::%b %B%F{green}%3~%(0?. . %F{red}%? )%F{red}%(0!.#.»)%b%F{white} "