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