mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 21:41:57 +00:00
stop padding colors with leading zeros; it makes no difference
This commit is contained in:
parent
a2bc4f0b94
commit
5a30f6a399
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ typeset -ga _P9K_RIGHT_JOIN=(1)
|
|||
|
||||
_p9k_translate_color() {
|
||||
if [[ $1 == <-> ]]; then # decimal color code: 255
|
||||
_P9K_RETVAL=${(l:3::0:)1}
|
||||
_P9K_RETVAL=$1
|
||||
elif [[ $1 == '#'* ]]; then # hexademical color code: #ffffff
|
||||
_P9K_RETVAL=$1
|
||||
else # named color: red
|
||||
|
|
Loading…
Reference in a new issue