Skip to content

Commit

Permalink
fix: from'gh-r' skips compile by default
Browse files Browse the repository at this point in the history
Skip compile if from'gh-r' ice is set unless compile is also set.
  • Loading branch information
vladdoster authored Nov 20, 2023
1 parent bcf70e8 commit 53c91ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zinit-install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,14 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || {
.zinit-compute-ice "$id_as" "pack" \
ICE plugin_dir filename is_snippet || return 1

# when from"gh-r" ice set, skip compile unless compile ice is set
if [[ ${ICE[from]} = gh-r ]] && (( ${+ICE[compile]} == 0 )); then
+zi-log '{d} from"gh-r" detected, skipping compile'
return 0
else
+zi-log '{d} from"gh-r" & compile ice detected'
fi

if [[ ${ICE[pick]} != /dev/null && ${ICE[as]} != null && \
${+ICE[null]} -eq 0 && ${ICE[as]} != command && ${+ICE[binary]} -eq 0 && \
( ${+ICE[nocompile]} = 0 || ${ICE[nocompile]} = \! )
Expand Down

0 comments on commit 53c91ca

Please sign in to comment.