1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-02 00:29:25 +00:00

[Fix #361] Load chruby when found

This commit is contained in:
Sorin Ionescu
2014-02-01 23:37:29 -05:00
parent af003d83c5
commit dbeb6d4e1a
4 changed files with 35 additions and 4 deletions

View File

@ -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)[(w)1,(w)2]}/ /-}"
fi
# Format version.