mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-01-29 21:03:51 +02:00
Write comparison with double quotes
This commit is contained in:
parent
057b07b214
commit
424d41761d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user