mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-09-29 22:46:06 +02:00
Compare commits
2
Commits
419fc5e9b5
...
0bcac0d11f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0bcac0d11f | ||
|
|
e2be8df511 |
@@ -44,8 +44,7 @@ _shopify_themes() {
|
|||||||
if (( $#fresh )); then
|
if (( $#fresh )); then
|
||||||
themes=("${(@f)$(< "$cache_file")}")
|
themes=("${(@f)$(< "$cache_file")}")
|
||||||
else
|
else
|
||||||
json="$(command shopify theme list --json 2>/dev/null)" || return 1
|
json="$(shopify theme list --json 2>/dev/null)" || return 1
|
||||||
# One chunk per object, in zsh, so there is no dependency on jq.
|
|
||||||
split="${json//\{/$nl}"
|
split="${json//\{/$nl}"
|
||||||
for entry in ${(f)split}; do
|
for entry in ${(f)split}; do
|
||||||
id="" name="" role=""
|
id="" name="" role=""
|
||||||
|
|||||||
@@ -30,8 +30,7 @@ function _shopify_project_type() {
|
|||||||
|
|
||||||
while [[ -n "$dir" && "$dir" != "/" && "$dir" != "$HOME" ]]; do
|
while [[ -n "$dir" && "$dir" != "/" && "$dir" != "$HOME" ]]; do
|
||||||
if [[ -x "$dir/node_modules/.bin/h2" ]] ||
|
if [[ -x "$dir/node_modules/.bin/h2" ]] ||
|
||||||
[[ -f "$dir/package.json" && "$(<"$dir/package.json")" == *'"@shopify/hydrogen"'* ]]; then
|
[[ -r "$dir/package.json" && "$(<"$dir/package.json")" == *'"@shopify/hydrogen"'* ]]; then
|
||||||
print -r -- hydrogen
|
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user