summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorYthildir <pivardjulien@gmail.com>2018-07-21 23:52:08 +0300
committerYthildir <pivardjulien@gmail.com>2018-07-21 23:52:08 +0300
commite39e024e741bdfa139a700eccd4e481affdbf4a0 (patch)
treeedd3cf0ff86afaca5533818072e446da32eb0743 /functions
parent22a761208d24027a26daa947a7b4034365fefc16 (diff)
Resolve #918 Transparent background
Now function getColorCode consider value 'none' like a good value. When it's use to set background the segment become transparent
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 e98bfd4f..81e96ae1 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 [[ $1 = [nN][oO][nN][eE] ]]
+ then
+ echo -n 'none'
else
typeset -A codes
# https://jonasjacek.github.io/colors/