mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
refactor: rename zinit functions
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
parent
59975d70d7
commit
c28580c3fc
|
|
@ -1,10 +1 @@
|
|||
.git/
|
||||
.github/
|
||||
.git*
|
||||
doc/
|
||||
scripts/
|
||||
test/
|
||||
tests/
|
||||
|
||||
*.zwc
|
||||
Makefile
|
||||
|
|
|
|||
10
.github/workflows/documentation.yaml
vendored
10
.github/workflows/documentation.yaml
vendored
|
|
@ -15,14 +15,14 @@ jobs:
|
|||
zshelldoc:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: re-generate documentation
|
||||
run: |
|
||||
make doc/container
|
||||
sudo chown -R "$(id -u):$(id -g)" .
|
||||
- name: build docker image
|
||||
run: make container-build
|
||||
|
||||
- name: generate documentation
|
||||
run: make container-docs
|
||||
|
||||
- name: check for out-of-date documentation
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ ### Bug Fixes
|
|||
* change ctags symbols browser key binding from `ctrl-k` to `alt-Q` ([#387](https://github.com/zdharma-continuum/zinit/issues/387)) ([7f6dc7d](https://github.com/zdharma-continuum/zinit/commit/7f6dc7da6c824b30c0e8e30ae0ecbda5be118e68)), closes [#386](https://github.com/zdharma-continuum/zinit/issues/386)
|
||||
* Do not try to escape exclamation marks ([#399](https://github.com/zdharma-continuum/zinit/issues/399)) ([0e55b2e](https://github.com/zdharma-continuum/zinit/commit/0e55b2ea673915c462af752ee7d46fff55e6f436))
|
||||
* docs workflow should fail if out-of-date ([#278](https://github.com/zdharma-continuum/zinit/issues/278)) ([07cde66](https://github.com/zdharma-continuum/zinit/commit/07cde660081c91382ce73b60485839710154c7c6))
|
||||
* Don't error if $OPTS is not yet defined in .zinit-compinit call ([44765e0](https://github.com/zdharma-continuum/zinit/commit/44765e0bcb8d3f1ee3eb55286e33ad17b8c72a5e))
|
||||
* Don't error if $OPTS is not yet defined in zi::compinit call ([44765e0](https://github.com/zdharma-continuum/zinit/commit/44765e0bcb8d3f1ee3eb55286e33ad17b8c72a5e))
|
||||
* filter by runtime detected CPU before compiled CPU ([#304](https://github.com/zdharma-continuum/zinit/issues/304)) ([a4dc13f](https://github.com/zdharma-continuum/zinit/commit/a4dc13f66a65c4fa52953104c13e44a7d7c0a945)), closes [#287](https://github.com/zdharma-continuum/zinit/issues/287)
|
||||
* gh-r & plugin zunit tests ([dd12fce](https://github.com/zdharma-continuum/zinit/commit/dd12fce3f49db284de7cf18a03ef891cc46bc7cc))
|
||||
* gh-r filters i686 (32 bit) for x86_64 ([#226](https://github.com/zdharma-continuum/zinit/issues/226)) ([57f0d82](https://github.com/zdharma-continuum/zinit/commit/57f0d82118ed626f04d4b9b8b26de48c9d7e0956)), closes [#225](https://github.com/zdharma-continuum/zinit/issues/225)
|
||||
|
|
|
|||
23
Dockerfile
Normal file
23
Dockerfile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# syntax=docker/dockerfile-upstream:master
|
||||
|
||||
ARG TARGETPLATFORM=linux/amd64
|
||||
FROM --platform=$TARGETPLATFORM asciidoctor/docker-asciidoctor:latest
|
||||
|
||||
ENV USER root
|
||||
ENV ZINIT_HOME /${USER}/zinit.git
|
||||
|
||||
RUN apk add \
|
||||
asciidoc-doc \
|
||||
make \
|
||||
less \
|
||||
tree \
|
||||
zsh
|
||||
|
||||
WORKDIR /${USER}
|
||||
|
||||
COPY . ./zinit.git
|
||||
COPY ./docker/zshrc .zshrc
|
||||
|
||||
RUN zsh --interactive --login -c -- '@zi::scheduler burst'
|
||||
|
||||
CMD ["zsh","--interactive","--login"]
|
||||
20
Makefile
20
Makefile
|
|
@ -1,7 +1,7 @@
|
|||
.EXPORT_ALL_VARIABLES:
|
||||
|
||||
ZSH := $(shell command -v zsh 2> /dev/null)
|
||||
SRC := zinit{'','-additional','-autoload','-install','-side'}.zsh
|
||||
SRC := share/{'git-process-output','rpm2cpio'}.zsh zinit{'','-additional','-autoload','-install','-side'}.zsh
|
||||
DOC_SRC := $(foreach wrd,$(SRC),../$(wrd))
|
||||
|
||||
.PHONY: all clean container doc doc/container tags tags/emacs tags/vim test zwc
|
||||
|
|
@ -9,14 +9,20 @@ DOC_SRC := $(foreach wrd,$(SRC),../$(wrd))
|
|||
clean:
|
||||
rm -rvf *.zwc doc/zsdoc/zinit{'','-additional','-autoload','-install','-side'}.zsh.adoc doc/zsdoc/data/
|
||||
|
||||
container:
|
||||
docker build --tag=ghcr.io/zdharma-continuum/zinit:latest --file=docker/Dockerfile .
|
||||
|
||||
doc: clean
|
||||
cd doc; zsh -l -d -f -i -c "zsd -v --scomm --cignore '(\#*FUNCTION:[[:space:]][\:\∞\.\+\@\-a-zA-Z0-9]*[\[]*|}[[:space:]]\#[[:space:]][\]]*)' $(DOC_SRC)"
|
||||
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/container: container
|
||||
./scripts/docker-run.sh --docs --debug
|
||||
CONTAINER_NAME := zinit
|
||||
CONTAINER_CMD := docker run -it --platform=linux/x86_64 --mount=source=$(CONTAINER_NAME)-volume,destination=/root
|
||||
|
||||
container-build: ## build docker image
|
||||
docker build --file=Dockerfile --platform=linux/x86_64 --tag=$(CONTAINER_NAME):latest .
|
||||
|
||||
container-docs: ## regenerate zinit docs in container
|
||||
$(CONTAINER_CMD) $(CONTAINER_NAME):latest make --directory zinit.git/ doc
|
||||
|
||||
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
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ # Changelog
|
|||
- 06-11-2021
|
||||
|
||||
- 🚧 zinit has a new home: https://github.com/zdharma-continuum/zinit
|
||||
- The migration from @zdharma, @Zsh-Packages and @zinit-zsh is still in progress. If you are interested in helping
|
||||
- The migration from @zdharma, @Zsh-Packages and @zi::zsh is still in progress. If you are interested in helping
|
||||
or want to let us know that a particular project is missing, please head to
|
||||
[I_WANT_TO_HELP](https://github.com/zdharma-continuum/I_WANT_TO_HELP/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)
|
||||
- 📚 zinit now ensures that the man dirs under `$ZPFX/man` are created on startup. Please note that these directories
|
||||
|
|
|
|||
|
|
@ -1,57 +1,59 @@
|
|||
# This Makefile is to convert supplied Asciidoc files into
|
||||
# other formats like pdf and man. The files contain Zplugin's
|
||||
# code documentation.
|
||||
#
|
||||
# *.adoc files are generated by Makefile from upper (i.e. top)
|
||||
# directory.
|
||||
# *.adoc files are generated by Makefile from upper (i.e. top) directory.
|
||||
|
||||
all: man pdf
|
||||
SRC := $(shell zsh -c "echo {'git-process-output','rpm2cpio'}.zsh zinit{'','-additional','-autoload','-install','-side'}.zsh")
|
||||
|
||||
# MANUALS
|
||||
# Converted with a2x from asciidoc package
|
||||
PDF_SRC := $(foreach wrd,$(SRC),$(wrd).pdf)
|
||||
PDF_CMD := asciidoctor -a reproducible -b pdf -r asciidoctor-pdf -D pdf
|
||||
|
||||
man: man/zinit.zsh.1 man/zinit-side.zsh.1 man/zinit-install.zsh.1 man/zinit-autoload.zsh.1
|
||||
MAN_SRC := $(foreach wrd,$(SRC),man/$(wrd))
|
||||
MAN_CMD := a2x --verbose -L --doctype manpage --format manpage -D man
|
||||
|
||||
man/zinit.zsh.1:
|
||||
@mkdir -p man
|
||||
a2x --verbose -L --doctype manpage --format manpage -D man zinit.zsh.adoc
|
||||
.PHONY: all clean test man pdf
|
||||
|
||||
man/zinit-side.zsh.1:
|
||||
@mkdir -p man
|
||||
a2x --verbose -L --doctype manpage --format manpage -D man zinit-side.zsh.adoc
|
||||
all: clean man pdf
|
||||
dirs:
|
||||
mkdir -p man pdf
|
||||
|
||||
man/zinit-install.zsh.1:
|
||||
@mkdir -p man
|
||||
a2x --verbose -L --doctype manpage --format manpage -D man zinit-install.zsh.adoc
|
||||
|
||||
man/zinit-autoload.zsh.1:
|
||||
@mkdir -p man
|
||||
a2x --verbose -L --doctype manpage --format manpage -D man zinit-autoload.zsh.adoc
|
||||
# Manual pages
|
||||
# uses a2x from asciidoc package
|
||||
man: dirs $(MAN_SRC)
|
||||
man/git-process-output.zsh:
|
||||
$(MAN_CMD) git-process-output.zsh.adoc
|
||||
man/rpm2cpio.zsh:
|
||||
$(MAN_CMD) rpm2cpio.zsh.adoc
|
||||
man/zinit-additional.zsh:
|
||||
$(MAN_CMD) zinit-additional.zsh.adoc
|
||||
man/zinit-autoload.zsh:
|
||||
$(MAN_CMD) zinit-autoload.zsh.adoc
|
||||
man/zinit-install.zsh:
|
||||
$(MAN_CMD) zinit-install.zsh.adoc
|
||||
man/zinit-side.zsh:
|
||||
$(MAN_CMD) zinit-side.zsh.adoc
|
||||
man/zinit.zsh:
|
||||
$(MAN_CMD) zinit.zsh.adoc
|
||||
|
||||
# PDFS
|
||||
# Uses asciidoctor not a2x (i.e. not asciidoc)
|
||||
|
||||
pdf: pdf/zinit.zsh.pdf pdf/zinit-side.zsh.pdf pdf/zinit-install.zsh.pdf pdf/zinit-autoload.zsh.pdf
|
||||
|
||||
pdf/zinit.zsh.pdf:
|
||||
@mkdir -p pdf
|
||||
asciidoctor -a reproducible -b pdf -r asciidoctor-pdf -D pdf zinit.zsh.adoc
|
||||
|
||||
pdf/zinit-side.zsh.pdf:
|
||||
@mkdir -p pdf
|
||||
asciidoctor -a reproducible -b pdf -r asciidoctor-pdf -D pdf zinit-side.zsh.adoc
|
||||
|
||||
pdf/zinit-install.zsh.pdf:
|
||||
@mkdir -p pdf
|
||||
asciidoctor -a reproducible -b pdf -r asciidoctor-pdf -D pdf zinit-install.zsh.adoc
|
||||
|
||||
pdf/zinit-autoload.zsh.pdf:
|
||||
@mkdir -p pdf
|
||||
asciidoctor -a reproducible -b pdf -r asciidoctor-pdf -D pdf zinit-autoload.zsh.adoc
|
||||
# uses asciidoctor not a2x (i.e. not asciidoc)
|
||||
pdf: dirs $(PDF_SRC)
|
||||
git-process-output.zsh.pdf:
|
||||
$(PDF_CMD) git-process-output.zsh.adoc
|
||||
rpm2cpio.zsh.pdf:
|
||||
$(PDF_CMD) rpm2cpio.zsh.adoc
|
||||
zinit-additional.zsh.pdf:
|
||||
$(PDF_CMD) zinit-additional.zsh.adoc
|
||||
zinit-autoload.zsh.pdf:
|
||||
$(PDF_CMD) zinit-autoload.zsh.adoc
|
||||
zinit-install.zsh.pdf:
|
||||
$(PDF_CMD) zinit-install.zsh.adoc
|
||||
zinit-side.zsh.pdf:
|
||||
$(PDF_CMD) zinit-side.zsh.adoc
|
||||
zinit.zsh.pdf:
|
||||
$(PDF_CMD) zinit.zsh.adoc
|
||||
|
||||
clean:
|
||||
rm -rf man pdf data
|
||||
|
||||
.PHONY: man pdf clean
|
||||
|
||||
# vim:noet:sts=8:ts=8
|
||||
# vim:ft=make:noet:sts=4:ts=4
|
||||
|
|
|
|||
75
doc/zsdoc/git-process-output.zsh.adoc
Normal file
75
doc/zsdoc/git-process-output.zsh.adoc
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
git-process-output.zsh(1)
|
||||
=========================
|
||||
:compat-mode!:
|
||||
|
||||
NAME
|
||||
----
|
||||
git-process-output.zsh - a shell script
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
Documentation automatically generated with `zshelldoc'
|
||||
|
||||
FUNCTIONS
|
||||
---------
|
||||
|
||||
print_my_line
|
||||
print_my_line_compress
|
||||
timeline
|
||||
|
||||
DETAILS
|
||||
-------
|
||||
|
||||
Script Body
|
||||
~~~~~~~~~~~
|
||||
|
||||
Has 113 line(s). Calls functions:
|
||||
|
||||
Script-Body
|
||||
|-- print_my_line
|
||||
|-- print_my_line_compress
|
||||
`-- timeline
|
||||
|
||||
Uses feature(s): _eval_, _read_, _setopt_, _trap_
|
||||
|
||||
print_my_line
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
$1 - n. of objects
|
||||
$2 - packed objects
|
||||
$3 - total objects
|
||||
$4 - receiving percentage
|
||||
$5 - resolving percentage
|
||||
____
|
||||
|
||||
Has 13 line(s). Doesn't call other functions.
|
||||
|
||||
Called by:
|
||||
|
||||
Script-Body
|
||||
|
||||
print_my_line_compress
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 12 line(s). Doesn't call other functions.
|
||||
|
||||
Called by:
|
||||
|
||||
Script-Body
|
||||
|
||||
timeline
|
||||
~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
Code by leoj3n
|
||||
____
|
||||
|
||||
Has 15 line(s). Doesn't call other functions.
|
||||
|
||||
Called by:
|
||||
|
||||
Script-Body
|
||||
|
||||
1349
doc/zsdoc/pdf/git-process-output.zsh.pdf
Normal file
1349
doc/zsdoc/pdf/git-process-output.zsh.pdf
Normal file
File diff suppressed because it is too large
Load diff
BIN
doc/zsdoc/pdf/rpm2cpio.zsh.pdf
Normal file
BIN
doc/zsdoc/pdf/rpm2cpio.zsh.pdf
Normal file
Binary file not shown.
2164
doc/zsdoc/pdf/zinit-additional.zsh.pdf
Normal file
2164
doc/zsdoc/pdf/zinit-additional.zsh.pdf
Normal file
File diff suppressed because it is too large
Load diff
21251
doc/zsdoc/pdf/zinit-autoload.zsh.pdf
Normal file
21251
doc/zsdoc/pdf/zinit-autoload.zsh.pdf
Normal file
File diff suppressed because it is too large
Load diff
10643
doc/zsdoc/pdf/zinit-install.zsh.pdf
Normal file
10643
doc/zsdoc/pdf/zinit-install.zsh.pdf
Normal file
File diff suppressed because it is too large
Load diff
4317
doc/zsdoc/pdf/zinit-side.zsh.pdf
Normal file
4317
doc/zsdoc/pdf/zinit-side.zsh.pdf
Normal file
File diff suppressed because it is too large
Load diff
26010
doc/zsdoc/pdf/zinit.zsh.pdf
Normal file
26010
doc/zsdoc/pdf/zinit.zsh.pdf
Normal file
File diff suppressed because it is too large
Load diff
24
doc/zsdoc/rpm2cpio.zsh.adoc
Normal file
24
doc/zsdoc/rpm2cpio.zsh.adoc
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
rpm2cpio.zsh(1)
|
||||
===============
|
||||
:compat-mode!:
|
||||
|
||||
NAME
|
||||
----
|
||||
rpm2cpio.zsh - a shell script
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
Documentation automatically generated with `zshelldoc'
|
||||
|
||||
FUNCTIONS
|
||||
---------
|
||||
|
||||
|
||||
DETAILS
|
||||
-------
|
||||
|
||||
Script Body
|
||||
~~~~~~~~~~~
|
||||
|
||||
Has 51 line(s). No functions are called (may set up e.g. a hook, a Zle widget bound to a key, etc.).
|
||||
|
||||
|
|
@ -13,13 +13,13 @@ Documentation automatically generated with `zshelldoc'
|
|||
FUNCTIONS
|
||||
---------
|
||||
|
||||
.zinit-clear-debug-report
|
||||
.zinit-debug-start
|
||||
.zinit-debug-stop
|
||||
.zinit-debug-unload
|
||||
.zinit-service
|
||||
.zinit-wrap-track-functions
|
||||
:zinit-tmp-subst-source
|
||||
:zi::tmp-subst-source
|
||||
zi::clear-debug-report
|
||||
zi::debug-start
|
||||
zi::debug-stop
|
||||
zi::debug-unload
|
||||
zi::service
|
||||
zi::wrap-track-functions
|
||||
|
||||
DETAILS
|
||||
-------
|
||||
|
|
@ -29,8 +29,20 @@ Script Body
|
|||
|
||||
Has 1 line(s). No functions are called (may set up e.g. a hook, a Zle widget bound to a key, etc.).
|
||||
|
||||
.zinit-clear-debug-report
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
:zi::tmp-subst-source
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 25 line(s). Calls functions:
|
||||
|
||||
:zi::tmp-subst-source
|
||||
`-- 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::clear-debug-report
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -39,16 +51,16 @@ ____
|
|||
|
||||
Has 1 line(s). Calls functions:
|
||||
|
||||
.zinit-clear-debug-report
|
||||
`-- zinit-autoload.zsh/.zinit-clear-report-for
|
||||
zi::clear-debug-report
|
||||
`-- zinit-autoload.zsh/zi::clear-report-for
|
||||
|
||||
Called by:
|
||||
|
||||
zinit-autoload.zsh/.zinit-unload
|
||||
zinit-autoload.zsh/zi::unload
|
||||
zinit.zsh/zinit
|
||||
|
||||
.zinit-debug-start
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
zi::debug-start
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -57,17 +69,17 @@ ____
|
|||
|
||||
Has 9 line(s). Calls functions:
|
||||
|
||||
.zinit-debug-start
|
||||
|-- zinit.zsh/+zinit-message
|
||||
|-- zinit.zsh/.zinit-diff
|
||||
`-- zinit.zsh/.zinit-tmp-subst-on
|
||||
zi::debug-start
|
||||
|-- zinit.zsh/+zi::message
|
||||
|-- zinit.zsh/zi::diff
|
||||
`-- zinit.zsh/zi::tmp-subst-on
|
||||
|
||||
Called by:
|
||||
|
||||
zinit.zsh/zinit
|
||||
|
||||
.zinit-debug-stop
|
||||
~~~~~~~~~~~~~~~~~
|
||||
zi::debug-stop
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -76,16 +88,16 @@ ____
|
|||
|
||||
Has 3 line(s). Calls functions:
|
||||
|
||||
.zinit-debug-stop
|
||||
|-- zinit.zsh/.zinit-diff
|
||||
`-- zinit.zsh/.zinit-tmp-subst-off
|
||||
zi::debug-stop
|
||||
|-- zinit.zsh/zi::diff
|
||||
`-- zinit.zsh/zi::tmp-subst-off
|
||||
|
||||
Called by:
|
||||
|
||||
zinit.zsh/zinit
|
||||
|
||||
.zinit-debug-unload
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
zi::debug-unload
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -94,9 +106,9 @@ ____
|
|||
|
||||
Has 6 line(s). Calls functions:
|
||||
|
||||
.zinit-debug-unload
|
||||
|-- zinit-autoload.zsh/.zinit-unload
|
||||
`-- zinit.zsh/+zinit-message
|
||||
zi::debug-unload
|
||||
|-- zinit-autoload.zsh/zi::unload
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Uses feature(s): _source_
|
||||
|
||||
|
|
@ -104,8 +116,8 @@ Called by:
|
|||
|
||||
zinit.zsh/zinit
|
||||
|
||||
.zinit-service
|
||||
~~~~~~~~~~~~~~
|
||||
zi::service
|
||||
~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -118,16 +130,16 @@ ____
|
|||
|
||||
Has 37 line(s). Calls functions:
|
||||
|
||||
.zinit-service
|
||||
|-- zinit.zsh/.zinit-load
|
||||
`-- zinit.zsh/.zinit-load-snippet
|
||||
zi::service
|
||||
|-- zinit.zsh/zi::load
|
||||
`-- zinit.zsh/zi::load-snippet
|
||||
|
||||
Uses feature(s): _kill_, _read_, _setopt_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
.zinit-wrap-track-functions
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::wrap-track-functions
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 19 line(s). Doesn't call other functions.
|
||||
|
||||
|
|
@ -135,15 +147,3 @@ Uses feature(s): _eval_
|
|||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
:zinit-tmp-subst-source
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 25 line(s). Calls functions:
|
||||
|
||||
:zinit-tmp-subst-source
|
||||
`-- zinit.zsh/+zinit-message
|
||||
|
||||
Uses feature(s): _eval_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -13,46 +13,46 @@ Documentation automatically generated with `zshelldoc'
|
|||
FUNCTIONS
|
||||
---------
|
||||
|
||||
.zinit-at-eval
|
||||
.zinit-compile-plugin
|
||||
.zinit-compinit
|
||||
.zinit-configure-run-autoconf
|
||||
.zinit-download-file-stdout
|
||||
.zinit-download-snippet
|
||||
.zinit-extract
|
||||
.zinit-forget-completion
|
||||
.zinit-get-cygwin-package
|
||||
.zinit-get-latest-gh-r-url-part
|
||||
.zinit-get-package
|
||||
.zinit-get-url-mtime
|
||||
.zinit-install-completions
|
||||
.zinit-jq-check
|
||||
.zinit-json-get-value
|
||||
.zinit-json-to-array
|
||||
.zinit-mirror-using-svn
|
||||
.zinit-setup-plugin-dir
|
||||
.zinit-single-line
|
||||
.zinit-update-snippet
|
||||
zi::at-eval
|
||||
zi::compile-plugin
|
||||
zi::compinit
|
||||
zi::configure-run-autoconf
|
||||
zi::download-file-stdout
|
||||
zi::download-snippet
|
||||
zi::extract
|
||||
zi::forget-completion
|
||||
zi::get-cygwin-package
|
||||
zi::get-latest-gh-r-url-part
|
||||
zi::get-package
|
||||
zi::get-url-mtime
|
||||
zi::install-completions
|
||||
zi::jq-check
|
||||
zi::json-get-value
|
||||
zi::json-to-array
|
||||
zi::mirror-using-svn
|
||||
zi::setup-plugin-dir
|
||||
zi::single-line
|
||||
zi::update-snippet
|
||||
zicp
|
||||
ziextract
|
||||
zimv
|
||||
zpextract
|
||||
∞zinit-atclone-hook
|
||||
∞zinit-atpull-e-hook
|
||||
∞zinit-atpull-hook
|
||||
∞zinit-compile-plugin-hook
|
||||
∞zinit-configure-base-hook
|
||||
∞zinit-configure-e-hook
|
||||
∞zinit-configure-hook
|
||||
∞zinit-cp-hook
|
||||
∞zinit-extract-hook
|
||||
∞zinit-make-base-hook
|
||||
∞zinit-make-e-hook
|
||||
∞zinit-make-ee-hook
|
||||
∞zinit-make-hook
|
||||
∞zinit-mv-hook
|
||||
∞zinit-ps-on-update-hook
|
||||
∞zinit-reset-hook
|
||||
~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,23 +65,23 @@ Has 6 line(s). No functions are called (may set up e.g. a hook, a Zle widget bou
|
|||
|
||||
Uses feature(s): _source_
|
||||
|
||||
.zinit-at-eval
|
||||
~~~~~~~~~~~~~~
|
||||
zi::at-eval
|
||||
~~~~~~~~~~~
|
||||
|
||||
Has 9 line(s). Calls functions:
|
||||
|
||||
.zinit-at-eval
|
||||
`-- zinit.zsh/@zinit-substitute
|
||||
zi::at-eval
|
||||
`-- zinit.zsh/@zi::substitute
|
||||
|
||||
Uses feature(s): _eval_
|
||||
|
||||
Called by:
|
||||
|
||||
∞zinit-atpull-e-hook
|
||||
∞zinit-atpull-hook
|
||||
\~zi::atpull-e-hook
|
||||
\~zi::atpull-hook
|
||||
|
||||
.zinit-compile-plugin
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::compile-plugin
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -94,21 +94,21 @@ ____
|
|||
|
||||
Has 87 line(s). Calls functions:
|
||||
|
||||
.zinit-compile-plugin
|
||||
|-- zinit-side.zsh/.zinit-compute-ice
|
||||
|-- zinit-side.zsh/.zinit-first
|
||||
`-- zinit.zsh/+zinit-message
|
||||
zi::compile-plugin
|
||||
|-- zinit-side.zsh/zi::compute-ice
|
||||
|-- zinit-side.zsh/zi::first
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Uses feature(s): _eval_, _setopt_, _zcompile_
|
||||
|
||||
Called by:
|
||||
|
||||
∞zinit-compile-plugin-hook
|
||||
zinit-autoload.zsh/.zinit-compile-uncompile-all
|
||||
\~zi::compile-plugin-hook
|
||||
zinit-autoload.zsh/zi::compile-uncompile-all
|
||||
zinit.zsh/zinit
|
||||
|
||||
.zinit-compinit
|
||||
~~~~~~~~~~~~~~~
|
||||
zi::compinit
|
||||
~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -122,22 +122,23 @@ ____
|
|||
|
||||
Has 26 line(s). Calls functions:
|
||||
|
||||
.zinit-compinit
|
||||
zi::compinit
|
||||
|-- compinit
|
||||
`-- zinit.zsh/+zinit-message
|
||||
|-- zi::forget-completion
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Uses feature(s): _autoload_, _compinit_, _setopt_, _unfunction_
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-install-completions
|
||||
zinit-autoload.zsh/.zinit-uninstall-completions
|
||||
zinit-autoload.zsh/.zinit-update-or-status-all
|
||||
zinit.zsh/.zinit-prepare-home
|
||||
zi::install-completions
|
||||
zinit-autoload.zsh/zi::uninstall-completions
|
||||
zinit-autoload.zsh/zi::update-or-status-all
|
||||
zinit.zsh/zi::prepare-home
|
||||
zinit.zsh/zinit
|
||||
|
||||
.zinit-configure-run-autoconf
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::configure-run-autoconf
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -147,15 +148,15 @@ ____
|
|||
|
||||
Has 64 line(s). Calls functions:
|
||||
|
||||
.zinit-configure-run-autoconf
|
||||
`-- zinit-side.zsh/.zinit-countdown
|
||||
zi::configure-run-autoconf
|
||||
`-- zinit-side.zsh/zi::countdown
|
||||
|
||||
Called by:
|
||||
|
||||
∞zinit-configure-base-hook
|
||||
\~zi::configure-base-hook
|
||||
|
||||
.zinit-download-file-stdout
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::download-file-stdout
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -165,20 +166,20 @@ ____
|
|||
|
||||
Has 53 line(s). Calls functions:
|
||||
|
||||
.zinit-download-file-stdout
|
||||
`-- zinit.zsh/+zinit-message
|
||||
zi::download-file-stdout
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Uses feature(s): _setopt_, _trap_, _type_
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-download-snippet
|
||||
.zinit-get-cygwin-package
|
||||
.zinit-get-package
|
||||
.zinit-setup-plugin-dir
|
||||
zi::download-snippet
|
||||
zi::get-cygwin-package
|
||||
zi::get-package
|
||||
zi::setup-plugin-dir
|
||||
|
||||
.zinit-download-snippet
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::download-snippet
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -192,36 +193,50 @@ ____
|
|||
|
||||
Has 377 line(s). Calls functions:
|
||||
|
||||
.zinit-download-snippet
|
||||
|-- zinit-side.zsh/.zinit-store-ices
|
||||
|-- zinit.zsh/+zinit-message
|
||||
zi::download-snippet
|
||||
|-- zi::download-file-stdout
|
||||
| `-- zinit.zsh/+zi::message
|
||||
|-- zi::get-url-mtime
|
||||
|-- zi::install-completions
|
||||
| |-- zi::compinit
|
||||
| | |-- compinit
|
||||
| | |-- zi::forget-completion
|
||||
| | `-- zinit.zsh/+zi::message
|
||||
| |-- zi::forget-completion
|
||||
| |-- zinit-side.zsh/zi::any-colorify-as-uspl2
|
||||
| |-- zinit-side.zsh/zi::exists-physically-message
|
||||
| |-- zinit.zsh/+zi::message
|
||||
| `-- zinit.zsh/zi::any-to-user-plugin
|
||||
|-- zi::mirror-using-svn
|
||||
|-- zinit-side.zsh/zi::store-ices
|
||||
|-- zinit.zsh/+zi::message
|
||||
`-- zinit.zsh/is-at-least
|
||||
|
||||
Uses feature(s): _is-at-least_, _setopt_, _trap_, _zcompile_
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-update-snippet
|
||||
zinit.zsh/.zinit-load-snippet
|
||||
zi::update-snippet
|
||||
zinit.zsh/zi::load-snippet
|
||||
|
||||
.zinit-extract
|
||||
~~~~~~~~~~~~~~
|
||||
zi::extract
|
||||
~~~~~~~~~~~
|
||||
|
||||
Has 30 line(s). Calls functions:
|
||||
|
||||
.zinit-extract
|
||||
zi::extract
|
||||
|-- ziextract
|
||||
| `-- zinit.zsh/+zinit-message
|
||||
`-- zinit.zsh/+zinit-message
|
||||
| `-- zinit.zsh/+zi::message
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Called by:
|
||||
|
||||
∞zinit-extract-hook
|
||||
\~zi::extract-hook
|
||||
|
||||
.zinit-forget-completion
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::forget-completion
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -237,27 +252,29 @@ Uses feature(s): _setopt_, _unfunction_
|
|||
|
||||
Called by:
|
||||
|
||||
.zinit-compinit
|
||||
.zinit-install-completions
|
||||
zinit-autoload.zsh/.zinit-uninstall-completions
|
||||
zi::compinit
|
||||
zi::install-completions
|
||||
zinit-autoload.zsh/zi::uninstall-completions
|
||||
zinit.zsh/zinit
|
||||
|
||||
.zinit-get-cygwin-package
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::get-cygwin-package
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 70 line(s). Calls functions:
|
||||
|
||||
.zinit-get-cygwin-package
|
||||
`-- zinit.zsh/+zinit-message
|
||||
zi::get-cygwin-package
|
||||
|-- zi::download-file-stdout
|
||||
| `-- zinit.zsh/+zi::message
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-setup-plugin-dir
|
||||
zi::setup-plugin-dir
|
||||
|
||||
.zinit-get-latest-gh-r-url-part
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::get-latest-gh-r-url-part
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -267,37 +284,44 @@ ____
|
|||
|
||||
Has 116 line(s). Calls functions:
|
||||
|
||||
.zinit-get-latest-gh-r-url-part
|
||||
`-- zinit.zsh/+zinit-message
|
||||
zi::get-latest-gh-r-url-part
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-setup-plugin-dir
|
||||
zinit-autoload.zsh/.zinit-update-or-status
|
||||
zi::setup-plugin-dir
|
||||
zinit-autoload.zsh/zi::update-or-status
|
||||
|
||||
.zinit-get-package
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
zi::get-package
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
Has 195 line(s). Calls functions:
|
||||
|
||||
.zinit-get-package
|
||||
zi::get-package
|
||||
|-- zi::download-file-stdout
|
||||
| `-- zinit.zsh/+zi::message
|
||||
|-- zi::jq-check
|
||||
| `-- zinit.zsh/+zi::message
|
||||
|-- zi::json-to-array
|
||||
| `-- zi::jq-check
|
||||
| `-- zinit.zsh/+zi::message
|
||||
|-- ziextract
|
||||
| `-- zinit.zsh/+zinit-message
|
||||
|-- zinit.zsh/+zinit-message
|
||||
`-- zinit.zsh/@zinit-substitute
|
||||
| `-- zinit.zsh/+zi::message
|
||||
|-- zinit.zsh/+zi::message
|
||||
`-- zinit.zsh/@zi::substitute
|
||||
|
||||
Uses feature(s): _eval_, _setopt_, _trap_
|
||||
|
||||
Called by:
|
||||
|
||||
zinit.zsh/.zinit-load
|
||||
zinit.zsh/zi::load
|
||||
|
||||
_Environment variables used:_ zinit.zsh -> ZPFX
|
||||
|
||||
.zinit-get-url-mtime
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
zi::get-url-mtime
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -311,10 +335,10 @@ Uses feature(s): _read_, _setopt_, _trap_, _type_
|
|||
|
||||
Called by:
|
||||
|
||||
.zinit-download-snippet
|
||||
zi::download-snippet
|
||||
|
||||
.zinit-install-completions
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::install-completions
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -330,22 +354,27 @@ ____
|
|||
|
||||
Has 61 line(s). Calls functions:
|
||||
|
||||
.zinit-install-completions
|
||||
|-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
|
||||
|-- zinit-side.zsh/.zinit-exists-physically-message
|
||||
|-- zinit.zsh/+zinit-message
|
||||
`-- zinit.zsh/.zinit-any-to-user-plugin
|
||||
zi::install-completions
|
||||
|-- zi::compinit
|
||||
| |-- compinit
|
||||
| |-- zi::forget-completion
|
||||
| `-- zinit.zsh/+zi::message
|
||||
|-- zi::forget-completion
|
||||
|-- zinit-side.zsh/zi::any-colorify-as-uspl2
|
||||
|-- zinit-side.zsh/zi::exists-physically-message
|
||||
|-- zinit.zsh/+zi::message
|
||||
`-- zinit.zsh/zi::any-to-user-plugin
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-download-snippet
|
||||
.zinit-setup-plugin-dir
|
||||
zi::download-snippet
|
||||
zi::setup-plugin-dir
|
||||
zinit.zsh/zinit
|
||||
|
||||
.zinit-jq-check
|
||||
~~~~~~~~~~~~~~~
|
||||
zi::jq-check
|
||||
~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -355,17 +384,17 @@ ____
|
|||
|
||||
Has 8 line(s). Calls functions:
|
||||
|
||||
.zinit-jq-check
|
||||
`-- zinit.zsh/+zinit-message
|
||||
zi::jq-check
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-get-package
|
||||
.zinit-json-get-value
|
||||
.zinit-json-to-array
|
||||
zi::get-package
|
||||
zi::json-get-value
|
||||
zi::json-to-array
|
||||
|
||||
.zinit-json-get-value
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::json-get-value
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -377,12 +406,14 @@ ____
|
|||
|
||||
Has 4 line(s). Calls functions:
|
||||
|
||||
.zinit-json-get-value
|
||||
zi::json-get-value
|
||||
`-- zi::jq-check
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
.zinit-json-to-array
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
zi::json-to-array
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -396,16 +427,18 @@ ____
|
|||
|
||||
Has 13 line(s). Calls functions:
|
||||
|
||||
.zinit-json-to-array
|
||||
zi::json-to-array
|
||||
`-- zi::jq-check
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Uses feature(s): _eval_, _setopt_
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-get-package
|
||||
zi::get-package
|
||||
|
||||
.zinit-mirror-using-svn
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::mirror-using-svn
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -426,10 +459,10 @@ Uses feature(s): _setopt_
|
|||
|
||||
Called by:
|
||||
|
||||
.zinit-download-snippet
|
||||
zi::download-snippet
|
||||
|
||||
.zinit-setup-plugin-dir
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::setup-plugin-dir
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -443,23 +476,41 @@ ____
|
|||
|
||||
Has 215 line(s). Calls functions:
|
||||
|
||||
.zinit-setup-plugin-dir
|
||||
zi::setup-plugin-dir
|
||||
|-- zi::download-file-stdout
|
||||
| `-- zinit.zsh/+zi::message
|
||||
|-- zi::get-cygwin-package
|
||||
| |-- zi::download-file-stdout
|
||||
| | `-- zinit.zsh/+zi::message
|
||||
| `-- zinit.zsh/+zi::message
|
||||
|-- zi::get-latest-gh-r-url-part
|
||||
| `-- zinit.zsh/+zi::message
|
||||
|-- zi::install-completions
|
||||
| |-- zi::compinit
|
||||
| | |-- compinit
|
||||
| | |-- zi::forget-completion
|
||||
| | `-- zinit.zsh/+zi::message
|
||||
| |-- zi::forget-completion
|
||||
| |-- zinit-side.zsh/zi::any-colorify-as-uspl2
|
||||
| |-- zinit-side.zsh/zi::exists-physically-message
|
||||
| |-- zinit.zsh/+zi::message
|
||||
| `-- zinit.zsh/zi::any-to-user-plugin
|
||||
|-- ziextract
|
||||
| `-- zinit.zsh/+zinit-message
|
||||
|-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
|
||||
|-- zinit-side.zsh/.zinit-store-ices
|
||||
|-- zinit.zsh/+zinit-message
|
||||
`-- zinit.zsh/.zinit-get-object-path
|
||||
| `-- zinit.zsh/+zi::message
|
||||
|-- zinit-side.zsh/zi::any-colorify-as-uspl2
|
||||
|-- zinit-side.zsh/zi::store-ices
|
||||
|-- zinit.zsh/+zi::message
|
||||
`-- zinit.zsh/zi::get-object-path
|
||||
|
||||
Uses feature(s): _setopt_, _trap_
|
||||
|
||||
Called by:
|
||||
|
||||
zinit-autoload.zsh/.zinit-update-or-status
|
||||
zinit.zsh/.zinit-load
|
||||
zinit-autoload.zsh/zi::update-or-status
|
||||
zinit.zsh/zi::load
|
||||
|
||||
.zinit-single-line
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
zi::single-line
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -472,21 +523,39 @@ Uses feature(s): _read_, _setopt_
|
|||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
.zinit-update-snippet
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::update-snippet
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 76 line(s). Calls functions:
|
||||
|
||||
.zinit-update-snippet
|
||||
|-- zinit.zsh/+zinit-message
|
||||
|-- zinit.zsh/.zinit-get-object-path
|
||||
`-- zinit.zsh/.zinit-pack-ice
|
||||
zi::update-snippet
|
||||
|-- zi::download-snippet
|
||||
| |-- zi::download-file-stdout
|
||||
| | `-- zinit.zsh/+zi::message
|
||||
| |-- zi::get-url-mtime
|
||||
| |-- zi::install-completions
|
||||
| | |-- zi::compinit
|
||||
| | | |-- compinit
|
||||
| | | |-- zi::forget-completion
|
||||
| | | `-- zinit.zsh/+zi::message
|
||||
| | |-- zi::forget-completion
|
||||
| | |-- zinit-side.zsh/zi::any-colorify-as-uspl2
|
||||
| | |-- zinit-side.zsh/zi::exists-physically-message
|
||||
| | |-- zinit.zsh/+zi::message
|
||||
| | `-- zinit.zsh/zi::any-to-user-plugin
|
||||
| |-- zi::mirror-using-svn
|
||||
| |-- zinit-side.zsh/zi::store-ices
|
||||
| |-- zinit.zsh/+zi::message
|
||||
| `-- zinit.zsh/is-at-least
|
||||
|-- zinit.zsh/+zi::message
|
||||
|-- zinit.zsh/zi::get-object-path
|
||||
`-- zinit.zsh/zi::pack-ice
|
||||
|
||||
Uses feature(s): _eval_, _setopt_
|
||||
|
||||
Called by:
|
||||
|
||||
zinit-autoload.zsh/.zinit-update-or-status-snippet
|
||||
zinit-autoload.zsh/zi::update-or-status-snippet
|
||||
|
||||
zicp
|
||||
~~~~
|
||||
|
|
@ -518,15 +587,15 @@ ____
|
|||
Has 283 line(s). Calls functions:
|
||||
|
||||
ziextract
|
||||
`-- zinit.zsh/+zinit-message
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Uses feature(s): _setopt_, _unfunction_, _zparseopts_
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-extract
|
||||
.zinit-get-package
|
||||
.zinit-setup-plugin-dir
|
||||
zi::extract
|
||||
zi::get-package
|
||||
zi::setup-plugin-dir
|
||||
zpextract
|
||||
|
||||
zimv
|
||||
|
|
@ -546,65 +615,53 @@ Has 1 line(s). Calls functions:
|
|||
|
||||
zpextract
|
||||
`-- ziextract
|
||||
`-- zinit.zsh/+zinit-message
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
∞zinit-atclone-hook
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
~zi::atclone-hook
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 26 line(s). Calls functions:
|
||||
|
||||
∞zinit-atclone-hook
|
||||
|-- zinit-side.zsh/.zinit-countdown
|
||||
`-- zinit.zsh/@zinit-substitute
|
||||
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.).
|
||||
|
||||
∞zinit-atpull-e-hook
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 22 line(s). Calls functions:
|
||||
|
||||
∞zinit-atpull-e-hook
|
||||
`-- zinit-side.zsh/.zinit-countdown
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
∞zinit-atpull-hook
|
||||
~zi::atpull-e-hook
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 22 line(s). Calls functions:
|
||||
|
||||
∞zinit-atpull-hook
|
||||
`-- zinit-side.zsh/.zinit-countdown
|
||||
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.).
|
||||
|
||||
∞zinit-compile-plugin-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~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). Calls functions:
|
||||
|
||||
∞zinit-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.).
|
||||
|
||||
∞zinit-configure-base-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~zi::configure-base-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -614,21 +671,12 @@ ____
|
|||
places.
|
||||
____
|
||||
|
||||
Has 65 line(s). Calls functions:
|
||||
Has 65 line(s). Doesn't call other functions.
|
||||
|
||||
∞zinit-configure-base-hook
|
||||
|-- zinit-side.zsh/.zinit-countdown
|
||||
`-- zinit.zsh/@zinit-substitute
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
Called by:
|
||||
|
||||
∞zinit-configure-e-hook
|
||||
∞zinit-configure-hook
|
||||
|
||||
_Environment variables used:_ zinit.zsh -> ZPFX
|
||||
|
||||
∞zinit-configure-e-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~zi::configure-e-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -637,17 +685,12 @@ ____
|
|||
before make.
|
||||
____
|
||||
|
||||
Has 1 line(s). Calls functions:
|
||||
|
||||
∞zinit-configure-e-hook
|
||||
`-- ∞zinit-configure-base-hook
|
||||
|-- zinit-side.zsh/.zinit-countdown
|
||||
`-- zinit.zsh/@zinit-substitute
|
||||
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.).
|
||||
|
||||
∞zinit-configure-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
~zi::configure-hook
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -656,120 +699,76 @@ ____
|
|||
before make.
|
||||
____
|
||||
|
||||
Has 1 line(s). Calls functions:
|
||||
|
||||
∞zinit-configure-hook
|
||||
`-- ∞zinit-configure-base-hook
|
||||
|-- zinit-side.zsh/.zinit-countdown
|
||||
`-- zinit.zsh/@zinit-substitute
|
||||
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.).
|
||||
|
||||
∞zinit-cp-hook
|
||||
~~~~~~~~~~~~~~
|
||||
~zi::cp-hook
|
||||
~~~~~~~~~~~~
|
||||
|
||||
Has 30 line(s). Calls functions:
|
||||
|
||||
∞zinit-cp-hook
|
||||
`-- zinit.zsh/@zinit-substitute
|
||||
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.).
|
||||
|
||||
∞zinit-extract-hook
|
||||
~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 10 line(s). Calls functions:
|
||||
|
||||
∞zinit-extract-hook
|
||||
`-- zinit.zsh/@zinit-substitute
|
||||
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.).
|
||||
|
||||
∞zinit-make-base-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 29 line(s). Calls functions:
|
||||
|
||||
∞zinit-make-base-hook
|
||||
|-- zinit-side.zsh/.zinit-countdown
|
||||
`-- zinit.zsh/@zinit-substitute
|
||||
|
||||
Called by:
|
||||
|
||||
∞zinit-make-e-hook
|
||||
∞zinit-make-ee-hook
|
||||
∞zinit-make-hook
|
||||
|
||||
∞zinit-make-e-hook
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 1 line(s). Calls functions:
|
||||
|
||||
∞zinit-make-e-hook
|
||||
`-- ∞zinit-make-base-hook
|
||||
|-- zinit-side.zsh/.zinit-countdown
|
||||
`-- zinit.zsh/@zinit-substitute
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
∞zinit-make-ee-hook
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 1 line(s). Calls functions:
|
||||
|
||||
∞zinit-make-ee-hook
|
||||
`-- ∞zinit-make-base-hook
|
||||
|-- zinit-side.zsh/.zinit-countdown
|
||||
`-- zinit.zsh/@zinit-substitute
|
||||
|
||||
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
|
||||
|
||||
∞zinit-make-hook
|
||||
~zi::make-e-hook
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 1 line(s). Calls functions:
|
||||
|
||||
∞zinit-make-hook
|
||||
`-- ∞zinit-make-base-hook
|
||||
|-- zinit-side.zsh/.zinit-countdown
|
||||
`-- zinit.zsh/@zinit-substitute
|
||||
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.).
|
||||
|
||||
∞zinit-mv-hook
|
||||
~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 35 line(s). Calls functions:
|
||||
Has 1 line(s). Doesn't call other functions.
|
||||
|
||||
∞zinit-mv-hook
|
||||
|-- zinit.zsh/+zinit-message
|
||||
`-- zinit.zsh/@zinit-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). 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.).
|
||||
|
||||
∞zinit-ps-on-update-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~zi::ps-on-update-hook
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Has 18 line(s). Calls functions:
|
||||
|
||||
∞zinit-ps-on-update-hook
|
||||
`-- zinit.zsh/+zinit-message
|
||||
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.).
|
||||
|
||||
∞zinit-reset-hook
|
||||
~~~~~~~~~~~~~~~~~
|
||||
~zi::reset-hook
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
Has 79 line(s). Calls functions:
|
||||
|
||||
∞zinit-reset-hook
|
||||
`-- zinit.zsh/+zinit-message
|
||||
Has 79 line(s). Doesn't call other functions.
|
||||
|
||||
Uses feature(s): _eval_
|
||||
|
||||
|
|
@ -792,11 +791,11 @@ ____
|
|||
`#compdef <names ...>'
|
||||
____
|
||||
|
||||
Has 573 line(s). Doesn't call other functions.
|
||||
Has 549 line(s). Doesn't call other functions.
|
||||
|
||||
Uses feature(s): _autoload_, _bindkey_, _compdef_, _compdump_, _eval_, _read_, _setopt_, _unfunction_, _zle_, _zstyle_
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-compinit
|
||||
zi::compinit
|
||||
|
||||
|
|
|
|||
|
|
@ -13,14 +13,14 @@ Documentation automatically generated with `zshelldoc'
|
|||
FUNCTIONS
|
||||
---------
|
||||
|
||||
.zinit-any-colorify-as-uspl2
|
||||
.zinit-compute-ice
|
||||
.zinit-countdown
|
||||
.zinit-exists-physically
|
||||
.zinit-exists-physically-message
|
||||
.zinit-first
|
||||
.zinit-store-ices
|
||||
.zinit-two-paths
|
||||
zi::any-colorify-as-uspl2
|
||||
zi::compute-ice
|
||||
zi::countdown
|
||||
zi::exists-physically
|
||||
zi::exists-physically-message
|
||||
zi::first
|
||||
zi::store-ices
|
||||
zi::two-paths
|
||||
|
||||
DETAILS
|
||||
-------
|
||||
|
|
@ -30,8 +30,8 @@ Script Body
|
|||
|
||||
Has 1 line(s). No functions are called (may set up e.g. a hook, a Zle widget bound to a key, etc.).
|
||||
|
||||
.zinit-any-colorify-as-uspl2
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::any-colorify-as-uspl2
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -46,36 +46,36 @@ ____
|
|||
|
||||
Has 22 line(s). Calls functions:
|
||||
|
||||
.zinit-any-colorify-as-uspl2
|
||||
|-- zinit.zsh/.zinit-any-to-pid
|
||||
`-- zinit.zsh/.zinit-any-to-user-plugin
|
||||
zi::any-colorify-as-uspl2
|
||||
|-- zinit.zsh/zi::any-to-pid
|
||||
`-- zinit.zsh/zi::any-to-user-plugin
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-exists-physically-message
|
||||
zinit-autoload.zsh/.zinit-clear-completions
|
||||
zinit-autoload.zsh/.zinit-compile-uncompile-all
|
||||
zinit-autoload.zsh/.zinit-compiled
|
||||
zinit-autoload.zsh/.zinit-create
|
||||
zinit-autoload.zsh/.zinit-exists-message
|
||||
zinit-autoload.zsh/.zinit-get-completion-owner-uspl2col
|
||||
zinit-autoload.zsh/.zinit-list-bindkeys
|
||||
zinit-autoload.zsh/.zinit-recently
|
||||
zinit-autoload.zsh/.zinit-search-completions
|
||||
zinit-autoload.zsh/.zinit-show-completions
|
||||
zinit-autoload.zsh/.zinit-show-registered-plugins
|
||||
zinit-autoload.zsh/.zinit-show-times
|
||||
zinit-autoload.zsh/.zinit-uncompile-plugin
|
||||
zinit-autoload.zsh/.zinit-unload
|
||||
zinit-autoload.zsh/.zinit-update-all-parallel
|
||||
zinit-autoload.zsh/.zinit-update-or-status-all
|
||||
zinit-autoload.zsh/.zinit-update-or-status
|
||||
zinit-install.zsh/.zinit-install-completions
|
||||
zinit-install.zsh/.zinit-setup-plugin-dir
|
||||
zinit.zsh/.zinit-formatter-pid
|
||||
zi::exists-physically-message
|
||||
zinit-autoload.zsh/zi::clear-completions
|
||||
zinit-autoload.zsh/zi::compile-uncompile-all
|
||||
zinit-autoload.zsh/zi::compiled
|
||||
zinit-autoload.zsh/zi::create
|
||||
zinit-autoload.zsh/zi::exists-message
|
||||
zinit-autoload.zsh/zi::get-completion-owner-uspl2col
|
||||
zinit-autoload.zsh/zi::list-bindkeys
|
||||
zinit-autoload.zsh/zi::recently
|
||||
zinit-autoload.zsh/zi::search-completions
|
||||
zinit-autoload.zsh/zi::show-completions
|
||||
zinit-autoload.zsh/zi::show-registered-plugins
|
||||
zinit-autoload.zsh/zi::show-times
|
||||
zinit-autoload.zsh/zi::uncompile-plugin
|
||||
zinit-autoload.zsh/zi::unload
|
||||
zinit-autoload.zsh/zi::update-all-parallel
|
||||
zinit-autoload.zsh/zi::update-or-status-all
|
||||
zinit-autoload.zsh/zi::update-or-status
|
||||
zinit-install.zsh/zi::install-completions
|
||||
zinit-install.zsh/zi::setup-plugin-dir
|
||||
zinit.zsh/zi::formatter-pid
|
||||
|
||||
.zinit-compute-ice
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
zi::compute-ice
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -102,23 +102,39 @@ ____
|
|||
|
||||
Has 110 line(s). Calls functions:
|
||||
|
||||
.zinit-compute-ice
|
||||
|-- zinit.zsh/.zinit-any-to-user-plugin
|
||||
`-- zinit.zsh/.zinit-pack-ice
|
||||
zi::compute-ice
|
||||
|-- zi::exists-physically-message
|
||||
| |-- zi::any-colorify-as-uspl2
|
||||
| | |-- zinit.zsh/zi::any-to-pid
|
||||
| | `-- zinit.zsh/zi::any-to-user-plugin
|
||||
| |-- zi::exists-physically
|
||||
| | `-- zinit.zsh/zi::any-to-user-plugin
|
||||
| |-- zinit.zsh/+zi::message
|
||||
| |-- zinit.zsh/zi::any-to-pid
|
||||
| `-- zinit.zsh/zi::any-to-user-plugin
|
||||
|-- zi::two-paths
|
||||
| |-- zi::first
|
||||
| | |-- zinit.zsh/zi::any-to-pid
|
||||
| | |-- zinit.zsh/zi::any-to-user-plugin
|
||||
| | |-- zinit.zsh/zi::find-other-matches
|
||||
| | `-- zinit.zsh/zi::get-object-path
|
||||
| `-- zinit.zsh/zi::get-object-path
|
||||
|-- zinit.zsh/zi::any-to-user-plugin
|
||||
`-- zinit.zsh/zi::pack-ice
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Called by:
|
||||
|
||||
zinit-autoload.zsh/.zinit-delete
|
||||
zinit-autoload.zsh/.zinit-edit
|
||||
zinit-autoload.zsh/.zinit-recall
|
||||
zinit-autoload.zsh/.zinit-update-or-status-snippet
|
||||
zinit-autoload.zsh/.zinit-update-or-status
|
||||
zinit-install.zsh/.zinit-compile-plugin
|
||||
zinit-autoload.zsh/zi::delete
|
||||
zinit-autoload.zsh/zi::edit
|
||||
zinit-autoload.zsh/zi::recall
|
||||
zinit-autoload.zsh/zi::update-or-status-snippet
|
||||
zinit-autoload.zsh/zi::update-or-status
|
||||
zinit-install.zsh/zi::compile-plugin
|
||||
|
||||
.zinit-countdown
|
||||
~~~~~~~~~~~~~~~~
|
||||
zi::countdown
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -129,23 +145,23 @@ ____
|
|||
|
||||
Has 20 line(s). Calls functions:
|
||||
|
||||
.zinit-countdown
|
||||
`-- zinit.zsh/+zinit-message
|
||||
zi::countdown
|
||||
`-- zinit.zsh/+zi::message
|
||||
|
||||
Uses feature(s): _trap_
|
||||
|
||||
Called by:
|
||||
|
||||
zinit-autoload.zsh/.zinit-run-delete-hooks
|
||||
zinit-install.zsh/.zinit-configure-run-autoconf
|
||||
zinit-install.zsh/∞zinit-atclone-hook
|
||||
zinit-install.zsh/∞zinit-atpull-e-hook
|
||||
zinit-install.zsh/∞zinit-atpull-hook
|
||||
zinit-install.zsh/∞zinit-configure-base-hook
|
||||
zinit-install.zsh/∞zinit-make-base-hook
|
||||
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::configure-run-autoconf
|
||||
|
||||
.zinit-exists-physically
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::exists-physically
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -157,17 +173,17 @@ ____
|
|||
|
||||
Has 8 line(s). Calls functions:
|
||||
|
||||
.zinit-exists-physically
|
||||
`-- zinit.zsh/.zinit-any-to-user-plugin
|
||||
zi::exists-physically
|
||||
`-- zinit.zsh/zi::any-to-user-plugin
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-exists-physically-message
|
||||
zinit-autoload.zsh/.zinit-create
|
||||
zinit-autoload.zsh/.zinit-update-or-status
|
||||
zi::exists-physically-message
|
||||
zinit-autoload.zsh/zi::create
|
||||
zinit-autoload.zsh/zi::update-or-status
|
||||
|
||||
.zinit-exists-physically-message
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
zi::exists-physically-message
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -180,32 +196,37 @@ ____
|
|||
|
||||
Has 25 line(s). Calls functions:
|
||||
|
||||
.zinit-exists-physically-message
|
||||
|-- zinit.zsh/+zinit-message
|
||||
|-- zinit.zsh/.zinit-any-to-pid
|
||||
`-- zinit.zsh/.zinit-any-to-user-plugin
|
||||
zi::exists-physically-message
|
||||
|-- zi::any-colorify-as-uspl2
|
||||
| |-- zinit.zsh/zi::any-to-pid
|
||||
| `-- zinit.zsh/zi::any-to-user-plugin
|
||||
|-- zi::exists-physically
|
||||
| `-- zinit.zsh/zi::any-to-user-plugin
|
||||
|-- zinit.zsh/+zi::message
|
||||
|-- zinit.zsh/zi::any-to-pid
|
||||
`-- zinit.zsh/zi::any-to-user-plugin
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-compute-ice
|
||||
zinit-autoload.zsh/.zinit-changes
|
||||
zinit-autoload.zsh/.zinit-glance
|
||||
zinit-autoload.zsh/.zinit-stress
|
||||
zinit-autoload.zsh/.zinit-update-or-status
|
||||
zinit-install.zsh/.zinit-install-completions
|
||||
zi::compute-ice
|
||||
zinit-autoload.zsh/zi::changes
|
||||
zinit-autoload.zsh/zi::glance
|
||||
zinit-autoload.zsh/zi::stress
|
||||
zinit-autoload.zsh/zi::update-or-status
|
||||
zinit-install.zsh/zi::install-completions
|
||||
|
||||
.zinit-first
|
||||
~~~~~~~~~~~~
|
||||
zi::first
|
||||
~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
Finds the main file of plugin. There are multiple file name formats, they are
|
||||
ordered in order starting from more correct ones, and matched.
|
||||
.zinit-load-plugin() has similar code parts and doesn't call .zinit-first() –
|
||||
for performance. Obscure matching is done in .zinit-find-other-matches, here
|
||||
and in .zinit-load(). Obscure = non-standard main-file naming convention.
|
||||
zi::load-plugin() has similar code parts and doesn't call zi::first() –
|
||||
for performance. Obscure matching is done in zi::find-other-matches, here
|
||||
and in zi::load(). Obscure = non-standard main-file naming convention.
|
||||
|
||||
$1 - plugin spec (4 formats: user---plugin, user/plugin, user, plugin)
|
||||
$2 - plugin (only when $1 - i.e. user - given)
|
||||
|
|
@ -213,21 +234,21 @@ ____
|
|||
|
||||
Has 20 line(s). Calls functions:
|
||||
|
||||
.zinit-first
|
||||
|-- zinit.zsh/.zinit-any-to-pid
|
||||
|-- zinit.zsh/.zinit-any-to-user-plugin
|
||||
|-- zinit.zsh/.zinit-find-other-matches
|
||||
`-- zinit.zsh/.zinit-get-object-path
|
||||
zi::first
|
||||
|-- zinit.zsh/zi::any-to-pid
|
||||
|-- zinit.zsh/zi::any-to-user-plugin
|
||||
|-- zinit.zsh/zi::find-other-matches
|
||||
`-- zinit.zsh/zi::get-object-path
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-two-paths
|
||||
zinit-autoload.zsh/.zinit-glance
|
||||
zinit-autoload.zsh/.zinit-stress
|
||||
zinit-install.zsh/.zinit-compile-plugin
|
||||
zi::two-paths
|
||||
zinit-autoload.zsh/zi::glance
|
||||
zinit-autoload.zsh/zi::stress
|
||||
zinit-install.zsh/zi::compile-plugin
|
||||
|
||||
.zinit-store-ices
|
||||
~~~~~~~~~~~~~~~~~
|
||||
zi::store-ices
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -245,12 +266,12 @@ Has 30 line(s). Doesn't call other functions.
|
|||
|
||||
Called by:
|
||||
|
||||
zinit-autoload.zsh/.zinit-update-or-status
|
||||
zinit-install.zsh/.zinit-download-snippet
|
||||
zinit-install.zsh/.zinit-setup-plugin-dir
|
||||
zinit-autoload.zsh/zi::update-or-status
|
||||
zinit-install.zsh/zi::download-snippet
|
||||
zinit-install.zsh/zi::setup-plugin-dir
|
||||
|
||||
.zinit-two-paths
|
||||
~~~~~~~~~~~~~~~~
|
||||
zi::two-paths
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
____
|
||||
|
||||
|
|
@ -263,13 +284,18 @@ ____
|
|||
|
||||
Has 24 line(s). Calls functions:
|
||||
|
||||
.zinit-two-paths
|
||||
`-- zinit.zsh/.zinit-get-object-path
|
||||
zi::two-paths
|
||||
|-- zi::first
|
||||
| |-- zinit.zsh/zi::any-to-pid
|
||||
| |-- zinit.zsh/zi::any-to-user-plugin
|
||||
| |-- zinit.zsh/zi::find-other-matches
|
||||
| `-- zinit.zsh/zi::get-object-path
|
||||
`-- zinit.zsh/zi::get-object-path
|
||||
|
||||
Uses feature(s): _setopt_
|
||||
|
||||
Called by:
|
||||
|
||||
.zinit-compute-ice
|
||||
zinit-autoload.zsh/.zinit-update-or-status
|
||||
zi::compute-ice
|
||||
zinit-autoload.zsh/zi::update-or-status
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -36,6 +36,6 @@ USER ${PUSERNAME}
|
|||
# Fetch keys config and store it outside of ZINIT[HOME_DIR] since it might get
|
||||
# overridden at runtime (the /data volume)
|
||||
RUN ZINIT_HOME_DIR=/data-static ZSH_NO_INIT=1 \
|
||||
zsh -ils -c -- '@zinit-scheduler burst'
|
||||
zsh -ils -c -- '@zi::scheduler burst'
|
||||
|
||||
CMD ["/bin/zsh"]
|
||||
|
|
|
|||
59
docker/zshrc
59
docker/zshrc
|
|
@ -1,41 +1,26 @@
|
|||
# Initialization. Trigger stuff that only needs to be run once, at startup.
|
||||
if [[ "$$" == 1 ]] && [[ -z "$ZSH_NO_INIT" ]]
|
||||
then
|
||||
source /src/docker/init.zsh
|
||||
fi
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# load zinit
|
||||
source /src/zinit.zsh
|
||||
typeset -Ag ZINIT
|
||||
|
||||
ZINIT[HOME_DIR]=${ZINIT_DATA:-$HOME/zinit}
|
||||
ZINIT[BIN_DIR]=${ZINIT_SRC:-$HOME/zinit.git}
|
||||
|
||||
source ${ZINIT[BIN_DIR]}/zinit.zsh
|
||||
autoload -Uz _zinit
|
||||
(( ${+_comps} )) && _comps[zinit]=_zinit
|
||||
|
||||
# load zinit setup utility functions
|
||||
source /src/docker/utils.zsh
|
||||
|
||||
# Add ZPFX/bin and GOPATH/bin to PATH
|
||||
typeset -U path
|
||||
path=("${ZPFX:-${HOME}/.local/share/zinit/polaris}/bin" "${HOME}/go/bin" $path)
|
||||
|
||||
# Install custom zsh version
|
||||
if [[ -n "$ZINIT_ZSH_VERSION" ]]
|
||||
then
|
||||
zinit::pack-zsh "$ZINIT_ZSH_VERSION"
|
||||
fi
|
||||
|
||||
source /src/docker/zshrc-fancy
|
||||
|
||||
# Source init file
|
||||
INIT_FILE="/init.zsh"
|
||||
if [[ -r "$INIT_FILE" ]]
|
||||
then
|
||||
source "$INIT_FILE"
|
||||
fi
|
||||
|
||||
# Local Variables:
|
||||
# mode: Shell-Script
|
||||
# sh-indentation: 2
|
||||
# indent-tabs-mode: nil
|
||||
# sh-basic-offset: 2
|
||||
# End:
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
|
||||
#=== OH-MY-ZSH & PREZTO PLUGINS =======================
|
||||
zi is-snippet light-mode nocompletions for {PZTM::{environment,history},OMZL::{compfix,completion,git,key-bindings}.zsh}
|
||||
#=== COMPLETIONS ======================================
|
||||
zi make"PREFIX=/usr/local install" load for @zdharma-continuum/zshelldoc
|
||||
#=== PROMPT ===========================================
|
||||
eval "MODE_CURSOR_"{'SEARCH="#ff00ff blinking underline"','VICMD="green block"','VIINS="#ffff00 bar"'}";"
|
||||
zi for as'null' compile'(pure|async).zsh' multisrc'(pure|async).zsh' light-mode atinit"
|
||||
PURE_GIT_DOWN_ARROW='↓'; PURE_GIT_UP_ARROW='↑'
|
||||
PURE_PROMPT_SYMBOL='ᐳ'; PURE_PROMPT_VICMD_SYMBOL='ᐸ'
|
||||
zstyle ':prompt:pure:git:action' color 'yellow'
|
||||
zstyle ':prompt:pure:git:branch' color 'blue'
|
||||
zstyle ':prompt:pure:git:dirty' color 'red'
|
||||
zstyle ':prompt:pure:path' color 'cyan'
|
||||
zstyle ':prompt:pure:prompt:success' color 'green'" \
|
||||
@sindresorhus/pure
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ if [[ ${BASH_SOURCE[0]} == "${0}" ]]; then
|
|||
# shellcheck disable=2016
|
||||
CMD=(zsh -ilsc
|
||||
'sudo chown -R "$(id -u):$(id -g)" /src &&
|
||||
@zinit-scheduler burst &&
|
||||
@zi::scheduler burst &&
|
||||
sudo apk add tree &&
|
||||
make -C /src doc')
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -261,7 +261,7 @@ EOF
|
|||
if [ "$reply" = y ] || [ "$reply" = Y ]; then
|
||||
command cat "$zshrc_annex_file" >> "$ZSHRC"
|
||||
echo_info "Installing annexes"
|
||||
zsh -ic "@zinit-scheduler burst"
|
||||
zsh -ic "@zi::scheduler burst"
|
||||
echo_success 'Done!'
|
||||
else
|
||||
echo_warning "Skipped the annexes."
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
_annex_test_function() {
|
||||
run zinit load zdharma-continuum/${1}
|
||||
# run zinit load zdharma-continuum/${1}
|
||||
run zinit id-as ver'refactor/zinit-function-names' for load vladdoster/${1}
|
||||
assert ${state} equals 0
|
||||
zinit cd zdharma-continuum/${1}
|
||||
zinit cd ${1}
|
||||
assert ${PWD}/${${1}//zinit-annex/z-a}.plugin.zsh is_file
|
||||
assert ${PWD}/${${1}//zinit-annex/z-a}.plugin.zsh is_readable
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,10 +40,8 @@ source $ZINIT[BIN_DIR]/zinit.zsh \
|
|||
# ]]]
|
||||
# Install Annexes [[[
|
||||
info 'installing test dependencies'
|
||||
# ver'fix/improve-lbin-logic' \
|
||||
zinit depth'1' light-mode for \
|
||||
zdharma-continuum/zinit-annex-binary-symlink \
|
||||
zdharma-continuum/zinit-annex-{'bin-gem-node','default-ice'}
|
||||
zi id-as ver'refactor/zinit-function-names' light-mode for \
|
||||
@vladdoster/zinit-annex-{bin-gem-node,binary-symlink,default-ice,patch-dl,submods}
|
||||
# ]]]
|
||||
|
||||
# vim:ft=zsh:sw=2:sts=2:et:foldmarker=[[[,]]]:foldmethod=marker
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
# -*- mode: sh; sh-indentation: 4; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
||||
# Copyright (c) 2016-2020 Sebastian Gniazdowski and contributors.
|
||||
|
||||
# FUNCTION: :zinit-tmp-subst-source [[[
|
||||
:zinit-tmp-subst-source() {
|
||||
# FUNCTION: :zi::tmp-subst-source [[[
|
||||
:zi::tmp-subst-source() {
|
||||
local -a ___substs ___ab
|
||||
___substs=( "${(@s.;.)ICE[subst]}" )
|
||||
if [[ -n ${(M)___substs:#*\\(#e)} ]] {
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
# Load the plugin
|
||||
if [[ ! -r $1 ]] {
|
||||
+zinit-message "{error}source: Couldn't read the script {obj}${1}{error}" \
|
||||
+zi::message "{error}source: Couldn't read the script {obj}${1}{error}" \
|
||||
", cannot substitute {data}${ICE[subst]}{error}.{rst}"
|
||||
}
|
||||
|
||||
|
|
@ -31,13 +31,13 @@
|
|||
|
||||
builtin eval "$___data"
|
||||
} # ]]]
|
||||
# FUNCTION: .zinit-service [[[
|
||||
# FUNCTION: zi::service [[[
|
||||
# Handles given service, i.e. obtains lock, runs it, or waits if no lock
|
||||
#
|
||||
# $1 - type "p" or "s" (plugin or snippet)
|
||||
# $2 - mode - for plugin (light or load)
|
||||
# $3 - id - URL or plugin ID or alias name (from id-as'')
|
||||
.zinit-service() {
|
||||
zi::service() {
|
||||
builtin emulate -LR zsh ${=${options[xtrace]:#off}:+-o xtrace}
|
||||
setopt extendedglob warncreateglobal typesetsilent noshortloops
|
||||
|
||||
|
|
@ -55,10 +55,10 @@
|
|||
___lckd=1
|
||||
if (( ! ___strd )) || [[ $___cmd = RESTART ]]; then
|
||||
[[ $___tpe = p ]] && { ___strd=1
|
||||
.zinit-load "$___id" "" "$___mode" 0;
|
||||
zi::load "$___id" "" "$___mode" 0;
|
||||
}
|
||||
[[ $___tpe = s ]] && { ___strd=1
|
||||
.zinit-load-snippet "$___id" "" 0;
|
||||
zi::load-snippet "$___id" "" 0;
|
||||
}
|
||||
fi
|
||||
___cmd=
|
||||
|
|
@ -77,8 +77,8 @@
|
|||
done >>! "$ZSRV_WORK_DIR/$ZSRV_ID".log 2>&1
|
||||
} # ]]]
|
||||
|
||||
# FUNCTION: .zinit-wrap-track-functions [[[
|
||||
.zinit-wrap-track-functions() {
|
||||
# FUNCTION: zi::wrap-track-functions [[[
|
||||
zi::wrap-track-functions() {
|
||||
local user="$1" plugin="$2" id_as="$3" f
|
||||
local -a wt
|
||||
wt=( ${(@s.;.)ICE[wrap-track]} )
|
||||
|
|
@ -87,14 +87,14 @@
|
|||
eval "
|
||||
function $f {
|
||||
ZINIT[CUR_USR]=\"$user\" ZINIT[CUR_PLUGIN]=\"$plugin\" ZINIT[CUR_USPL2]=\"$id_as\"
|
||||
.zinit-add-report \"\${ZINIT[CUR_USPL2]}\" \"Note: === Starting to track function: $f ===\"
|
||||
.zinit-diff \"\${ZINIT[CUR_USPL2]}\" begin
|
||||
.zinit-tmp-subst-on load
|
||||
zi::add-report \"\${ZINIT[CUR_USPL2]}\" \"Note: === Starting to track function: $f ===\"
|
||||
zi::diff \"\${ZINIT[CUR_USPL2]}\" begin
|
||||
zi::tmp-subst-on load
|
||||
functions[${f}]=\${functions[${f}-zinit-bkp]}
|
||||
${f} \"\$@\"
|
||||
.zinit-tmp-subst-off load
|
||||
.zinit-diff \"\${ZINIT[CUR_USPL2]}\" end
|
||||
.zinit-add-report \"\${ZINIT[CUR_USPL2]}\" \"Note: === Ended tracking function: $f ===\"
|
||||
zi::tmp-subst-off load
|
||||
zi::diff \"\${ZINIT[CUR_USPL2]}\" end
|
||||
zi::add-report \"\${ZINIT[CUR_USPL2]}\" \"Note: === Ended tracking function: $f ===\"
|
||||
ZINIT[CUR_USR]= ZINIT[CUR_PLUGIN]= ZINIT[CUR_USPL2]=
|
||||
}"
|
||||
done
|
||||
|
|
@ -104,45 +104,45 @@ function $f {
|
|||
# Dtrace
|
||||
#
|
||||
|
||||
# FUNCTION: .zinit-debug-start [[[
|
||||
# FUNCTION: zi::debug-start [[[
|
||||
# Starts Dtrace, i.e. session tracking for changes in Zsh state.
|
||||
.zinit-debug-start() {
|
||||
zi::debug-start() {
|
||||
if [[ ${ZINIT[DTRACE]} = 1 ]]; then
|
||||
+zinit-message "{error}Dtrace is already active, stop it first with \`dstop'{rst}"
|
||||
+zi::message "{error}Dtrace is already active, stop it first with \`dstop'{rst}"
|
||||
return 1
|
||||
fi
|
||||
|
||||
ZINIT[DTRACE]=1
|
||||
|
||||
.zinit-diff _dtrace/_dtrace begin
|
||||
zi::diff _dtrace/_dtrace begin
|
||||
|
||||
# Full shadeing on
|
||||
.zinit-tmp-subst-on dtrace
|
||||
zi::tmp-subst-on dtrace
|
||||
} # ]]]
|
||||
# FUNCTION: .zinit-debug-stop [[[
|
||||
# FUNCTION: zi::debug-stop [[[
|
||||
# Stops Dtrace (i.e., session tracking for changes in Zsh state).
|
||||
.zinit-debug-stop() {
|
||||
zi::debug-stop() {
|
||||
ZINIT[DTRACE]=0
|
||||
|
||||
# Shadowing fully off
|
||||
.zinit-tmp-subst-off dtrace
|
||||
zi::tmp-subst-off dtrace
|
||||
|
||||
# Gather end data now, for diffing later
|
||||
.zinit-diff _dtrace/_dtrace end
|
||||
zi::diff _dtrace/_dtrace end
|
||||
} # ]]]
|
||||
# FUNCTION: .zinit-clear-debug-report [[[
|
||||
# FUNCTION: zi::clear-debug-report [[[
|
||||
# Forgets dtrace repport gathered up to this moment.
|
||||
.zinit-clear-debug-report() {
|
||||
.zinit-clear-report-for _dtrace/_dtrace
|
||||
zi::clear-debug-report() {
|
||||
zi::clear-report-for _dtrace/_dtrace
|
||||
} # ]]]
|
||||
# FUNCTION: .zinit-debug-unload [[[
|
||||
# FUNCTION: zi::debug-unload [[[
|
||||
# Reverts changes detected by dtrace run.
|
||||
.zinit-debug-unload() {
|
||||
(( ${+functions[.zinit-unload]} )) || builtin source "${ZINIT[BIN_DIR]}/zinit-autoload.zsh" || return 1
|
||||
zi::debug-unload() {
|
||||
(( ${+functions[zi::unload]} )) || builtin source "${ZINIT[BIN_DIR]}/zinit-autoload.zsh" || return 1
|
||||
if [[ ${ZINIT[DTRACE]} = 1 ]]; then
|
||||
+zinit-message "{error}Dtrace is still active, stop it first with \`dstop'{rst}"
|
||||
+zi::message "{error}Dtrace is still active, stop it first with \`dstop'{rst}"
|
||||
else
|
||||
.zinit-unload _dtrace _dtrace
|
||||
zi::unload _dtrace _dtrace
|
||||
fi
|
||||
} # ]]]
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -3,7 +3,7 @@
|
|||
# Copyright (c) 2016-2020 Sebastian Gniazdowski and contributors
|
||||
# Copyright (c) 2021-2022 zdharma-continuum and contributors
|
||||
|
||||
# FUNCTION: .zinit-any-colorify-as-uspl2 [[[
|
||||
# FUNCTION: zi::any-colorify-as-uspl2 [[[
|
||||
# Returns ANSI-colorified "user/plugin" string, from any supported
|
||||
# plugin spec (user---plugin, user/plugin, user plugin, plugin).
|
||||
#
|
||||
|
|
@ -11,11 +11,11 @@
|
|||
# $2 - plugin (only when $1 - i.e. user - given)
|
||||
#
|
||||
# $REPLY - ANSI-colorified "user/plugin" string
|
||||
.zinit-any-colorify-as-uspl2() {
|
||||
.zinit-any-to-user-plugin "$1" "$2"
|
||||
zi::any-colorify-as-uspl2() {
|
||||
zi::any-to-user-plugin "$1" "$2"
|
||||
local user="${reply[-2]}" plugin="${reply[-1]}"
|
||||
if [[ "$user" = "%" ]]; then
|
||||
.zinit-any-to-pid "" $plugin
|
||||
zi::any-to-pid "" $plugin
|
||||
REPLY="${REPLY/https--github.com--(robbyrussell--oh-my-zsh|ohmyzsh--ohmyzsh)--trunk--plugins--/OMZP::}"
|
||||
REPLY="${REPLY/https--github.com--(robbyrussell--oh-my-zsh|ohmyzsh--ohmyzsh)--trunk--plugins/OMZP}"
|
||||
REPLY="${REPLY/https--github.com--(robbyrussell--oh-my-zsh|ohmyzsh--ohmyzsh)--trunk--lib--/OMZL::}"
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
REPLY="${user:+${ZINIT[col-uname]}${user}${ZINIT[col-rst]}/}${ZINIT[col-pname]}${plugin}${ZINIT[col-rst]}"
|
||||
fi
|
||||
} # ]]]
|
||||
# FUNCTION: .zinit-compute-ice [[[
|
||||
# FUNCTION: zi::compute-ice [[[
|
||||
# Computes ICE array
|
||||
# - input
|
||||
# - static
|
||||
|
|
@ -55,14 +55,14 @@
|
|||
# $6 - name of output string parameter, to hold is-snippet 0/1-bool ("is_snippet")
|
||||
#
|
||||
# $REPLY - snippet directory filepath
|
||||
.zinit-compute-ice() {
|
||||
zi::compute-ice() {
|
||||
builtin emulate -LR zsh ${=${options[xtrace]:#off}:+-o xtrace}
|
||||
setopt extendedglob typesetsilent warncreateglobal noshortloops
|
||||
|
||||
local ___URL="${1%/}" ___pack="$2" ___is_snippet=0
|
||||
local ___var_name1="${3:-ZINIT_ICE}" ___var_name2="${4:-local_dir}" ___var_name3="${5:-filename}" ___var_name4="${6:-is_snippet}"
|
||||
|
||||
# Copy from .zinit-recall
|
||||
# Copy from zi::recall
|
||||
local -a ice_order nval_ices
|
||||
ice_order=(
|
||||
${(s.|.)ZINIT[ice-list]}
|
||||
|
|
@ -81,21 +81,21 @@
|
|||
___URL="${${___URL#"${___URL%%[! $'\t']*}"}%/}"
|
||||
|
||||
# snippet
|
||||
.zinit-two-paths "$___URL"
|
||||
zi::two-paths "$___URL"
|
||||
local ___s_path="${reply[-4]}" ___s_svn="${reply[-3]}" ___path="${reply[-2]}" ___filename="${reply[-1]}" ___local_dir
|
||||
|
||||
if [[ -d "$___s_path" || -d "$___path" ]]; then
|
||||
___is_snippet=1
|
||||
else
|
||||
# plugin
|
||||
.zinit-any-to-user-plugin "$___URL" ""
|
||||
zi::any-to-user-plugin "$___URL" ""
|
||||
local ___user="${reply[-2]}" ___plugin="${reply[-1]}"
|
||||
___s_path="" ___filename=""
|
||||
[[ "$___user" = "%" ]] && ___path="$___plugin" || ___path="${ZINIT[PLUGINS_DIR]}/${___user:+${___user}---}${___plugin//\//---}"
|
||||
.zinit-exists-physically-message "$___user" "$___plugin" || return 1
|
||||
zi::exists-physically-message "$___user" "$___plugin" || return 1
|
||||
fi
|
||||
|
||||
[[ $___pack = pack* ]] && (( ${#ICE} > 0 )) && .zinit-pack-ice "${___user-$___URL}" "$___plugin"
|
||||
[[ $___pack = pack* ]] && (( ${#ICE} > 0 )) && zi::pack-ice "${___user-$___URL}" "$___plugin"
|
||||
|
||||
local -A ___sice
|
||||
local -a ___tmp
|
||||
|
|
@ -191,15 +191,15 @@
|
|||
|
||||
return 0
|
||||
} # ]]]
|
||||
# FUNCTION: .zinit-countdown [[[
|
||||
# FUNCTION: zi::countdown [[[
|
||||
# Displays a countdown 5...4... etc.
|
||||
#
|
||||
# $REPLY - 1 if Ctrl-C is pressed, otherwise 0
|
||||
.zinit-countdown() {
|
||||
zi::countdown() {
|
||||
(( !${+ICE[countdown]} )) && return 0
|
||||
|
||||
builtin emulate -L zsh -o extendedglob ${=${options[xtrace]:#off}:+-o xtrace}
|
||||
trap "+zinit-message \"{ehi}ABORTING, the ice {ice}$ice{ehi} not ran{rst}\"; return 1" INT
|
||||
trap "+zi::message \"{ehi}ABORTING, the ice {ice}$ice{ehi} not ran{rst}\"; return 1" INT
|
||||
|
||||
local count=5 ice tpe="$1"
|
||||
|
||||
|
|
@ -207,23 +207,23 @@
|
|||
[[ $tpe = "atpull" && $ice = "%atclone" ]] && ice="${ICE[atclone]}"
|
||||
ice="{b}{ice}$tpe{ehi}:{rst}${ice//(#b)(\{[a-z0-9…–_-]##\})/\\$match[1]}"
|
||||
|
||||
+zinit-message -n "{hi}Running $ice{rst}{hi} ice in...{rst} "
|
||||
+zi::message -n "{hi}Running $ice{rst}{hi} ice in...{rst} "
|
||||
|
||||
while (( -- count + 1 )) {
|
||||
+zinit-message -n -- "{b}{error}"$(( count + 1 ))"{rst}{…}"
|
||||
+zi::message -n -- "{b}{error}"$(( count + 1 ))"{rst}{…}"
|
||||
sleep 1
|
||||
}
|
||||
|
||||
+zinit-message -r -- "{b}{error}0 <running now>{rst}{…}"
|
||||
+zi::message -r -- "{b}{error}0 <running now>{rst}{…}"
|
||||
return 0
|
||||
} # ]]]
|
||||
# FUNCTION: .zinit-exists-physically [[[
|
||||
# FUNCTION: zi::exists-physically [[[
|
||||
# Checks if directory of given plugin exists in PLUGIN_DIR.
|
||||
#
|
||||
# $1 - plugin spec (4 formats: user---plugin, user/plugin, user, plugin)
|
||||
# $2 - plugin (only when $1 - i.e. user - given)
|
||||
.zinit-exists-physically() {
|
||||
.zinit-any-to-user-plugin "$1" "$2"
|
||||
zi::exists-physically() {
|
||||
zi::any-to-user-plugin "$1" "$2"
|
||||
if [[ ${reply[-2]} = % ]]; then
|
||||
[[ -d ${reply[-1]} ]] && return 0 || return 1
|
||||
else
|
||||
|
|
@ -232,19 +232,19 @@
|
|||
|| return 1
|
||||
fi
|
||||
} # ]]]
|
||||
# FUNCTION: .zinit-exists-physically-message [[[
|
||||
# FUNCTION: zi::exists-physically-message [[[
|
||||
# Checks if directory of given plugin exists in PLUGIN_DIR, and outputs error
|
||||
# message if it doesn't.
|
||||
#
|
||||
# $1 - plugin spec (4 formats: user---plugin, user/plugin, user, plugin)
|
||||
# $2 - plugin (only when $1 - i.e. user - given)
|
||||
.zinit-exists-physically-message() {
|
||||
zi::exists-physically-message() {
|
||||
builtin emulate -LR zsh ${=${options[xtrace]:#off}:+-o xtrace}
|
||||
builtin setopt extendedglob warncreateglobal typesetsilent noshortloops rcquotes
|
||||
if ! .zinit-exists-physically "$1" "$2"; then
|
||||
.zinit-any-to-user-plugin "$1" "$2"
|
||||
if ! zi::exists-physically "$1" "$2"; then
|
||||
zi::any-to-user-plugin "$1" "$2"
|
||||
if [[ $reply[1] = % ]]; then
|
||||
.zinit-any-to-pid "$1" "$2"
|
||||
zi::any-to-pid "$1" "$2"
|
||||
local spec1=$REPLY
|
||||
if [[ $1 = %* ]]; then
|
||||
local spec2=%${1#%}${${1#%}:+${2:+/}}$2
|
||||
|
|
@ -254,32 +254,32 @@
|
|||
else
|
||||
integer nospec=1
|
||||
fi
|
||||
.zinit-any-colorify-as-uspl2 "$1" "$2"
|
||||
zi::any-colorify-as-uspl2 "$1" "$2"
|
||||
|
||||
+zinit-message "{error}No such (plugin or snippet){rst}: $REPLY."
|
||||
+zi::message "{error}No such (plugin or snippet){rst}: $REPLY."
|
||||
|
||||
[[ $nospec -eq 0 && $spec1 != $spec2 ]] \
|
||||
&& +zinit-message "(expands to: {file}${spec2#%}{rst})."
|
||||
&& +zi::message "(expands to: {file}${spec2#%}{rst})."
|
||||
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
} # ]]]
|
||||
# FUNCTION: .zinit-first [[[
|
||||
# FUNCTION: zi::first [[[
|
||||
# Finds the main file of plugin. There are multiple file name formats, they are
|
||||
# ordered in order starting from more correct ones, and matched.
|
||||
# .zinit-load-plugin() has similar code parts and doesn't call .zinit-first() –
|
||||
# for performance. Obscure matching is done in .zinit-find-other-matches, here
|
||||
# and in .zinit-load(). Obscure = non-standard main-file naming convention.
|
||||
# zi::load-plugin() has similar code parts and doesn't call zi::first() –
|
||||
# for performance. Obscure matching is done in zi::find-other-matches, here
|
||||
# and in zi::load(). Obscure = non-standard main-file naming convention.
|
||||
#
|
||||
# $1 - plugin spec (4 formats: user---plugin, user/plugin, user, plugin)
|
||||
# $2 - plugin (only when $1 - i.e. user - given)
|
||||
.zinit-first() {
|
||||
.zinit-any-to-user-plugin "$1" "$2"
|
||||
zi::first() {
|
||||
zi::any-to-user-plugin "$1" "$2"
|
||||
local user="${reply[-2]}" plugin="${reply[-1]}"
|
||||
|
||||
.zinit-any-to-pid "$1" "$2"
|
||||
.zinit-get-object-path plugin "$REPLY"
|
||||
zi::any-to-pid "$1" "$2"
|
||||
zi::get-object-path plugin "$REPLY"
|
||||
integer ret=$?
|
||||
local dname="$REPLY"
|
||||
(( ret )) && { reply=( "$dname" "" ); return 1; }
|
||||
|
|
@ -289,7 +289,7 @@
|
|||
if [[ -e "$dname/$plugin.plugin.zsh" ]]; then
|
||||
reply=( "$dname/$plugin.plugin.zsh" )
|
||||
else
|
||||
.zinit-find-other-matches "$dname" "$plugin"
|
||||
zi::find-other-matches "$dname" "$plugin"
|
||||
fi
|
||||
|
||||
if [[ "${#reply}" -eq "0" ]]; then
|
||||
|
|
@ -301,7 +301,7 @@
|
|||
reply=( "$dname" "${reply[-${#reply}]}" )
|
||||
return 0
|
||||
} # ]]]
|
||||
# FUNCTION: .zinit-store-ices [[[
|
||||
# FUNCTION: zi::store-ices [[[
|
||||
# Saves ice mods in given hash onto disk.
|
||||
#
|
||||
# $1 - directory where to create or delete files
|
||||
|
|
@ -310,7 +310,7 @@
|
|||
# $4 - additional keys of hash to store, empty-meaningful ices, space separated
|
||||
# $5 – URL, if applicable
|
||||
# $6 – mode, svn=1, 0=single file
|
||||
.zinit-store-ices() {
|
||||
zi::store-ices() {
|
||||
local ___pfx="$1" ___ice_var="$2" ___add_ices="$3" ___add_ices2="$4"
|
||||
local url="$5" mode="$6"
|
||||
|
||||
|
|
@ -353,13 +353,13 @@
|
|||
[[ -n "${(P)___key}" ]] && builtin print -r -- "${(P)___key}" >! "$___pfx"/"$___key"
|
||||
done
|
||||
} # ]]]
|
||||
# FUNCTION: .zinit-two-paths [[[
|
||||
# FUNCTION: zi::two-paths [[[
|
||||
# Obtains a snippet URL without specification if it is an SVN URL (points to
|
||||
# directory) or regular URL (points to file), returns 2 possible paths for
|
||||
# further examination
|
||||
#
|
||||
# $REPLY - two filepaths
|
||||
.zinit-two-paths() {
|
||||
zi::two-paths() {
|
||||
builtin emulate -LR zsh ${=${options[xtrace]:#off}:+-o xtrace}
|
||||
setopt extendedglob typesetsilent warncreateglobal noshortloops
|
||||
|
||||
|
|
@ -371,16 +371,16 @@
|
|||
url1=$url
|
||||
url2=$url
|
||||
|
||||
.zinit-get-object-path snippet "$url1"
|
||||
zi::get-object-path snippet "$url1"
|
||||
local_dirA=$reply[-3] dirnameA=$reply[-2]
|
||||
[[ -d "$local_dirA/$dirnameA/.svn" ]] && {
|
||||
svn_dirA=".svn"
|
||||
if { .zinit-first % "$local_dirA/$dirnameA"; } {
|
||||
if { zi::first % "$local_dirA/$dirnameA"; } {
|
||||
fileB_there=( ${reply[-1]} )
|
||||
}
|
||||
}
|
||||
|
||||
.zinit-get-object-path snippet "$url2"
|
||||
zi::get-object-path snippet "$url2"
|
||||
local_dirB=$reply[-3] dirnameB=$reply[-2]
|
||||
|
||||
[[ -z $svn_dirA ]] && fileB_there=( "$local_dirB/$dirnameB"/*~*.(zwc|md|js|html)(.-DOnN[1]) )
|
||||
|
|
|
|||
Loading…
Reference in a new issue