Add error code to prompt.

This commit is contained in:
Blake Taylor 2012-03-03 20:46:23 -08:00
commit 867f25110c

View file

@ -8,5 +8,6 @@ ZSH_THEME_GIT_PROMPT_CLEAN=""
PROMPT='%~%{$reset_color%}$(git_prompt_info) ★ %{$reset_color%}'
if which rbenv &> /dev/null; then
RPROMPT='%{$fg[blue]%}$(rbenv version | cut -d " " -f 1 | sed "s/-/ /g")%{$reset_color%}'
local ruby="%{$fg[blue]%}$(rbenv version | cut -d " " -f 1 | sed "s/-/ /g")%{$reset_color%}"
fi
RPROMPT='%(?..%{$fg[white]%}%?%{$fg[red]%}⚡)%{$reset_color%} $ruby'