summaryrefslogtreecommitdiff
path: root/themes/cypher.zsh-theme
diff options
context:
space:
mode:
authorMarkus Prinz <markus.prinz@nuclearsquid.com>2009-10-03 19:34:49 +0200
committerMarkus Prinz <markus.prinz@nuclearsquid.com>2009-10-03 19:34:49 +0200
commit172bb418304eb4c513f8ae43dd72ff201a046b38 (patch)
tree8e3df2d4fd2b6686b7d262074da61a51854fab8b /themes/cypher.zsh-theme
parenteddab5034cb19caa99a1a0e381de4dcf63ef0fe0 (diff)
downloadzsh-172bb418304eb4c513f8ae43dd72ff201a046b38.tar.gz
zsh-172bb418304eb4c513f8ae43dd72ff201a046b38.tar.bz2
zsh-172bb418304eb4c513f8ae43dd72ff201a046b38.zip
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
Diffstat (limited to 'themes/cypher.zsh-theme')
-rw-r--r--themes/cypher.zsh-theme4
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/cypher.zsh-theme b/themes/cypher.zsh-theme
new file mode 100644
index 000000000..36633da26
--- /dev/null
+++ b/themes/cypher.zsh-theme
@@ -0,0 +1,4 @@
+# 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} "