diff options
-rwxr-xr-x | functions/colors.zsh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/functions/colors.zsh b/functions/colors.zsh index e98bfd4f..7befbb2c 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/ |