Skip to content

Commit

Permalink
feat: new ice build''
Browse files Browse the repository at this point in the history
  • Loading branch information
psprint committed Jan 12, 2023
1 parent 52e112c commit cf0bc93
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions zinit.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fi
ZINIT[ice-list]="\
\!bash|\!csh|\!ksh|\!sh|\
aliases|as|atclone|atdelete|atinit|atload|atpull|autoload|\
bash|binary|bindmap|blockf|bpick|\
bash|binary|bindmap|blockf|bpick|build|\
cloneonly|cloneopts|compile|completions|configure|countdown|cp|csh|\
debug|depth|\
extract|\
Expand All @@ -90,7 +90,7 @@ wait|wrap"
ZINIT[nval-ice-list]="\
\!bash|\!csh|\!ksh|\!sh|\
aliases|\
bash|binary|blockf|\
bash|binary|blockf|build|\
cloneonly|cloneopts|countdown|csh|\
debug|\
git|\
Expand Down Expand Up @@ -2262,6 +2262,13 @@ $match[7]}:-${ZINIT[__last-formatter-code]}}}:+}}}//←→}
[[ ${ZINIT_ICES[as]} = program ]] && ZINIT_ICES[as]=command
[[ -n ${ZINIT_ICES[on-update-of]} ]] && ZINIT_ICES[subscribe]="${ZINIT_ICES[subscribe]:-${ZINIT_ICES[on-update-of]}}"
[[ -n ${ZINIT_ICES[pick]} ]] && ZINIT_ICES[pick]="${ZINIT_ICES[pick]//\$ZPFX/${ZPFX%/}}"
# Build ice given? If yes, then enable configure'' and make'' ices
if (( $+ZINIT_ICES[build] )); then
# Preserve any args for configure ice
ZINIT_ICES[configure]=${ZINIT_ICES[configure]}
# By default, if build'' is empty, then use 'install' target to make
ZINIT_ICES[make]=${ZINIT_ICES[build]:-install}
fi
return retval
} # ]]]

Expand Down

0 comments on commit cf0bc93

Please sign in to comment.