Browse Source

Don't show ruby info if using system version

Based off a8fe1b3cb4 by @chauncey-garrett
master
Kaleb Elwert 7 years ago
parent
commit
c7dcd21c9e
  1. 3
      modules/ruby/functions/ruby-info

3
modules/ruby/functions/ruby-info

@ -20,6 +20,9 @@ if (( $+commands[rvm-prompt] )); then @@ -20,6 +20,9 @@ if (( $+commands[rvm-prompt] )); then
version="$(rvm-prompt)"
elif (( $+commands[rbenv] )); then
version="$(rbenv version-name)"
if [[ $version == "system" ]]; then
version=""
fi
elif (( $+commands[ruby] )); then
version="${${$(ruby --version)[(w)1,(w)2]}/ /-}"
fi

Loading…
Cancel
Save