aboutsummaryrefslogtreecommitdiff
path: root/zshrc.dot.link
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-03-23 18:25:25 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-03-23 18:25:25 -0300
commit00cad600e2c3a68c30220a93e435ef0d85ea9071 (patch)
tree47ca95b363896210646f2c224c572806626eb18b /zshrc.dot.link
parentf35d181a2261a30d3f4801326a35c09c7bcc3e12 (diff)
downloadprofile-00cad600e2c3a68c30220a93e435ef0d85ea9071.tar.gz
profile-00cad600e2c3a68c30220a93e435ef0d85ea9071.tar.bz2
ZSH: colored exit status
Diffstat (limited to 'zshrc.dot.link')
-rw-r--r--zshrc.dot.link2
1 files changed, 1 insertions, 1 deletions
diff --git a/zshrc.dot.link b/zshrc.dot.link
index 0255a66..e16d962 100644
--- a/zshrc.dot.link
+++ b/zshrc.dot.link
@@ -1,7 +1,7 @@
# Set up the prompt
autoload -Uz promptinit && promptinit
autoload -U colors && colors
-PROMPT="%{$fg[green]%}%? %{$fg[cyan]%}$(date +%Y%m%d) %* %{$fg[yellow]%}%n@%m%{$reset_color%}:%{$fg[cyan]%}%~%{$reset_color%} %# "
+PROMPT="%(?.%{$fg[green]%}.%{$fg[red]%})%? %{$fg[cyan]%}$(date +%Y%m%d) %* %{$fg[yellow]%}%n@%m%{$reset_color%}:%{$fg[cyan]%}%~%{$reset_color%} %# "
# Set history
setopt histignorealldups sharehistory