Skip to content

Commit

Permalink
fix: zip archive logic in ziextract
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <[email protected]>
  • Loading branch information
vladdoster committed Dec 20, 2023
1 parent 30bb98f commit 4ec01e4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 74 deletions.
58 changes: 0 additions & 58 deletions tests/ices.zunit

This file was deleted.

1 change: 0 additions & 1 deletion tests/plugins.zunit
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

@setup {
HOME="$zi_test_dir"
# ZBIN="$zi_dir/polaris/bin"
typeset -gx ZBIN="$zi_test_dir/polaris/bin"
}

Expand Down
2 changes: 1 addition & 1 deletion zinit-autoload.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3088,7 +3088,7 @@ print -- "\nAvailable ice-modifiers:\n\n${ice_order[*]}"
.zinit-pager &

integer pager_pid=$!
{ sleep 20 && kill -9 $pager_pid 2>/dev/null 1>&2; } &!
{ sleep 1 && kill -9 $pager_pid 2>/dev/null 1>&2; } &!
{ wait $pager_pid; } > /dev/null 2>&1

local -a log
Expand Down
19 changes: 5 additions & 14 deletions zinit.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -2966,7 +2966,7 @@ You can try to prepend {apo}${___q}{lhi}@{apo}'{error} to the ID if the last ice
.zinit-parse-opts update "$@"
builtin set -- "${reply[@]}"
if [[ ${OPTS[opt_-a,--all]} -eq 1 || ${OPTS[opt_-p,--parallel]} -eq 1 || ${OPTS[opt_-s,--snippets]} -eq 1 || ${OPTS[opt_-l,--plugins]} -eq 1 || -z $1$2${ICE[teleid]}${ICE[id-as]} ]]; then
[[ -z $1$2 && $(( OPTS[opt_-a,--all] + OPTS[opt_-p,--parallel] + OPTS[opt_-s,--snippets] + OPTS[opt_-l,--plugins] )) -eq 0 ]] && { builtin print -r -- "Assuming --all is passed"; sleep 3; }
[[ -z $1$2 && $(( OPTS[opt_-a,--all] + OPTS[opt_-p,--parallel] + OPTS[opt_-s,--snippets] + OPTS[opt_-l,--plugins] )) -eq 0 ]] && { builtin print -r -- "Assuming --all is passed"; }
(( OPTS[opt_-p,--parallel] )) && OPTS[value]=${1:-15}
.zinit-update-or-status-all update; ___retval=$?
else
Expand All @@ -2977,15 +2977,15 @@ You can try to prepend {apo}${___q}{lhi}@{apo}'{error} to the ID if the last ice
;;
(status)
if [[ $2 = --all || ( -z $2 && -z $3 ) ]]; then
[[ -z $2 ]] && { builtin print -r -- "Assuming --all is passed"; sleep 3; }
[[ -z $2 ]] && { builtin print -r -- "Assuming --all is passed"; }
.zinit-update-or-status-all status; ___retval=$?
else
.zinit-update-or-status status "${2%%(///|//|/)}" "${3%%(///|//|/)}"; ___retval=$?
fi
;;
(report)
if [[ $2 = --all || ( -z $2 && -z $3 ) ]]; then
[[ -z $2 ]] && { builtin print -r -- "Assuming --all is passed"; sleep 4; }
[[ -z $2 ]] && { builtin print -r -- "Assuming --all is passed"; }
.zinit-show-all-reports
else
.zinit-show-report "${2%%(///|//|/)}" "${3%%(///|//|/)}"; ___retval=$?
Expand Down Expand Up @@ -3070,7 +3070,7 @@ You can try to prepend {apo}${___q}{lhi}@{apo}'{error} to the ID if the last ice
(compile)
(( ${+functions[.zinit-compile-plugin]} )) || builtin source "${ZINIT[BIN_DIR]}/zinit-install.zsh" || return 1
if [[ $2 = --all || ( -z $2 && -z $3 ) ]]; then
[[ -z $2 ]] && { builtin print -r -- "Assuming --all is passed"; sleep 3; }
[[ -z $2 ]] && { builtin print -r -- "Assuming --all is passed"; }
.zinit-compile-uncompile-all 1; ___retval=$?
else
.zinit-compile-plugin "${2%%(///|//|/)}" "${3%%(///|//|/)}"; ___retval=$?
Expand All @@ -3083,7 +3083,7 @@ You can try to prepend {apo}${___q}{lhi}@{apo}'{error} to the ID if the last ice
;;
(uncompile)
if [[ $2 = --all || ( -z $2 && -z $3 ) ]]; then
[[ -z $2 ]] && { builtin print -r -- "Assuming --all is passed"; sleep 3; }
[[ -z $2 ]] && { builtin print -r -- "Assuming --all is passed"; }
.zinit-compile-uncompile-all 0; ___retval=$?
else
.zinit-uncompile-plugin "${2%%(///|//|/)}" "${3%%(///|//|/)}"; ___retval=$?
Expand Down Expand Up @@ -3313,15 +3313,6 @@ if [[ -e ${${ZINIT[BIN_DIR]}}/zmodules/Src/zdharma/zplugin.so ]] {
# create so that for sure no warncreateglobal warning is issued
typeset -g REPLY

# a searchable menu of tags for current directory
zinit null light-mode autoload'zi-browse-symbol' for %$ZINIT[BIN_DIR]
zle -N zi-browse-symbol
zle -N zi-browse-symbol-backwards zi-browse-symbol
zle -N zi-browse-symbol-pbackwards zi-browse-symbol
zle -N zi-browse-symbol-pforwards zi-browse-symbol
zstyle -s ':zinit:browse-symbol' key ZINIT_TMP || ZINIT_TMP='\eQ'
[[ -n $ZINIT_TMP ]] && bindkey $ZINIT_TMP zi-browse-symbol

# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
Expand Down

0 comments on commit 4ec01e4

Please sign in to comment.