diff options
author | Ythildir <pivardjulien@gmail.com> | 2018-07-21 23:52:08 +0300 |
---|---|---|
committer | Ythildir <pivardjulien@gmail.com> | 2018-07-21 23:52:08 +0300 |
commit | e39e024e741bdfa139a700eccd4e481affdbf4a0 (patch) | |
tree | edd3cf0ff86afaca5533818072e446da32eb0743 /functions/colors.zsh | |
parent | 22a761208d24027a26daa947a7b4034365fefc16 (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/colors.zsh')
-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..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/ |