mirror of
https://github.com/dcarrillo/prezto.git
synced 2026-04-27 23:51:35 +00:00
Don't show ruby info if using system version
Based off https://github.com/chauncey-garrett/zsh-prezto/commit/a8fe1b3cb42c2a44349fa373ade5b46d5b9a57ee by @chauncey-garrett
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user