Browse Source

fix(prompt): quote ruby prompt (#12195)

Taylor Cochran 2 months ago
parent
commit
70bf12402c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/prompt_info_functions.zsh

+ 1 - 1
lib/prompt_info_functions.zsh

@@ -40,5 +40,5 @@ ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"
 # use this to enable users to see their ruby version, no matter which
 # version management system they use
 function ruby_prompt_info() {
-  echo $(rvm_prompt_info || rbenv_prompt_info || chruby_prompt_info)
+  echo "$(rvm_prompt_info || rbenv_prompt_info || chruby_prompt_info)"
 }