mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 21:41:57 +00:00
Write comparison with double quotes
This commit is contained in:
parent
057b07b214
commit
424d41761d
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ function foregroundColor() {
|
||||||
# into ZSH-Style color codes.
|
# into ZSH-Style color codes.
|
||||||
function getColorCode() {
|
function getColorCode() {
|
||||||
# Early exit: Check if given value is already numerical
|
# Early exit: Check if given value is already numerical
|
||||||
if [[ "$1" = <-> ]]; then
|
if [[ "$1" == <-> ]]; then
|
||||||
# Pad color with zeroes
|
# Pad color with zeroes
|
||||||
echo -n "${(l:3::0:)1}"
|
echo -n "${(l:3::0:)1}"
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue