mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 18:38:00 +00:00
Don't show ruby info if using system version
Based off a8fe1b3cb4
by @chauncey-garrett
This commit is contained in:
parent
7ebb5e9dda
commit
c7dcd21c9e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user