1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-11 00:00:06 +00:00

Write comparison with double quotes

This commit is contained in:
Dominik Ritter 2018-08-08 01:11:44 +02:00
parent 057b07b214
commit 424d41761d

View file

@ -313,7 +313,7 @@ function foregroundColor() {
# into ZSH-Style color codes.
function getColorCode() {
# Early exit: Check if given value is already numerical
if [[ "$1" = <-> ]]; then
if [[ "$1" == <-> ]]; then
# Pad color with zeroes
echo -n "${(l:3::0:)1}"
return