rvm.zsh 347 B

12345678
  1. # get the name of the ruby version
  2. function rvm_prompt_info() {
  3. [ -f $HOME/.rvm/bin/rvm-prompt ] || return
  4. local rvm_prompt
  5. rvm_prompt=$($HOME/.rvm/bin/rvm-prompt ${ZSH_THEME_RVM_PROMPT_OPTIONS} 2>/dev/null)
  6. [[ "${rvm_prompt}x" == "x" ]] && return
  7. echo "${ZSH_THEME_RVM_PROMPT_PREFIX:=(}${rvm_prompt}${ZSH_THEME_RVM_PROMPT_SUFFIX:=)}"
  8. }