From: Frank Terbeck Date: Sat, 2 Feb 2008 09:52:40 +0000 (+0100) Subject: zshrc: autoloading is-at-least again X-Git-Tag: 0.3.48^2 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=e22f2e742b2db38f890cc445732d278378a611e4;p=grml-etc-core.git zshrc: autoloading is-at-least again is-at-least() can be used for precise version checks (as opposed to our broad is4(), is4{1,2,3}() functions - which are a lot simpler). Note that this test will *always* fail, if the is-at-least function could not be marked for autoloading. --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index c752a63..bcddaf6 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -289,6 +289,11 @@ is43(){ return 1 } +# Use is-at-least, if you need to check more precisely. +# Note that this test will *always* fail, if the is-at-least +# function could not be marked for autoloading. +zrcautoload is-at-least || is-at-least() { return 1 } + #f1# Checks whether or not you're running grml isgrml(){ [[ -f /etc/grml_version ]] && return 0