mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-26 05:50:07 +00:00
comment
This commit is contained in:
parent
ca8ec45f7a
commit
fd283aa9e5
1 changed files with 2 additions and 0 deletions
|
@ -2062,6 +2062,8 @@ prompt_package() {
|
||||||
() {
|
() {
|
||||||
local data field
|
local data field
|
||||||
local -A found
|
local -A found
|
||||||
|
# Redneck json parsing. Yields correct results for any well-formed json document.
|
||||||
|
# Produces random garbage for invalid json.
|
||||||
{ data="$(<$file)" || return } 2>/dev/null
|
{ data="$(<$file)" || return } 2>/dev/null
|
||||||
data=${data##[[:space:]]#}
|
data=${data##[[:space:]]#}
|
||||||
[[ $data == '{'* ]] || return
|
[[ $data == '{'* ]] || return
|
||||||
|
|
Loading…
Reference in a new issue