mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-20 22:31:57 +00:00
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
This commit is contained in:
parent
22a761208d
commit
e39e024e74
1 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,10 @@ function getColorCode() {
|
||||||
else
|
else
|
||||||
echo -n "$1"
|
echo -n "$1"
|
||||||
fi
|
fi
|
||||||
|
# Check if value is none with any case.
|
||||||
|
elif [[ $1 = [nN][oO][nN][eE] ]]
|
||||||
|
then
|
||||||
|
echo -n 'none'
|
||||||
else
|
else
|
||||||
typeset -A codes
|
typeset -A codes
|
||||||
# https://jonasjacek.github.io/colors/
|
# https://jonasjacek.github.io/colors/
|
||||||
|
|
Loading…
Reference in a new issue