From 6d72c14e22cc35f6443b933127b9d55e73427f06 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Thu, 8 Oct 2009 11:26:45 +0200 Subject: [PATCH] Fix one and add another is*() function The new one is is439 which checks for zsh 4.3.9 and newer. The fix is in is433, which did not return true for versions like 4.4.x and similar. That is currently not a problem, but may become once such a version is out. --- etc/zsh/zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 6221861..2dadf9c 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -134,7 +134,12 @@ is43(){ } is433(){ - [[ $ZSH_VERSION == 4.3.<3->* || $ZSH_VERSION == <5->* ]] && return 0 + [[ $ZSH_VERSION == 4.3.<3->* || $ZSH_VERSION == 4.<4->* || $ZSH_VERSION == <5->* ]] && return 0 + return 1 +} + +is439(){ + [[ $ZSH_VERSION == 4.3.<9->* || $ZSH_VERSION == 4.<4->* || $ZSH_VERSION == <5->* ]] && return 0 return 1 } -- 2.1.4