From d88330ca95a780afed8e2a1bb0ce720c81b5e05f Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Sun, 27 Jun 2010 23:36:22 +1000 Subject: [PATCH] Don't error out with vcprompt (in situations like a git repo with no commits) --- zsh/theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/theme b/zsh/theme index a00ef3c..de0145e 100644 --- a/zsh/theme +++ b/zsh/theme @@ -16,4 +16,4 @@ ZSH_THEME_VCS_PROMPT_SUFFIX="›%{$reset_color%}" ZSH_THEME_VCS_PROMPT_FORMAT="${ZSH_THEME_VCS_PROMPT_PREFIX}%b:%h${ZSH_THEME_VCS_PROMPT_SUFFIX}" PS1='%{$fg[blue]%}$(prompt_pwd)%{$reset_color%} %{$fg[$(prompt_color)]%}♪%{$reset_color%} ' -RPS1='$(${VCPROMPT} -f ${ZSH_THEME_VCS_PROMPT_FORMAT})' +RPS1='$(${VCPROMPT} -f ${ZSH_THEME_VCS_PROMPT_FORMAT} 2>/dev/null)'