1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 21:58:00 +00:00

Do not source Oh My Zsh on Zsh version mismatch

This commit is contained in:
Sorin Ionescu 2012-06-03 13:08:07 -04:00
parent c352b86aeb
commit ed8609f17a

View File

@ -10,6 +10,7 @@
min_zsh_version='4.3.10' min_zsh_version='4.3.10'
if ! autoload -Uz is-at-least || ! is-at-least "$min_zsh_version"; then if ! autoload -Uz is-at-least || ! is-at-least "$min_zsh_version"; then
print "omz: old shell detected, minimum required: $min_zsh_version" >&2 print "omz: old shell detected, minimum required: $min_zsh_version" >&2
return 1
fi fi
unset min_zsh_version unset min_zsh_version