mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
Revert "zinit: More compact and nicer object-type recognition code"
This reverts commit b8515056e7.
This commit is contained in:
parent
928cbbded9
commit
32cd3aa21a
11
zinit.zsh
11
zinit.zsh
|
|
@ -2089,11 +2089,12 @@ env-whitelist|bindkeys|module|add-fpath|fpath|run${reply:+|${(~j:|:)"${reply[@]#
|
|||
|
||||
() {
|
||||
setopt localoptions extendedglob
|
||||
if [[ $__is_snippet -ge 0 &&
|
||||
( -n ${ZINIT_ICE[is-snippet]+1} ||
|
||||
${1#@} = ((#i)(http(s|)|ftp(s|)):/|((OMZ|PZT)::))* )
|
||||
]] {
|
||||
__is_snippet=1
|
||||
[[ $__is_snippet -ge 0 ]] && {
|
||||
[[ -n ${ZINIT_ICE[is-snippet]+1} ||
|
||||
${1#@} = ((#i)(http(s|)|ftp(s|)):/|((OMZ|PZT)::))*
|
||||
]] && \
|
||||
__is_snippet=1 || \
|
||||
__is_snippet=0
|
||||
}
|
||||
} "$@"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue