172bb418304eb4c513f8ae43dd72ff201a046b38

Author
Markus Prinz <markus.prinz@nuclearsquid.com>
Committer
Markus Prinz <markus.prinz@nuclearsquid.com>
Date

Message

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

Diff

 1diff --git a/themes/cypher.zsh-theme b/themes/cypher.zsh-theme
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..36633da267d5c80f8f51aae8ed8693a04db65c65
 4--- /dev/null
 5+++ b/themes/cypher.zsh-theme
 6@@ -0,0 +1,4 @@
 7+# Based on evan's prompt
 8+# Shows the exit status of the last command if non-zero
 9+# Uses "#" instead of "»" when running with elevated privileges
10+PROMPT="%m %B%F{red}::%b %B%F{green}%3~%(0?. . %F{red}%? )%F{red}%(0!.#.»)%b%F{white} "