mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
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:
parent
a38af27991
commit
837160ddd3
1 changed files with 1 additions and 1 deletions
|
|
@ -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=""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue