mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
fix: compile-hook
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
parent
e15d34e693
commit
709299544c
|
|
@ -2333,16 +2333,14 @@ __zinit-cmake-base-hook () {
|
|||
else
|
||||
local dir="${4#%}" hook="$5" subtype="$6"
|
||||
fi
|
||||
|
||||
if ! [[ ( $hook = *\!at(clone|pull)* && ${+ICE[nocompile]} -eq 0 ) || ( $hook = at(clone|pull)* && $ICE[nocompile] = '!' ) ]]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [[ -z $ICE[(i)(\!|)(sh|bash|ksh|csh)] ]]; then
|
||||
() {
|
||||
builtin source "${ZINIT[BIN_DIR]}/zinit-autoload.zsh" || return 1
|
||||
builtin emulate -LR zsh ${=${options[xtrace]:#off}:+-o xtrace}
|
||||
setopt extendedglob warncreateglobal
|
||||
# builtin emulate -LR zsh ${=${options[xtrace]:#off}:+-o xtrace}
|
||||
setopt local_options extended_glob warn_create_global
|
||||
local quiet=1
|
||||
if [[ $tpe == snippet ]]; then
|
||||
.zinit-compile-plugin "%$dir"
|
||||
|
|
|
|||
Loading…
Reference in a new issue