mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
Revert "545 bug bad math expression in zinit plugins on ubuntu 2204wsl2 (#559)"
This reverts commit 58a694ba16.
This commit is contained in:
parent
58a694ba16
commit
2548085356
|
|
@ -842,7 +842,7 @@ ____
|
|||
Has 21 line(s). Calls functions:
|
||||
|
||||
.zinit-list-plugins
|
||||
`-- zinit.zsh/+zi-log
|
||||
`-- zinit.zsh/+zinit-message
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
|
|
|
|||
|
|
@ -232,7 +232,6 @@ Called by:
|
|||
zinit-additional.zsh/.zinit-debug-status
|
||||
zinit-additional.zsh/.zinit-debug-stop
|
||||
zinit-additional.zsh/:zinit-tmp-subst-source
|
||||
zinit-autoload.zsh/.zinit-list-plugins
|
||||
zinit-autoload.zsh/.zinit-unload
|
||||
|
||||
==== +zinit-deploy-message
|
||||
|
|
@ -282,6 +281,7 @@ Called by:
|
|||
zinit-autoload.zsh/.zinit-confirm
|
||||
zinit-autoload.zsh/.zinit-delete
|
||||
zinit-autoload.zsh/.zinit-glance
|
||||
zinit-autoload.zsh/.zinit-list-plugins
|
||||
zinit-autoload.zsh/.zinit-self-update
|
||||
zinit-autoload.zsh/.zinit-show-zstatus
|
||||
zinit-autoload.zsh/.zinit-uninstall-completions
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
@setup {
|
||||
ZBIN="${ZPFX}/bin"
|
||||
}
|
||||
|
||||
@test 'delete --help' {
|
||||
run zinit delete --help
|
||||
assert $output contains 'zinit delete [options] [plugins...]'
|
||||
|
|
@ -36,12 +35,4 @@
|
|||
assert $state equals 0
|
||||
}
|
||||
|
||||
@test 'plugins' {
|
||||
run zinit plugins
|
||||
assert $output contains 'Plugins'
|
||||
assert $output contains 'Unloaded: '
|
||||
assert $output contains 'Loaded: '
|
||||
assert $state equals 0
|
||||
}
|
||||
|
||||
# vim:ft=zsh:sw=2:sts=2:et:foldmarker={,}:foldmethod=marker
|
||||
|
|
|
|||
|
|
@ -1554,20 +1554,20 @@ print -- "\nAvailable ice-modifiers:\n\n${ice_order[*]}"
|
|||
keyword="${keyword## ##}"
|
||||
keyword="${keyword%% ##}"
|
||||
if [[ -n "$keyword" ]]; then
|
||||
+zi-log "{i} Installed plugins matching {info}$keyword{rst}:"
|
||||
+zinit-message "{i} Installed plugins matching {info}$keyword{rst}:"
|
||||
filtered=( "${(M)ZINIT[@]:#STATES__*$keyword*}" )
|
||||
else
|
||||
filtered=(${${(M)${(k)ZINIT[@]}:##STATES__*}//[A-Z]*__/})
|
||||
fi
|
||||
local i
|
||||
+zi-log '{m} {b}Plugins{rst}'
|
||||
+zinit-message '{m} {b}Plugins{rst}'
|
||||
for i in "${(o)filtered[@]}"; do
|
||||
[[ "$i" = "local/zinit" ]] && continue
|
||||
local is_loaded='{error}U'
|
||||
(( ZINIT[STATES__${i}] )) && is_loaded="{happy}L"
|
||||
+zi-log -C2 -- $is_loaded{rst} $i
|
||||
(( "ZINIT[STATES__$i]" )) && is_loaded="{happy}L"
|
||||
+zinit-message -C2 -- $is_loaded{rst} $i
|
||||
done
|
||||
+zi-log -- '{nl}Loaded: {happy}L{rst} | Unloaded: {error}U{rst}'
|
||||
+zinit-message -- '{nl}Loaded: {happy}L{rst} | Unloaded: {error}U{rst}'
|
||||
} # ]]]
|
||||
# FUNCTION: .zinit-list-snippets [[[
|
||||
.zinit-list-snippets() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue