mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 08:20:10 +00:00
Write comparison with double quotes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user