show system ruby version as last resort on ruby-info
This commit is contained in:
parent
13b501adaf
commit
a3c516c17c
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@ if (( $+commands[rvm-prompt] )); then
|
|||
version="$(rvm-prompt)"
|
||||
elif (( $+commands[rbenv] )); then
|
||||
version="$(rbenv version-name)"
|
||||
elif (( $+commands[ruby] )); then
|
||||
version="$(ruby --version | cut -d' ' -f2)"
|
||||
fi
|
||||
|
||||
# Format version.
|
||||
|
|
Loading…
Add table
Reference in a new issue