mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
install: Alternate syntax
This commit is contained in:
parent
9db192db79
commit
0a7d9d1465
|
|
@ -1423,12 +1423,12 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || { builtin print -P "${ZINIT
|
|||
}
|
||||
}
|
||||
|
||||
.zinit-get-object-path snippet "$id_as" || \
|
||||
{ builtin print -P "$ZINIT[col-msg2]Error: the snippet" \
|
||||
if { ! .zinit-get-object-path snippet "$id_as" } {
|
||||
builtin print -P "$ZINIT[col-msg2]Error: the snippet" \
|
||||
"\`$ZINIT[col-obj]$id_as$ZINIT[col-msg2]'" \
|
||||
"doesn't exist, aborting the update.%f%b"
|
||||
return 1
|
||||
}
|
||||
return 1
|
||||
}
|
||||
filename=$reply[-2] dirname=$reply[-2] local_dir=$reply[-3]
|
||||
|
||||
local -a arr
|
||||
|
|
|
|||
Loading…
Reference in a new issue