浏览代码

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 14 年之前
父节点
当前提交
172bb41830
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      themes/cypher.zsh-theme

+ 4 - 0
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} "