From 00cad600e2c3a68c30220a93e435ef0d85ea9071 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 23 Mar 2015 18:25:25 -0300 Subject: ZSH: colored exit status --- zshrc.dot.link | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zshrc.dot.link') 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 -- cgit v1.2.3