Fix itchy theme rvm-prompt invocation by silencing error messages

If rvm-prompt or rbenv isn't found within the system, then the
following error message is displayed:

zsh: command not found: rvm-prompt

Silencing standard error while invoking these commands fixes this
problem.
This commit is contained in:
Mark Campbell 2013-12-30 03:05:23 -05:00
parent a38af27991
commit 837160ddd3

View File

@ -10,7 +10,7 @@ local pwd="%{$fg[yellow]%}%~%{$reset_color%}"
PROMPT='${user}${host} ${pwd} PROMPT='${user}${host} ${pwd}
${smiley} ' ${smiley} '
RPROMPT='$(rvm-prompt || rbenv version) %{$fg[white]%}$(git_prompt_info)%{$reset_color%}' RPROMPT='$(rvm-prompt 2>/dev/null || rbenv version 2>/dev/null) %{$fg[white]%}$(git_prompt_info)%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="" ZSH_THEME_GIT_PROMPT_PREFIX=""
ZSH_THEME_GIT_PROMPT_SUFFIX="" ZSH_THEME_GIT_PROMPT_SUFFIX=""