mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
fix: change prefix ~zi:: to __zi::
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
parent
75bb73547e
commit
0e45493e36
21
Makefile
21
Makefile
|
|
@ -6,11 +6,13 @@ DOC_SRC := $(foreach wrd,$(SRC),../$(wrd))
|
|||
|
||||
.PHONY: all clean container doc doc/container tags tags/emacs tags/vim test zwc
|
||||
|
||||
all: help
|
||||
|
||||
clean:
|
||||
rm -rvf *.zwc doc/zsdoc/zinit{'','-additional','-autoload','-install','-side'}.zsh.adoc doc/zsdoc/data/
|
||||
|
||||
doc: clean
|
||||
cd doc; zsh -l -d -f -i -c "zsd -v --scomm --cignore '(\#*FUNCTION:[[:space:]][\+\@\-\:\~\-a-zA-Z0-9]*[\[]*|}[[:space:]]\#[[:space:]][\]]*)' $(DOC_SRC); make -C ./zsdoc pdf"
|
||||
doc: clean ## Generate zinit documentation
|
||||
cd doc; zsh -l -d -f -i -c "zsd -v --scomm --cignore '(\#*FUNCTION:[[:space:]][\+\@\-\:\_\_a-zA-Z0-9]*[\[]*|}[[:space:]]\#[[:space:]][\]]*|\#[[:space:]][\]]*)' $(DOC_SRC); make -C ./zsdoc pdf"
|
||||
|
||||
CONTAINER_NAME := zinit
|
||||
CONTAINER_CMD := docker run -i --platform=linux/x86_64 --mount=source=$(CONTAINER_NAME)-volume,destination=/root
|
||||
|
|
@ -24,10 +26,9 @@ container-docs: ## regenerate zinit docs in container
|
|||
container-shell: ## start shell in docker container
|
||||
$(CONTAINER_CMD) $(CONTAINER_NAME):latest
|
||||
|
||||
# Run ctags to generate Emacs and Vim's format tag file.
|
||||
tags: tags/emacs tags/vim
|
||||
tags: tags/emacs tags/vim ## run ctags to generate emacs and vim's format tag file.
|
||||
|
||||
tags/emacs: ## Build Emacs-style ctags file
|
||||
tags/emacs: ## build emacs-style ctags file
|
||||
@if type ctags >/dev/null 2>&1; then \
|
||||
if ctags --version | grep >/dev/null 2>&1 "Universal Ctags"; then \
|
||||
ctags -e -R --options=share/zsh.ctags --languages=zsh \
|
||||
|
|
@ -41,7 +42,7 @@ tags/emacs: ## Build Emacs-style ctags file
|
|||
'version) utility first.\n'; \
|
||||
fi
|
||||
|
||||
tags/vim: ## Build the Vim-style ctags file
|
||||
tags/vim: ## build the vim-style ctags file
|
||||
@if type ctags >/dev/null 2>&1; then \
|
||||
if ctags --version | grep >/dev/null 2>&1 "Universal Ctags"; then \
|
||||
ctags --languages=zsh --maxdepth=1 --options=share/zsh.ctags --pattern-length-limit=250 -R; \
|
||||
|
|
@ -53,10 +54,14 @@ tags/vim: ## Build the Vim-style ctags file
|
|||
printf 'Error: Please install a ctags first.\n'; \
|
||||
fi
|
||||
|
||||
test:
|
||||
test: ## Run zunit tests
|
||||
zunit run
|
||||
|
||||
zwc:
|
||||
zwc: ## compile zsh files via zcompile
|
||||
$(or $(ZSH),:) -fc 'for f in *.zsh; do zcompile -R -- $$f.zwc $$f || exit; done'
|
||||
|
||||
help: ## display available make targets
|
||||
@ # credit: tweekmonster github gist
|
||||
@echo "$$(grep -hE '^[a-zA-Z0-9_-]+:.*##' $(MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/\\033[36m\1\\033[m:\2/' | column -c2 -t -s : | sort)"
|
||||
|
||||
# vim: set fenc=utf8 ffs=unix ft=make list noet sw=4 ts=4 tw=72:
|
||||
|
|
|
|||
|
|
@ -13,6 +13,22 @@ Documentation automatically generated with `zshelldoc'
|
|||
FUNCTIONS
|
||||
---------
|
||||
|
||||
__zi::atclone-hook
|
||||
__zi::atpull-e-hook
|
||||
__zi::atpull-hook
|
||||
__zi::compile-plugin-hook
|
||||
__zi::configure-base-hook
|
||||
__zi::configure-e-hook
|
||||
__zi::configure-hook
|
||||
__zi::cp-hook
|
||||
__zi::extract-hook
|
||||
__zi::make-base-hook
|
||||
__zi::make-e-hook
|
||||
__zi::make-ee-hook
|
||||
__zi::make-hook
|
||||
__zi::mv-hook
|
||||
__zi::ps-on-update-hook
|
||||
__zi::reset-hook
|
||||
zi::at-eval
|
||||
zi::compile-plugin
|
||||
zi::compinit
|
||||
|
|
@ -37,22 +53,6 @@ FUNCTIONS
|
|||
ziextract
|
||||
zimv
|
||||
zpextract
|
||||
~zi::atclone-hook
|
||||
~zi::atpull-e-hook
|
||||
~zi::atpull-hook
|
||||
~zi::compile-plugin-hook
|
||||
~zi::configure-base-hook
|
||||
~zi::configure-e-hook
|
||||
~zi::configure-hook
|
||||
~zi::cp-hook
|
||||
~zi::extract-hook
|
||||
~zi::make-base-hook
|
||||
~zi::make-e-hook
|
||||
~zi::make-ee-hook
|
||||
~zi::make-hook
|
||||
~zi::mv-hook
|
||||
~zi::ps-on-update-hook
|
||||
~zi::reset-hook
|
||||
AUTOLOAD compinit
|
||||
|
||||
DETAILS
|
||||
|
|
@ -65,6 +65,244 @@ Has 6 line(s). No functions are called (may set up e.g. a hook, a Zle widget bou
|
|||
|
||||
Uses feature(s): _source_
|
||||
|
||||
__zi::atclone-hook
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 26 line(s). Calls functions:
|
||||
|
||||
__zi::atclone-hook
|
||||
|-- zinit-side.zsh/zi::countdown
|
||||
`-- zinit.zsh/@zi::substitute
|
||||
|
||||
Uses feature(s): _eval_, _setopt_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
__zi::atpull-e-hook
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 22 line(s). Calls functions:
|
||||
|
||||
__zi::atpull-e-hook
|
||||
|-- zi::at-eval
|
||||
| `-- zinit.zsh/@zi::substitute
|
||||
`-- zinit-side.zsh/zi::countdown
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
__zi::atpull-hook
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 22 line(s). Calls functions:
|
||||
|
||||
__zi::atpull-hook
|
||||
|-- zi::at-eval
|
||||
| `-- zinit.zsh/@zi::substitute
|
||||
`-- zinit-side.zsh/zi::countdown
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
__zi::compile-plugin-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 19 line(s). Calls functions:
|
||||
|
||||
__zi::compile-plugin-hook
|
||||
`-- zi::compile-plugin
|
||||
|-- zinit-side.zsh/zi::compute-ice
|
||||
|-- zinit-side.zsh/zi::first
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
__zi::configure-base-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
A base common implementation of configure'', as all
|
||||
the starting steps are rigid and the same in all
|
||||
hooks, hence the idea. TODO: use in make'' and other
|
||||
places.
|
||||
____
|
||||
|
||||
Has 65 line(s). Calls functions:
|
||||
|
||||
__zi::configure-base-hook
|
||||
|-- zi::configure-run-autoconf
|
||||
| `-- zinit-side.zsh/zi::countdown
|
||||
|-- zinit-side.zsh/zi::countdown
|
||||
`-- zinit.zsh/@zi::substitute
|
||||
|
||||
Called by:
|
||||
|
||||
__zi::configure-e-hook
|
||||
__zi::configure-hook
|
||||
|
||||
_Environment variables used:_ zinit.zsh -> ZPFX
|
||||
|
||||
__zi::configure-e-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
The !-version of configure'' ice. Runs in between
|
||||
of make'!!' and make'!'. Configure naturally runs
|
||||
before make.
|
||||
____
|
||||
|
||||
Has 1 line(s). Calls functions:
|
||||
|
||||
__zi::configure-e-hook
|
||||
`-- __zi::configure-base-hook
|
||||
|-- zi::configure-run-autoconf
|
||||
| `-- zinit-side.zsh/zi::countdown
|
||||
|-- zinit-side.zsh/zi::countdown
|
||||
`-- zinit.zsh/@zi::substitute
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
__zi::configure-hook
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
The non-! version of configure'' ice. Runs in between
|
||||
of make'!' and make''. Configure script naturally runs
|
||||
before make.
|
||||
____
|
||||
|
||||
Has 1 line(s). Calls functions:
|
||||
|
||||
__zi::configure-hook
|
||||
`-- __zi::configure-base-hook
|
||||
|-- zi::configure-run-autoconf
|
||||
| `-- zinit-side.zsh/zi::countdown
|
||||
|-- zinit-side.zsh/zi::countdown
|
||||
`-- zinit.zsh/@zi::substitute
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
__zi::cp-hook
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
Has 30 line(s). Calls functions:
|
||||
|
||||
__zi::cp-hook
|
||||
`-- zinit.zsh/@zi::substitute
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
__zi::extract-hook
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 10 line(s). Calls functions:
|
||||
|
||||
__zi::extract-hook
|
||||
|-- zi::extract
|
||||
| |-- ziextract
|
||||
| | `-- zinit.zsh/+zi::message
|
||||
| `-- zinit.zsh/+zi::message
|
||||
`-- zinit.zsh/@zi::substitute
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
__zi::make-base-hook
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 29 line(s). Calls functions:
|
||||
|
||||
__zi::make-base-hook
|
||||
|-- zinit-side.zsh/zi::countdown
|
||||
`-- zinit.zsh/@zi::substitute
|
||||
|
||||
Called by:
|
||||
|
||||
__zi::make-e-hook
|
||||
__zi::make-ee-hook
|
||||
__zi::make-hook
|
||||
|
||||
__zi::make-e-hook
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 1 line(s). Calls functions:
|
||||
|
||||
__zi::make-e-hook
|
||||
`-- __zi::make-base-hook
|
||||
|-- zinit-side.zsh/zi::countdown
|
||||
`-- zinit.zsh/@zi::substitute
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
__zi::make-ee-hook
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 1 line(s). Calls functions:
|
||||
|
||||
__zi::make-ee-hook
|
||||
`-- __zi::make-base-hook
|
||||
|-- zinit-side.zsh/zi::countdown
|
||||
`-- zinit.zsh/@zi::substitute
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
__zi::make-hook
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
Has 1 line(s). Calls functions:
|
||||
|
||||
__zi::make-hook
|
||||
`-- __zi::make-base-hook
|
||||
|-- zinit-side.zsh/zi::countdown
|
||||
`-- zinit.zsh/@zi::substitute
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
__zi::mv-hook
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
Has 35 line(s). Calls functions:
|
||||
|
||||
__zi::mv-hook
|
||||
|-- zinit.zsh/+zi::message
|
||||
`-- zinit.zsh/@zi::substitute
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
__zi::ps-on-update-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 18 line(s). Calls functions:
|
||||
|
||||
__zi::ps-on-update-hook
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Uses feature(s): _eval_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
__zi::reset-hook
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 79 line(s). Calls functions:
|
||||
|
||||
__zi::reset-hook
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Uses feature(s): _eval_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
zi::at-eval
|
||||
~~~~~~~~~~~
|
||||
|
||||
|
|
@ -77,8 +315,8 @@ Uses feature(s): _eval_
|
|||
|
||||
Called by:
|
||||
|
||||
\~zi::atpull-e-hook
|
||||
\~zi::atpull-hook
|
||||
__zi::atpull-e-hook
|
||||
__zi::atpull-hook
|
||||
|
||||
zi::compile-plugin
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
|
@ -103,7 +341,7 @@ Uses feature(s): _eval_, _setopt_, _zcompile_
|
|||
|
||||
Called by:
|
||||
|
||||
\~zi::compile-plugin-hook
|
||||
__zi::compile-plugin-hook
|
||||
zinit-autoload.zsh/zi::compile-uncompile-all
|
||||
zinit.zsh/zinit
|
||||
|
||||
|
|
@ -153,7 +391,7 @@ Has 64 line(s). Calls functions:
|
|||
|
||||
Called by:
|
||||
|
||||
\~zi::configure-base-hook
|
||||
__zi::configure-base-hook
|
||||
|
||||
zi::download-file-stdout
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
@ -233,7 +471,7 @@ Uses feature(s): _setopt_
|
|||
|
||||
Called by:
|
||||
|
||||
\~zi::extract-hook
|
||||
__zi::extract-hook
|
||||
|
||||
zi::forget-completion
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
@ -619,161 +857,6 @@ Has 1 line(s). Calls functions:
|
|||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::atclone-hook
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 26 line(s). Doesn't call other functions.
|
||||
|
||||
Uses feature(s): _eval_, _setopt_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::atpull-e-hook
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 22 line(s). Doesn't call other functions.
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::atpull-hook
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 22 line(s). Doesn't call other functions.
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::compile-plugin-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
]]]
|
||||
____
|
||||
|
||||
Has 19 line(s). Doesn't call other functions.
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::configure-base-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
A base common implementation of configure'', as all
|
||||
the starting steps are rigid and the same in all
|
||||
hooks, hence the idea. TODO: use in make'' and other
|
||||
places.
|
||||
____
|
||||
|
||||
Has 65 line(s). Doesn't call other functions.
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::configure-e-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
The !-version of configure'' ice. Runs in between
|
||||
of make'!!' and make'!'. Configure naturally runs
|
||||
before make.
|
||||
____
|
||||
|
||||
Has 1 line(s). Doesn't call other functions.
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::configure-hook
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
The non-! version of configure'' ice. Runs in between
|
||||
of make'!' and make''. Configure script naturally runs
|
||||
before make.
|
||||
____
|
||||
|
||||
Has 1 line(s). Doesn't call other functions.
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::cp-hook
|
||||
~~~~~~~~~~~~
|
||||
|
||||
Has 30 line(s). Doesn't call other functions.
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::extract-hook
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 10 line(s). Doesn't call other functions.
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::make-base-hook
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 29 line(s). Doesn't call other functions.
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::make-e-hook
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 1 line(s). Doesn't call other functions.
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::make-ee-hook
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 1 line(s). Doesn't call other functions.
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::make-hook
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
Has 1 line(s). Doesn't call other functions.
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::mv-hook
|
||||
~~~~~~~~~~~~
|
||||
|
||||
Has 35 line(s). Doesn't call other functions.
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::ps-on-update-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 18 line(s). Doesn't call other functions.
|
||||
|
||||
Uses feature(s): _eval_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
~zi::reset-hook
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
Has 79 line(s). Doesn't call other functions.
|
||||
|
||||
Uses feature(s): _eval_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
compinit
|
||||
~~~~~~~~
|
||||
|
||||
|
|
@ -791,7 +874,7 @@ ____
|
|||
`#compdef <names ...>'
|
||||
____
|
||||
|
||||
Has 549 line(s). Doesn't call other functions.
|
||||
Has 573 line(s). Doesn't call other functions.
|
||||
|
||||
Uses feature(s): _autoload_, _bindkey_, _compdef_, _compdump_, _eval_, _read_, _setopt_, _unfunction_, _zle_, _zstyle_
|
||||
|
||||
|
|
|
|||
|
|
@ -153,11 +153,11 @@ Uses feature(s): _trap_
|
|||
Called by:
|
||||
|
||||
zinit-autoload.zsh/zi::run-delete-hooks
|
||||
zinit-install.zsh/\~zi::atclone-hook
|
||||
zinit-install.zsh/\~zi::atpull-e-hook
|
||||
zinit-install.zsh/\~zi::atpull-hook
|
||||
zinit-install.zsh/\~zi::configure-base-hook
|
||||
zinit-install.zsh/\~zi::make-base-hook
|
||||
zinit-install.zsh/__zi::atclone-hook
|
||||
zinit-install.zsh/__zi::atpull-e-hook
|
||||
zinit-install.zsh/__zi::atpull-hook
|
||||
zinit-install.zsh/__zi::configure-base-hook
|
||||
zinit-install.zsh/__zi::make-base-hook
|
||||
zinit-install.zsh/zi::configure-run-autoconf
|
||||
|
||||
zi::exists-physically
|
||||
|
|
|
|||
|
|
@ -266,9 +266,9 @@ Called by:
|
|||
zinit-autoload.zsh/zi::update-or-status-all
|
||||
zinit-autoload.zsh/zi::update-or-status
|
||||
zinit-autoload.zsh/zi::wait-for-update-jobs
|
||||
zinit-install.zsh/\~zi::mv-hook
|
||||
zinit-install.zsh/\~zi::ps-on-update-hook
|
||||
zinit-install.zsh/\~zi::reset-hook
|
||||
zinit-install.zsh/__zi::mv-hook
|
||||
zinit-install.zsh/__zi::ps-on-update-hook
|
||||
zinit-install.zsh/__zi::reset-hook
|
||||
zinit-install.zsh/zi::compile-plugin
|
||||
zinit-install.zsh/zi::compinit
|
||||
zinit-install.zsh/zi::download-file-stdout
|
||||
|
|
@ -478,7 +478,6 @@ Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
|||
|
||||
____
|
||||
|
||||
]]]
|
||||
Registers the z-annex inside Zinit – i.e. an Zinit extension
|
||||
____
|
||||
|
||||
|
|
@ -597,12 +596,12 @@ Uses feature(s): _setopt_
|
|||
Called by:
|
||||
|
||||
zinit-autoload.zsh/zi::at-eval
|
||||
zinit-install.zsh/\~zi::atclone-hook
|
||||
zinit-install.zsh/\~zi::configure-base-hook
|
||||
zinit-install.zsh/\~zi::cp-hook
|
||||
zinit-install.zsh/\~zi::extract-hook
|
||||
zinit-install.zsh/\~zi::make-base-hook
|
||||
zinit-install.zsh/\~zi::mv-hook
|
||||
zinit-install.zsh/__zi::atclone-hook
|
||||
zinit-install.zsh/__zi::configure-base-hook
|
||||
zinit-install.zsh/__zi::cp-hook
|
||||
zinit-install.zsh/__zi::extract-hook
|
||||
zinit-install.zsh/__zi::make-base-hook
|
||||
zinit-install.zsh/__zi::mv-hook
|
||||
zinit-install.zsh/zi::at-eval
|
||||
zinit-install.zsh/zi::get-package
|
||||
|
||||
|
|
@ -1438,7 +1437,6 @@ zi::set-m-func
|
|||
|
||||
____
|
||||
|
||||
]]]
|
||||
Sets and withdraws the temporary, atclone/atpull time function `m`.
|
||||
____
|
||||
|
||||
|
|
@ -1934,7 +1932,7 @@ ____
|
|||
`#compdef <names ...>'
|
||||
____
|
||||
|
||||
Has 549 line(s). Doesn't call other functions.
|
||||
Has 573 line(s). Doesn't call other functions.
|
||||
|
||||
Uses feature(s): _autoload_, _bindkey_, _compdef_, _compdump_, _eval_, _read_, _setopt_, _unfunction_, _zle_, _zstyle_
|
||||
|
||||
|
|
|
|||
|
|
@ -2172,8 +2172,8 @@ ${${${(M)flags:#*\#*}:+$msg}:-$msg_}
|
|||
fi
|
||||
fi
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::reset-hook [[[
|
||||
~zi::reset-hook() {
|
||||
# FUNCTION: __zi::reset-hook [[[
|
||||
__zi::reset-hook() {
|
||||
# File
|
||||
if [[ "$1" = plugin ]] {
|
||||
local type="$1" user="$2" plugin="$3" id_as="$4" dir="${5#%}" hook="$6"
|
||||
|
|
@ -2257,26 +2257,26 @@ ${${${(M)flags:#*\#*}:+$msg}:-$msg_}
|
|||
ZINIT[-r/--reset-opt-hook-has-been-run]=1
|
||||
}
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::configure-e-hook [[[
|
||||
# FUNCTION: __zi::configure-e-hook [[[
|
||||
# The !-version of configure'' ice. Runs in between
|
||||
# of make'!!' and make'!'. Configure naturally runs
|
||||
# before make.
|
||||
~zi::configure-e-hook() {
|
||||
~zi::configure-base-hook "$@" "!"
|
||||
__zi::configure-e-hook() {
|
||||
__zi::configure-base-hook "$@" "!"
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::configure-hook [[[
|
||||
# FUNCTION: __zi::configure-hook [[[
|
||||
# The non-! version of configure'' ice. Runs in between
|
||||
# of make'!' and make''. Configure script naturally runs
|
||||
# before make.
|
||||
~zi::configure-hook() {
|
||||
~zi::configure-base-hook "$@"
|
||||
__zi::configure-hook() {
|
||||
__zi::configure-base-hook "$@"
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::configure-base-hook [[[
|
||||
# FUNCTION: __zi::configure-base-hook [[[
|
||||
# A base common implementation of configure'', as all
|
||||
# the starting steps are rigid and the same in all
|
||||
# hooks, hence the idea. TODO: use in make'' and other
|
||||
# places.
|
||||
~zi::configure-base-hook() {
|
||||
__zi::configure-base-hook() {
|
||||
[[ "$1" = plugin ]] && \
|
||||
local dir="${5#%}" hook="$6" subtype="$7" ex="$8" || \
|
||||
local dir="${4#%}" hook="$5" subtype="$6" ex="$7"
|
||||
|
|
@ -2361,20 +2361,20 @@ for its found {file}meson.build{pre} input file}:-because {flag}m{pre} \
|
|||
)
|
||||
fi
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::make-ee-hook [[[
|
||||
~zi::make-ee-hook() {
|
||||
~zi::make-base-hook "$@" "!!"
|
||||
# FUNCTION: __zi::make-ee-hook [[[
|
||||
__zi::make-ee-hook() {
|
||||
__zi::make-base-hook "$@" "!!"
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::make-e-hook [[[
|
||||
~zi::make-e-hook() {
|
||||
~zi::make-base-hook "$@" "!"
|
||||
# FUNCTION: __zi::make-e-hook [[[
|
||||
__zi::make-e-hook() {
|
||||
__zi::make-base-hook "$@" "!"
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::make-hook [[[
|
||||
~zi::make-hook() {
|
||||
~zi::make-base-hook "$@" ""
|
||||
# FUNCTION: __zi::make-hook [[[
|
||||
__zi::make-hook() {
|
||||
__zi::make-base-hook "$@" ""
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::make-base-hook [[[
|
||||
~zi::make-base-hook() {
|
||||
# FUNCTION: __zi::make-base-hook [[[
|
||||
__zi::make-base-hook() {
|
||||
[[ "$1" = plugin ]] && \
|
||||
local dir="${5#%}" hook="$6" subtype="$7" ex="$8" || \
|
||||
local dir="${4#%}" hook="$5" subtype="$6" ex="$7"
|
||||
|
|
@ -2411,8 +2411,8 @@ for its found {file}meson.build{pre} input file}:-because {flag}m{pre} \
|
|||
build dir found, {cmd}make{error}/{cmd}meson{error} isn\'t run\!
|
||||
fi
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::atclone-hook [[[
|
||||
~zi::atclone-hook() {
|
||||
# FUNCTION: __zi::atclone-hook [[[
|
||||
__zi::atclone-hook() {
|
||||
[[ "$1" = plugin ]] && \
|
||||
local dir="${5#%}" hook="$6" subtype="$7" || \
|
||||
local dir="${4#%}" hook="$5" subtype="$6"
|
||||
|
|
@ -2440,8 +2440,8 @@ for its found {file}meson.build{pre} input file}:-because {flag}m{pre} \
|
|||
|
||||
return "$rc"
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::extract-hook [[[
|
||||
~zi::extract-hook() {
|
||||
# FUNCTION: __zi::extract-hook [[[
|
||||
__zi::extract-hook() {
|
||||
[[ "$1" = plugin ]] && \
|
||||
local dir="${5#%}" hook="$6" subtype="$7" || \
|
||||
local dir="${4#%}" hook="$5" subtype="$6"
|
||||
|
|
@ -2453,8 +2453,8 @@ for its found {file}meson.build{pre} input file}:-because {flag}m{pre} \
|
|||
|
||||
zi::extract plugin "$extract" "$dir"
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::mv-hook [[[
|
||||
~zi::mv-hook() {
|
||||
# FUNCTION: __zi::mv-hook [[[
|
||||
__zi::mv-hook() {
|
||||
[[ -z $ICE[mv] ]] && return 0
|
||||
|
||||
[[ "$1" = plugin ]] && \
|
||||
|
|
@ -2491,8 +2491,8 @@ for its found {file}meson.build{pre} input file}:-because {flag}m{pre} \
|
|||
return $retval
|
||||
)
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::cp-hook [[[
|
||||
~zi::cp-hook() {
|
||||
# FUNCTION: __zi::cp-hook [[[
|
||||
__zi::cp-hook() {
|
||||
[[ -z $ICE[cp] ]] && return
|
||||
|
||||
[[ "$1" = plugin ]] && \
|
||||
|
|
@ -2527,8 +2527,8 @@ for its found {file}meson.build{pre} input file}:-because {flag}m{pre} \
|
|||
)
|
||||
}
|
||||
# ]]]
|
||||
# FUNCTION: ~zi::compile-plugin-hook [[[
|
||||
~zi::compile-plugin-hook() {
|
||||
# FUNCTION: __zi::compile-plugin-hook [[[
|
||||
__zi::compile-plugin-hook() {
|
||||
[[ "$1" = plugin ]] && \
|
||||
local dir="${5#%}" hook="$6" subtype="$7" || \
|
||||
local dir="${4#%}" hook="$5" subtype="$6"
|
||||
|
|
@ -2551,8 +2551,8 @@ for its found {file}meson.build{pre} input file}:-because {flag}m{pre} \
|
|||
}
|
||||
}
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::atpull-e-hook [[[
|
||||
~zi::atpull-e-hook() {
|
||||
# FUNCTION: __zi::atpull-e-hook [[[
|
||||
__zi::atpull-e-hook() {
|
||||
(( ${+ICE[atpull]} )) || return 0
|
||||
[[ -n ${ICE[atpull]} ]] || return 0
|
||||
# Only process atpull"!cmd"
|
||||
|
|
@ -2577,8 +2577,8 @@ for its found {file}meson.build{pre} input file}:-because {flag}m{pre} \
|
|||
|
||||
return "$rc"
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::atpull-hook [[[
|
||||
~zi::atpull-hook() {
|
||||
# FUNCTION: __zi::atpull-hook [[[
|
||||
__zi::atpull-hook() {
|
||||
(( ${+ICE[atpull]} )) || return 0
|
||||
[[ -n ${ICE[atpull]} ]] || return 0
|
||||
# Exit early if atpull"!cmd" -> this is done by zinit-atpull-e-hook
|
||||
|
|
@ -2603,8 +2603,8 @@ for its found {file}meson.build{pre} input file}:-because {flag}m{pre} \
|
|||
|
||||
return "$rc"
|
||||
} # ]]]
|
||||
# FUNCTION: ~zi::ps-on-update-hook [[[
|
||||
~zi::ps-on-update-hook() {
|
||||
# FUNCTION: __zi::ps-on-update-hook [[[
|
||||
__zi::ps-on-update-hook() {
|
||||
[[ -z $ICE[ps-on-update] ]] && return 0
|
||||
|
||||
[[ "$1" = plugin ]] && \
|
||||
|
|
|
|||
52
zinit.zsh
52
zinit.zsh
|
|
@ -3235,41 +3235,41 @@ if [[ -e ${${ZINIT[BIN_DIR]}}/zmodules/Src/zdharma/zplugin.so ]] {
|
|||
} # ]]]
|
||||
|
||||
# !atpull-pre
|
||||
@zi::register-hook "-r/--reset" hook:e-\!atpull-pre ~zi::reset-hook
|
||||
@zi::register-hook "-r/--reset" hook:e-\!atpull-pre __zi::reset-hook
|
||||
# !atpull-post
|
||||
@zi::register-hook "ICE[reset]" hook:e-\!atpull-post ~zi::reset-hook
|
||||
@zi::register-hook "atpull'!'" hook:e-\!atpull-post ~zi::atpull-e-hook
|
||||
@zi::register-hook "ICE[reset]" hook:e-\!atpull-post __zi::reset-hook
|
||||
@zi::register-hook "atpull'!'" hook:e-\!atpull-post __zi::atpull-e-hook
|
||||
|
||||
# e-!atpull-pre.
|
||||
@zi::register-hook "make'!!'" hook:no-e-\!atpull-pre ~zi::make-ee-hook
|
||||
@zi::register-hook "extract" hook:e-\!atpull-pre ~zi::extract-hook
|
||||
@zi::register-hook "mv''" hook:no-e-\!atpull-pre ~zi::mv-hook
|
||||
@zi::register-hook "cp''" hook:no-e-\!atpull-pre ~zi::cp-hook
|
||||
@zi::register-hook "compile-plugin" hook:no-e-\!atpull-pre ~zi::compile-plugin-hook
|
||||
@zi::register-hook "make'!!'" hook:no-e-\!atpull-pre __zi::make-ee-hook
|
||||
@zi::register-hook "extract" hook:e-\!atpull-pre __zi::extract-hook
|
||||
@zi::register-hook "mv''" hook:no-e-\!atpull-pre __zi::mv-hook
|
||||
@zi::register-hook "cp''" hook:no-e-\!atpull-pre __zi::cp-hook
|
||||
@zi::register-hook "compile-plugin" hook:no-e-\!atpull-pre __zi::compile-plugin-hook
|
||||
# no-e-!atpull-post.
|
||||
@zi::register-hook "configure'!'" hook:no-e-\!atpull-post ~zi::configure-e-hook
|
||||
@zi::register-hook "make'!'" hook:no-e-\!atpull-post ~zi::make-e-hook
|
||||
@zi::register-hook "configure''" hook:no-e-\!atpull-post ~zi::configure-hook
|
||||
@zi::register-hook "atpull" hook:no-e-\!atpull-post ~zi::atpull-hook
|
||||
@zi::register-hook "make''" hook:no-e-\!atpull-post ~zi::make-hook
|
||||
@zi::register-hook "configure'!'" hook:no-e-\!atpull-post __zi::configure-e-hook
|
||||
@zi::register-hook "make'!'" hook:no-e-\!atpull-post __zi::make-e-hook
|
||||
@zi::register-hook "configure''" hook:no-e-\!atpull-post __zi::configure-hook
|
||||
@zi::register-hook "atpull" hook:no-e-\!atpull-post __zi::atpull-hook
|
||||
@zi::register-hook "make''" hook:no-e-\!atpull-post __zi::make-hook
|
||||
# atpull-post.
|
||||
@zi::register-hook "compile-plugin" hook:atpull-post ~zi::compile-plugin-hook
|
||||
@zi::register-hook "ps-on-update" hook:%atpull-post ~zi::ps-on-update-hook
|
||||
@zi::register-hook "compile-plugin" hook:atpull-post __zi::compile-plugin-hook
|
||||
@zi::register-hook "ps-on-update" hook:%atpull-post __zi::ps-on-update-hook
|
||||
|
||||
# !atclone-pre.
|
||||
@zi::register-hook "make'!!'" hook:\!atclone-pre ~zi::make-ee-hook
|
||||
@zi::register-hook "extract" hook:\!atclone-pre ~zi::extract-hook
|
||||
@zi::register-hook "mv''" hook:\!atclone-pre ~zi::mv-hook
|
||||
@zi::register-hook "cp''" hook:\!atclone-pre ~zi::cp-hook
|
||||
@zi::register-hook "compile-plugin" hook:\!atclone-pre ~zi::compile-plugin-hook
|
||||
@zi::register-hook "make'!!'" hook:\!atclone-pre __zi::make-ee-hook
|
||||
@zi::register-hook "extract" hook:\!atclone-pre __zi::extract-hook
|
||||
@zi::register-hook "mv''" hook:\!atclone-pre __zi::mv-hook
|
||||
@zi::register-hook "cp''" hook:\!atclone-pre __zi::cp-hook
|
||||
@zi::register-hook "compile-plugin" hook:\!atclone-pre __zi::compile-plugin-hook
|
||||
# !atclone-post.
|
||||
@zi::register-hook "configure'!'" hook:\!atclone-post ~zi::configure-e-hook
|
||||
@zi::register-hook "make'!'" hook:\!atclone-post ~zi::make-e-hook
|
||||
@zi::register-hook "configure''" hook:\!atclone-post ~zi::configure-hook
|
||||
@zi::register-hook "atclone" hook:\!atclone-post ~zi::atclone-hook
|
||||
@zi::register-hook "make''" hook:\!atclone-post ~zi::make-hook
|
||||
@zi::register-hook "configure'!'" hook:\!atclone-post __zi::configure-e-hook
|
||||
@zi::register-hook "make'!'" hook:\!atclone-post __zi::make-e-hook
|
||||
@zi::register-hook "configure''" hook:\!atclone-post __zi::configure-hook
|
||||
@zi::register-hook "atclone" hook:\!atclone-post __zi::atclone-hook
|
||||
@zi::register-hook "make''" hook:\!atclone-post __zi::make-hook
|
||||
# atclone-post.
|
||||
@zi::register-hook "compile-plugin" hook:atclone-post ~zi::compile-plugin-hook
|
||||
@zi::register-hook "compile-plugin" hook:atclone-post __zi::compile-plugin-hook
|
||||
|
||||
# create so that for sure no warncreateglobal warning is issued
|
||||
typeset -g REPLY
|
||||
|
|
|
|||
Loading…
Reference in a new issue