From 837160ddd32d6c3a255e2816f3e6cba63b53dfcc Mon Sep 17 00:00:00 2001 From: Mark Campbell Date: Mon, 30 Dec 2013 03:05:23 -0500 Subject: [PATCH] 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. --- themes/itchy.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/itchy.zsh-theme b/themes/itchy.zsh-theme index afc2abf69..96383ab58 100644 --- a/themes/itchy.zsh-theme +++ b/themes/itchy.zsh-theme @@ -10,7 +10,7 @@ local pwd="%{$fg[yellow]%}%~%{$reset_color%}" PROMPT='${user}${host} ${pwd} ${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_SUFFIX=""