Browse Source

Do not source Oh My Zsh on Zsh version mismatch

master
Sorin Ionescu 13 years ago
parent
commit
ed8609f17a
  1. 1
      init.zsh

1
init.zsh

@ -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

Loading…
Cancel
Save