From 5ce384fb315528cefb33e76793f27c6b7936185a Mon Sep 17 00:00:00 2001 From: Ythildir Date: Sun, 22 Jul 2018 00:21:59 +0200 Subject: [PATCH] Test more readable --- functions/colors.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/colors.zsh b/functions/colors.zsh index 81e96ae..7befbb2 100755 --- a/functions/colors.zsh +++ b/functions/colors.zsh @@ -80,7 +80,7 @@ function getColorCode() { echo -n "$1" fi # Check if value is none with any case. - elif [[ $1 = [nN][oO][nN][eE] ]] + elif [[ "${(L)1}" == "none" ]] then echo -n 'none' else