From e22f2e742b2db38f890cc445732d278378a611e4 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Sat, 2 Feb 2008 10:52:40 +0100 Subject: [PATCH] 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. --- etc/zsh/zshrc | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.1.4