aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/colors.zsh7
1 files changed, 5 insertions, 2 deletions
diff --git a/functions/colors.zsh b/functions/colors.zsh
index f4f211ca..8da5e481 100755
--- a/functions/colors.zsh
+++ b/functions/colors.zsh
@@ -320,8 +320,11 @@ function getColorCode() {
fi
local colorName="${1}"
- # for testing purposes in terminal
- if [[ "${colorName}" == "foreground" ]]; then
+ # Check if value is none with any case.
+ if [[ "${(L)colorName}" == "none" ]]; then
+ echo -n 'none'
+ elif [[ "${colorName}" == "foreground" ]]; then
+ # for testing purposes in terminal
# call via `getColorCode foreground`
for i in "${(k@)__P9K_COLORS}"; do
print -P "$(foregroundColor $i)$(getColor $i) - $i%f"