aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/colors.zsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions/colors.zsh b/functions/colors.zsh
index 9309a225..6b612256 100755
--- a/functions/colors.zsh
+++ b/functions/colors.zsh
@@ -79,6 +79,10 @@ function getColorCode() {
else
echo -n "$1"
fi
+ # Check if value is none with any case.
+ elif [[ "${(L)1}" == "none" ]]
+ then
+ echo -n 'none'
else
typeset -A codes
# https://jonasjacek.github.io/colors/