Compare commits

...

3521 commits
v1.61 ... main

Author SHA1 Message Date
dependabot[bot] 1eae28dfb5
build(deps): bump Homebrew/actions/setup-homebrew from 2026.08.24.1 to 2026.09.07.1 (#819)
Some checks failed
lint / commit convention (push) Failing after 0s
Container images / build-containers-with-zsh (5.8) (push) Has been cancelled
Container images / build-containers-with-zsh (5.9) (push) Has been cancelled
Container images / build-container-latest (push) Has been cancelled
lint / markdown (push) Has been cancelled
lint / zsh (noexec) (push) Has been cancelled
lint / zsh (zcompile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, --slice, gh-r) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, --slice, plugins) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, annexes) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, commands) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, compile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, config-zstyle) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, hook-handler) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, ice-validation) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, ices) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, snippets) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, --slice, gh-r) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, --slice, plugins) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, annexes) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, commands) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, compile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, config-zstyle) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, hook-handler) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, ice-validation) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, ices) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, snippets) (push) Has been cancelled
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-08 23:05:03 +02:00
Vladislav Doster db9e267184 release: v3.16.0 → v3.17.0
Some checks failed
lint / commit convention (push) Failing after 0s
Container images / build-containers-with-zsh (5.8) (push) Has been cancelled
Container images / build-containers-with-zsh (5.9) (push) Has been cancelled
Container images / build-container-latest (push) Has been cancelled
Documentation / zshelldoc (push) Has been cancelled
lint / markdown (push) Has been cancelled
lint / zsh (noexec) (push) Has been cancelled
lint / zsh (zcompile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, --slice, gh-r) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, --slice, plugins) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, annexes) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, commands) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, compile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, config-zstyle) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, hook-handler) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, ice-validation) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, ices) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, snippets) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, --slice, plugins) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, annexes) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, commands) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, compile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, config-zstyle) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, hook-handler) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, ice-validation) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, ices) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, snippets) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, --slice, gh-r) (push) Has been cancelled
# [3.17.0](https://github.com/zdharma-continuum/zinit/compare/v3.16.0...v3.17.0) (2026-09-02)

### Features

* **ziextract:** support zst archive format ([b8855c7](b8855c7887))
2026-09-02 08:54:53 +00:00
vladislav doster ce9bdf9990
Merge pull request #818 from zdharma-continuum/fear/support-zst-archives
feat(ziextract): support zst archive format
2026-09-02 03:53:13 -05:00
Vladislav Doster b8855c7887 feat(ziextract): support zst archive format
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-09-01 17:22:49 -05:00
Vladislav Doster 98bcb79c3d release: v3.15.3 → v3.16.0
Some checks failed
lint / commit convention (push) Failing after 0s
lint / markdown (push) Has been cancelled
Container images / build-containers-with-zsh (5.8) (push) Has been cancelled
Container images / build-containers-with-zsh (5.9) (push) Has been cancelled
lint / zsh (noexec) (push) Has been cancelled
Container images / build-container-latest (push) Has been cancelled
Documentation / zshelldoc (push) Has been cancelled
lint / zsh (zcompile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, --slice, gh-r) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, --slice, plugins) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, annexes) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, commands) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, compile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, config-zstyle) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, hook-handler) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, ice-validation) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, ices) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, snippets) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, --slice, gh-r) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, --slice, plugins) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, annexes) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, commands) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, compile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, config-zstyle) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, hook-handler) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, ice-validation) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, ices) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, snippets) (push) Has been cancelled
# [3.16.0](https://github.com/zdharma-continuum/zinit/compare/v3.15.3...v3.16.0) (2026-08-31)

### Bug Fixes

* **self-update:** honor -q in changelog display ([a85e9dc](a85e9dcc3e))

### Features

* **self-update:** support -n/--no-pager ([cc3baf3](cc3baf395f)), closes [#632](https://github.com/zdharma-continuum/zinit/issues/632)
2026-08-31 22:05:56 +00:00
vladislav doster a8bc3d0cf6
Merge pull request #815 from zdharma-continuum/feat/self-update-no-pager
feat(self-update): support `-n`/`--no-pager`
2026-08-31 17:03:49 -05:00
Vladislav Doster fdcbb25688 docs(readme): document self-update --no-pager
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-31 15:50:14 -05:00
Vladislav Doster 8197f3215b test(commands): cover self-update pager flags
The fixture leaves the sandbox clone one commit behind a scratch bare
upstream built with git commit-tree from HEAD's own tree, so the
fast-forward pull moves only the branch pointer: the unstaged diff the
bootstrap applies stays intact and nothing needs restoring when an
assertion aborts a test. Works offline and on detached-HEAD checkouts
(CI pull_request) alike; a less() shadow function detects pager
invocation, and ambient pull.rebase/autostash settings are pinned off
in the clone so the pull output is stable across machines.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-31 15:50:14 -05:00
Vladislav Doster a85e9dcc3e fix(self-update): honor -q in changelog display
When the checkout is behind upstream, the commit-log display piped
through .zinit-pager unconditionally, so self-update -q (and the quiet
.zinit-self-update call made by update --all) could hang in less until
dismissed. Skip the display, munging included, under --quiet.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-31 15:50:14 -05:00
Vladislav Doster cc3baf395f feat(self-update): support -n/--no-pager
Issue #632: the pager machinery already recognized -n/--no-pager
globally and .zinit-pager already honors OPTS[opt_-n,--no-pager], but
self-update rejected the flag with "Incorrect options given". Allow it
so the commit list can be printed straight to the terminal; help and
error output pick the flag up automatically from the option map. Also
offer the flag in the _zinit completion.

Closes #632

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-31 15:50:14 -05:00
Vladislav Doster 9a2898ba2a release: v3.15.2 → v3.15.3
Some checks failed
lint / commit convention (push) Failing after 0s
Container images / build-containers-with-zsh (5.9) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, --slice, plugins) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, annexes) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, commands) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, compile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, config-zstyle) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, hook-handler) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, ice-validation) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, ices) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, snippets) (push) Has been cancelled
Container images / build-containers-with-zsh (5.8) (push) Has been cancelled
Container images / build-container-latest (push) Has been cancelled
Documentation / zshelldoc (push) Has been cancelled
lint / markdown (push) Has been cancelled
lint / zsh (noexec) (push) Has been cancelled
lint / zsh (zcompile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (macos, --slice, gh-r) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, --slice, gh-r) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, --slice, plugins) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, annexes) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, commands) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, compile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, config-zstyle) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, hook-handler) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, ice-validation) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, ices) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} | ${{ matrix.os }} (ubuntu, snippets) (push) Has been cancelled
## [3.15.3](https://github.com/zdharma-continuum/zinit/compare/v3.15.2...v3.15.3) (2026-08-28)

### Bug Fixes

* **install:** retry and auth github api downloads ([eaa1056](eaa1056699)), closes [#r](https://github.com/zdharma-continuum/zinit/issues/r)
2026-08-28 08:06:00 +00:00
GitHub Actions 37e90a099f docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-08-28 07:57:33 +00:00
vladislav doster 404c0197fa
Merge pull request #814 from zdharma-continuum/fix/gh-r-rate-limit
fix(install): retry and authenticate github api downloads
2026-08-28 02:54:49 -05:00
Vladislav Doster a3a6b5ae94 ci: pass $GITHUB_TOKEN to zunit test step
Raises the gh-r suite's GitHub API budget from the anonymous
60 requests/hour/IP to 1,000/hour, so release lookups no longer
depend on unauthenticated HTML scraping that gets throttled when
concurrent runs share runner egress IPs.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-28 02:53:53 -05:00
Vladislav Doster eaa1056699 fix(install): retry and auth github api downloads
.zinit-download-file-stdout made every request anonymously and gave
up on the first transient error. The gh-r test suite alone exceeds
GitHub's anonymous API limit of 60 requests/hour/IP, and racing CI
runs trip per-IP abuse throttling, failing whole zunit slices (run
33138613456: 28 failures, all rate-limited downloads).

Send Authorization from GITHUB_TOKEN/GH_TOKEN, strictly limited to
api.github.com so tokens never reach asset CDNs, mirrors, or snippet
hosts, and retry transient HTTP errors in curl and wget.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-28 02:53:53 -05:00
vladislav doster 63e5e9fac8
Merge pull request #813 from zdharma-continuum/ci-remove-sandbox-option-for-homebrew-action-in-tests-workflow
ci:  remove `sandbox`  option for homebrew action in tests workflow
2026-08-28 01:27:05 -05:00
vladislav doster dd076b86c1
ci: remove sandbox option for homebrew action in tests workflow 2026-08-28 01:24:51 -05:00
Vladislav Doster fd4a730727 release: v3.15.1 → v3.15.2
## [3.15.2](https://github.com/zdharma-continuum/zinit/compare/v3.15.1...v3.15.2) (2026-08-28)

### Bug Fixes

* **install:** treat non-archive single file gracefully in ziextract. ([981cb15](981cb1582e)), closes [#771](https://github.com/zdharma-continuum/zinit/issues/771) [#r](https://github.com/zdharma-continuum/zinit/issues/r) [Pre-#771](https://github.com/Pre-/issues/771)
2026-08-28 03:25:11 +00:00
vladislav doster 98b004ba5b
Merge pull request #787 from zdharma-continuum/fix/ziextract-install
fix(install): treat non-archive single file gracefully in ziextract.
2026-08-27 22:23:06 -05:00
Vladislav Doster aabc380881 test(ices): cover gh-r appimage bpick+mv recipe
End-to-end test for the ziextract non-archive fallback using
pkgforge-dev/ghostty-appimage: the downloaded AppImage is not an
archive, so it must be kept as a plain file, marked executable,
and renamed by the mv ice. Asserts on files only; the Linux-only
binary is never executed since CI also runs on macOS.

Closes: https://github.com/zdharma-continuum/zinit/issues/775
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 22:20:25 -05:00
Vladislav Doster 77eb3496b4 release: v3.15.0 → v3.15.1
## [3.15.1](https://github.com/zdharma-continuum/zinit/compare/v3.15.0...v3.15.1) (2026-08-27)

### Bug Fixes

* **ices:** expand the atinit'!' ice correctly ([ed80701](ed80701426))
* **ices:** restore $OLDPWD around plugin directory hooks ([712cac1](712cac1952))
* **ices:** restore cwd even when the ice body cds ([264526a](264526ab26))
* **install:** restore cwd after the configure hook ([d875651](d875651d59))
* **install:** restore cwd on early atclone return ([736403c](736403cb39))
2026-08-27 23:26:35 +00:00
vladislav doster 77691d46b1
Merge pull request #811 from zdharma-continuum/fix/oldpwd-leak
fix: prevent leaking or corrupting the `$OLDPWD` environment variable
2026-08-27 18:25:01 -05:00
Vladislav Doster 2e77713c8e test(ices): fix the completions-ignored assertion
is_not_value_in builds an associative array from its arguments, so it
died on an odd element count, which made the test depend on how many
completions earlier suites had installed. It also compared a bare name
against full paths, so it never caught a wrongly installed completion.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 04:30:41 -05:00
Vladislav Doster c08a363b07 test(ices): extract the cwd assertion helper
Eight tests repeated the same four-line block asserting PWD, OLDPWD and
where cd - lands. Move it beside _oldpwd_fixture in @setup and drop the
comment paragraphs that restate the traps documented in tests/CLAUDE.md.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 04:30:41 -05:00
Vladislav Doster 4819677018 refactor(ices): simplify the cwd helpers
Drop the anonymous-function indirection in .zinit-cd-quiet and pass --,
collapse the duplicated landing cd in .zinit-restore-dir, and convert the
six remaining hand-rolled copies of the idiom in zinit-install.zsh to the
named helper.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 04:30:41 -05:00
Vladislav Doster 736403cb39 fix(install): restore cwd on early atclone return
atclone evals inline, unlike the atpull hooks, which go through
.zinit-at-eval and get a function frame that absorbs a return from the
ice body. Wrap the eval so the restore runs on every path.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 04:30:41 -05:00
Vladislav Doster ed80701426 fix(ices): expand the atinit'!' ice correctly
${ICE[atinit#!]} subscripts a literal "atinit#!" key and expands to
nothing, so atinit'!...' never ran for as"command" plugins.
${ICE[atinit]#1} stripped a leading "1" instead of "!", leaving the bang
in the evaluated code. Both now strip the prefix they meant to.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 04:30:41 -05:00
Vladislav Doster 264526ab26 fix(ices): restore cwd even when the ice body cds
The ___moved guard skipped the restore whenever zinit did not cd
itself, so an ice body that cds under nocd stranded the shell wherever
the plugin left it. Make the restore unconditional and give
.zinit-restore-dir a fast path so the case where nothing moved stays
free.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 04:30:41 -05:00
Vladislav Doster 08530de87c test(hook-handler): pin $HOME to the sandbox
The second test runs `zsh -c', which sources $HOME/.zshenv, so the
developer's own rc file would otherwise leak into $output and $state.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 04:30:33 -05:00
Vladislav Doster a1cf6128c2 test: pin core.eol=lf for the test environment
With the text attribute set, core.autocrlf=false hands the decision to
core.eol, so a global core.eol=crlf still produces CRLF checkouts in the
sandbox clones.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 03:29:50 -05:00
Vladislav Doster 8f4e888328 ci: add hook-handler and ice-validation to matrix
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 03:28:26 -05:00
Vladislav Doster a4c01374a9 build: use text=auto for the default attribute
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 03:28:26 -05:00
Vladislav Doster 4d98cd4563 test(ice-validation): fix two assertions that could not hold
wait-invalid-suffix-x asserted on 'Expected one of: a, b, c', but
+zi-log colourises each suffix letter separately, so the raw output
carries escape sequences between them and no such contiguous substring
exists. Strip the escapes before asserting on the sentence.

for-invalid-as asserted rc 0 while the load ran on to
∞zinit-compile-plugin-hook, which returns 1 for this fixture ("No files
for compilation found") and made `zinit for' exit 1 for a reason
unrelated to the invalid ice under test. Add nocompile so the test
measures ice validation only.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 03:28:26 -05:00
Vladislav Doster 116d30bfc8 test(hook-handler): stop re-sourcing zinit.zsh in @setup
@setup bodies run under ERR_EXIT. Sourcing zinit.zsh trips it partway
through, so the setup aborted and zunit reported both tests as failures
with an empty message -- which read as a broken assertion rather than a
broken fixture. The source was redundant anyway: the bootstrap already
sources zinit from the sandbox clone.

Drop the ZINIT[BIN_DIR]="$PWD" override with it. It aimed the tests at
the real checkout instead of the sandbox, the same misdirection that
lets a failed bootstrap write into the working tree. Neither test calls
a zinit function; only the hook registries are needed.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 03:28:26 -05:00
Vladislav Doster 8f01c1d451 test(ices): add $OLDPWD regression coverage for ice loading
Covers atload, atinit and multisrc, the nocd branch, a since-deleted
$OLDPWD, an $OLDPWD that started unset, and the configure hook.

Each test asserts where `cd -' actually lands, not just the value of
$OLDPWD: `cd -' reads zsh's internal previous-directory state, so a
parameter-only assertion passes against a fix that merely assigns
$OLDPWD while leaving the bug in place. All seven fail without the
preceding two commits.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 03:28:26 -05:00
Vladislav Doster d875651d59 fix(install): restore cwd after the configure hook
∞zinit-configure-base-hook cd'd into the plugin directory inside a plain
{ } block -- not a subshell -- and every one of its four return paths
left the shell parked there. A `zinit update' on a plugin using the
configure ice moved the user's shell and never moved it back.

Wrap the block in an always clause so the directory is restored on all
paths, and use .zinit-cd-quiet instead of a bare `cd --', which was also
firing chpwd hooks and AUTO_PUSHD.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 03:28:26 -05:00
Vladislav Doster 712cac1952 fix(ices): restore $OLDPWD around plugin directory hooks
Every ice that runs code inside a plugin or snippet directory (atinit,
atload, multisrc, atclone, atpull, ps-on-unload) saved and restored $PWD
around the temporary cd, but never $OLDPWD. `cd -q' suppresses chpwd
hooks and `noautopushd' suppresses the directory stack, but neither
suppresses $OLDPWD, so the cd back left it pointing at the directory
just visited. Opening a new shell and pressing `cd -' jumped into a
zinit plugin directory without the user ever having gone there.

Add .zinit-cd-quiet/.zinit-restore-dir, which return to the original
$PWD by cd'ing through the original $OLDPWD for real. A plain $OLDPWD
assignment is not enough: `cd -' reads zsh's internal previous-directory
state, not the parameter, so assigning it leaves the parameter looking
correct while `cd -' still navigates to the plugin directory. When the
original $OLDPWD is empty or has since been deleted, bounce through
$PWD instead, which degrades `cd -' to a harmless no-op rather than
emitting an error and leaking the plugin directory anyway.

Also gate the restore on the cd having actually happened. It ran
unconditionally, so with the nocd ice -- where no cd takes place -- the
no-op cd back to $PWD still set OLDPWD=$PWD, silently discarding the
user's real previous directory.

Sites already protected by a real subshell, and the user-facing `zinit
cd' and `zinit create' commands that are meant to leave you in the
target directory, are left untouched.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-08-27 03:28:26 -05:00
dependabot[bot] 6842df0082
build(deps): bump Homebrew/actions/setup-homebrew from 2026.08.14.1 to 2026.08.24.1 (#809)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-26 08:45:36 +02:00
dependabot[bot] fc234da3ad
build(deps): bump Homebrew/actions/setup-homebrew from 2026.08.10.2 to 2026.08.14.1 (#807)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-18 09:09:14 +02:00
vladislav doster fb12fbc83a
Merge pull request #806 from zdharma-continuum/dependabot/github_actions/Homebrew/actions/setup-homebrew-2026.08.10.2
build(deps): bump Homebrew/actions/setup-homebrew from 2026.08.10.1 to 2026.08.10.2
2026-08-14 17:07:49 -05:00
dependabot[bot] 7d94266c9d
build(deps): bump Homebrew/actions/setup-homebrew
Bumps [Homebrew/actions/setup-homebrew](https://github.com/homebrew/actions) from 2026.08.10.1 to 2026.08.10.2.
- [Release notes](https://github.com/homebrew/actions/releases)
- [Changelog](https://github.com/Homebrew/actions/blob/main/release.test.mts)
- [Commits](c8707045cc...b35a29a0f8)

---
updated-dependencies:
- dependency-name: Homebrew/actions/setup-homebrew
  dependency-version: 2026.08.10.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-13 12:02:38 +00:00
dependabot[bot] 488b07e766
build(deps): bump EndBug/add-and-commit from 10 to 11 (#805)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-13 08:43:58 +02:00
dependabot[bot] feba951c29
build(deps): bump Homebrew/actions/setup-homebrew from 2026.08.03.2 to 2026.08.10.1 (#804)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-11 23:01:29 +02:00
dependabot[bot] 571722af95
build(deps): bump Homebrew/actions/setup-homebrew from 2026.07.20.1 to 2026.08.03.2 (#802)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-06 14:03:31 +02:00
dependabot[bot] ded3d6eef0
build(deps): bump Homebrew/actions/setup-homebrew from 2026.07.10.1 to 2026.07.20.1 (#798)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-28 07:00:23 +02:00
vladislav doster e4b5083c7c
Merge pull request #797 from zdharma-continuum/ci/lint-commit-message
ci(style): Add commit convention job to linting workflow
2026-07-25 15:33:07 -05:00
vladislav doster 41e55eb833
ci(style): Add commit convention job to linting workflow 2026-07-25 15:31:00 -05:00
vladislav doster 824e18d4b9
Merge pull request #796 from zdharma-continuum/ci/fix-tests
ci(tests): parallelize zunit runs and pin CI toolchain
2026-07-25 11:14:35 -05:00
vladislav doster 7e2bb9f826
ci: disable verbose output and parallel execution in zunit
Updated zunit configuration to disable verbose output and parallel execution.
2026-07-25 11:09:52 -05:00
vladislav doster 1bd68690d4
ci(tests): parallelize zunit runs and pin CI toolchain
- Check out zdharma-continuum/zunit at feat/run-tests-in-parallel-support and
  run the gh-r and plugins suites with --slice
- Pin Homebrew/actions/setup-homebrew to a commit SHA and enable its sandbox
- Drop ncurses from the brew install list, relink it explicitly, and add
  jemalloc; set HOMEBREW_NO_REQUIRE_TAP_TRUST
- Expand the OS matrix to "${os}-latest" and label jobs as "<test> | <os>"

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-07-25 10:45:26 -05:00
vladislav doster a7999260ea
Merge pull request #794 from zdharma-continuum/dependabot/github_actions/actions/labeler-7
build(deps): bump actions/labeler from 6 to 7
2026-07-21 20:43:57 -05:00
dependabot[bot] 66336e30f3
build(deps): bump actions/labeler from 6 to 7
Bumps [actions/labeler](https://github.com/actions/labeler) from 6 to 7.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](https://github.com/actions/labeler/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/labeler
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-21 12:02:31 +00:00
dependabot[bot] 9b7ffc15ad
build(deps): bump actions/setup-python from 6 to 7 (#793)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-20 14:03:28 +02:00
onice b1176045f9
docs: document compile execution order (#789) 2026-07-18 05:04:36 -05:00
dependabot[bot] e347224fb5
build(deps): bump actions/setup-node from 6 to 7 (#790)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-14 15:20:25 +02:00
vladislav doster 72452c99d5
Merge branch 'main' into fix/ziextract-install 2026-07-03 17:13:37 -05:00
dependabot[bot] fcd2501fa3
build(deps): bump dawidd6/action-homebrew-bump-formula from 7 to 8 (#788)
Some checks failed
Container images / build-containers-with-zsh (5.8) (push) Has been cancelled
Container images / build-containers-with-zsh (5.9) (push) Has been cancelled
Container images / build-container-latest (push) Has been cancelled
Documentation / zshelldoc (push) Has been cancelled
lint / markdown (push) Has been cancelled
lint / zsh (noexec) (push) Has been cancelled
lint / zsh (zcompile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (macos-latest, annexes) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (macos-latest, commands) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (macos-latest, compile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (macos-latest, config-zstyle) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (macos-latest, gh-r) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (macos-latest, ices) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (macos-latest, plugins) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (macos-latest, snippets) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (ubuntu-latest, annexes) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (ubuntu-latest, commands) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (ubuntu-latest, compile) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (ubuntu-latest, config-zstyle) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (ubuntu-latest, gh-r) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (ubuntu-latest, ices) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (ubuntu-latest, plugins) (push) Has been cancelled
tests / ${{ matrix.zunit_test }} (ubuntu-latest, snippets) (push) Has been cancelled
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-03 17:09:51 +02:00
Vladislav Doster 981cb1582e fix(install): treat non-archive single file gracefully in ziextract.
Change `ziextract` when no extractor case matches and no explicit type was passed (-z $ext), file is treated as plain single file with info message
`'<file>' is not an archive — keeping it as a plain file.` plus chmod a+x. The existing exec-bit collection then picks it up, sets REPLY for --move, prints normal
success. Error message retained for explicit bogus types (ziextract file bogus-type). One iteration mid-verify: dropped -- from chmod — BSD/macOS chmod rejects it (chmod: --:
No such file or directory).

Why it broke: commit 1334994f (PR #771) made +x detection archive-exec-bit-only. Bare gh-r binaries arrive over HTTP with 644 and no extension => no extractor, no exec bit →
error branch. Pre-#771, file(1) detection covered this case.

Tests (tests/ices.zunit): two new — plain-file success path (asserts no error, message present, file executable) and bogus-explicit-type error
retention. Suite 16/16, including #771's ziextract-permissions. Regression-validated: plain-file test fails 15/16 with fix stashed.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-07-02 06:58:41 -05:00
Vladislav Doster 429ab13631 release: v3.14.0 → v3.15.0
# [3.15.0](https://github.com/zdharma-continuum/zinit/compare/v3.14.0...v3.15.0) (2026-07-01)

### Bug Fixes

* .zi-check-for-git-changes runs git fetch before checking for changes ([1107460](1107460bcd))
* add markdownlint exceptions to linting ([507b4e5](507b4e5722))
* avoid apostrophe that breaks typeset -f round-trip of :zinit-tmp-subst-autoload ([#783](https://github.com/zdharma-continuum/zinit/issues/783)) ([d2d4237](d2d4237715))
* correct SSH URL format for private repos ([#721](https://github.com/zdharma-continuum/zinit/issues/721)) ([991e4a8](991e4a816e))
* corrected print-out message in self-update routine ([bb37f3b](bb37f3bbd8))
* impl gh-r version detection using GitHub API ([#731](https://github.com/zdharma-continuum/zinit/issues/731)) ([f1e503d](f1e503dc3b)), closes [#r](https://github.com/zdharma-continuum/zinit/issues/r)
* prevent "permission denied" errors from empty hook handlers ([#729](https://github.com/zdharma-continuum/zinit/issues/729)) ([2167408](2167408db2))
* prevent double extraction when exclamation mark modifier is used in extract'!' ([4fd38b3](4fd38b34e7)), closes [#r](https://github.com/zdharma-continuum/zinit/issues/r) [#r](https://github.com/zdharma-continuum/zinit/issues/r)
* remove `local -A OPTS` that shadows caller's parallel flag ([#774](https://github.com/zdharma-continuum/zinit/issues/774)) ([e88ed77](e88ed77319))
* resolve a bug where the `-q` option for quiet mode was never dispatched ([6cf2f29](6cf2f2990d))
* resolve a second issue where `git -C <path>` had to be used instead of `git --work-tree <path>` ([2e83176](2e83176b23))
* resolves a bug with github action trying to push updated docs back to external forks ([#763](https://github.com/zdharma-continuum/zinit/issues/763)) ([34a1811](34a18112e8))
* silenced `zinit self-update` when in quiet mode (`-q`) ([8d154b0](8d154b0609))
* trust archive permissions instead of `file(1)` heuristics in `ziextract` ([#771](https://github.com/zdharma-continuum/zinit/issues/771)) ([1334994](1334994f20))
* update `git-chglog` to `git-cliff` in gh-r tests ([18fc2cc](18fc2cc5b9)), closes [#r](https://github.com/zdharma-continuum/zinit/issues/r)
* Update various tools in gh-r tests ([#759](https://github.com/zdharma-continuum/zinit/issues/759)) ([01eb65f](01eb65f8ce)), closes [#r](https://github.com/zdharma-continuum/zinit/issues/r)

### Features

* validate ice arguments ([#778](https://github.com/zdharma-continuum/zinit/issues/778)) ([424b241](424b241bc7))
* **zsh:** allow configuring settings like HOME_DIR/BIN_DIR via zstyle ([8f89f88](8f89f88cfd))
2026-07-01 00:40:22 +00:00
vladislav doster fbf511804c
Merge pull request #785 from zdharma-continuum/worktree-agent-a8f829c0814f3ef51
feat(zsh): configure ZINIT settings (`HOME_DIR`, `BIN_DIR`, …) via zstyle
2026-06-30 19:38:55 -05:00
vladislav doster 66211de7a3
Merge branch 'main' into worktree-agent-a8f829c0814f3ef51 2026-06-26 21:50:33 -05:00
vladislav doster ed04c9cafe
Merge pull request #786 from zdharma-continuum/dependabot/github_actions/actions/checkout-7
build(deps): bump actions/checkout from 6 to 7
2026-06-19 12:10:17 -05:00
dependabot[bot] 0ab1ee4fb7
build(deps): bump actions/checkout from 6 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-19 12:02:28 +00:00
vladdoster 8f89f88cfd feat(zsh): allow configuring settings like HOME_DIR/BIN_DIR via zstyle
Resolve ZINIT[...] settings from `zstyle ':zinit:config' <attr>` before
the BIN_DIR/HOME_DIR/derived-dir logic runs. The attribute name is the
hash field lowercased with `_` replaced by `-` (HOME_DIR -> home-dir).

An explicitly-set ZINIT[KEY] always wins over zstyle, which wins over
the built-in default; fully backward-compatible.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-06-18 19:05:42 -05:00
Agusti F. d2d4237715
fix: avoid apostrophe that breaks typeset -f round-trip of :zinit-tmp-subst-autoload (#783) 2026-06-15 13:54:18 +02:00
Andrea Alberti c51a835a21
Document the e- / no-e- prefix on atpull hook-group names, and fix a mislabeled section header (#781) 2026-06-01 09:05:22 +02:00
Andrea Alberti 27a0dc5527
## Fix extract ice not working during zinit update for from'gh-r' (#780) 2026-05-30 22:39:06 +02:00
Andrea Alberti 17f2c4bc74
test: replace cog gh-r test with cosign
replicate/cog stopped shipping a static binary in its GitHub releases
(switched to a Python wheel coglet-*.whl as of v0.20.0), which broke the
linux gh-r CI job — ziextract cannot unpack a .whl, and the linked symlink
returns 'exec format error' when run.

Replace with sigstore/cosign, which still ships static binaries
(cosign-linux-amd64 / cosign-darwin-{amd64,arm64}) and slots into
the alphabetical position between 'checkmake' and 'compress'.
2026-05-30 18:42:00 +02:00
GitHub Actions 74173749a6 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-05-24 08:12:20 +00:00
Tom Hale 424b241bc7
feat: validate ice arguments (#778)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-24 10:09:43 +02:00
GitHub Actions 6c9ac1c4bc docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-03-24 07:52:22 +00:00
Pedro Pombeiro e88ed77319
fix: remove local -A OPTS that shadows caller's parallel flag (#774) 2026-03-24 08:49:40 +01:00
dependabot[bot] 61a0244bb4
build(deps): bump EndBug/add-and-commit from 9 to 10 (#773)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-23 22:21:42 +01:00
GitHub Actions f40d837148 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-03-14 22:42:14 +00:00
Andrea Alberti 1334994f20
fix: trust archive permissions instead of file(1) heuristics in ziextract (#771) 2026-03-14 23:39:35 +01:00
dependabot[bot] f82d91ccac
build(deps): bump docker/build-push-action from 6 to 7 (#770)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-07 09:55:12 +01:00
GitHub Actions 4b4845c3b0 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-03-06 00:29:07 +00:00
Andrea Alberti 807590f25e
Merge pull request #761 from alberti42/fix-extract
- Fix incorrect double extraction when `extract` ice is used with `from'gh-r'`
- Improved documentation of `extract` ice
- Added test units for `extract` ice
2026-03-06 01:26:23 +01:00
Andrea Alberti b4728b29f7
test: added tests for ice extract 2026-03-06 01:15:30 +01:00
Andrea Alberti 4205b399dd
docs: improve documentation of extract modifiers (their documentation was so far completely missing) 2026-03-06 01:15:30 +01:00
Andrea Alberti 4fd38b34e7
fix: prevent double extraction when exclamation mark modifier is used in extract'!'
When using extract'!' with from'gh-r', ziextract was called twice:
1. First by the gh-r download code (line 407) — extracting the archive directly
2. Then by the ∞zinit-extract-hook — calling ziextract --auto --move

On the second call, the .tar.gz was already gone, so --auto mode fell through to file-command detection, which identified .jar files as zip archives
and tried to extract them — corrupting the plugin and producing errors.

Fix: Both the gh-r download path (line 407) and the tarball path (line 272) now skip their direct ziextract call when the extract ice is set,
deferring entirely to the ∞zinit-extract-hook which handles it correctly.
2026-03-06 01:15:30 +01:00
Andrea Alberti d3458542c3
ci: temporary fix for bug with katex package referencing the missing build-time constant __VERSION__ (revert in future)
markdownlint-cli is now pinned to version 0.44.0; waiting for a
fix upstream https://github.com/igorshubovych/markdownlint-cli/issues/606.
When the fix is found, we should revert this commit back.
2026-03-06 01:14:44 +01:00
dependabot[bot] 1d893e53b2
build(deps): bump docker/setup-buildx-action from 3 to 4 (#769)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-05 16:44:40 +01:00
dependabot[bot] 3bdc6d264b
build(deps): bump docker/login-action from 3 to 4 (#768)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-05 08:46:30 +01:00
dependabot[bot] a1d8fc5a7e
build(deps): bump docker/setup-qemu-action from 3 to 4 (#767)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-05 08:43:27 +01:00
Andrea Alberti c2cc70a9a6
maint: disable installer workflow to prevent spurious "no jobs were run" emails 2026-03-03 10:35:39 +01:00
GitHub Actions 9cc86ae0a3 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-03-03 08:52:06 +00:00
Andrea Alberti 0984515471
Merge pull request #762 from alberti42/fix-self-update
This PR fixes several bugs in `.zi-check-for-git-changes()` that broke `zinit self-update`. Most importantly, it resolves a long-standing bug that prevented zinit self-update from ever detecting upstream changes, meaning every user who ran it would silently get "Already up to date." regardless of reality.
2026-03-03 09:49:28 +01:00
vladislav doster 91e8e6a65f
maint: remove duplicate .zinit-parse-opts call in self-update case block
- Removed since [`.zinit-parse-opts` is ran earlier](https://github.com/zdharma-continuum/zinit/pull/762/changes#diff-475a2f1e35813d9641ea77e854b9bf0d8c36b077bedbb6ae0bde1a0529dbbf0cR2634) in `zinit`
2026-03-03 09:22:24 +01:00
Andrea Alberti 1c0e24fca4
test: added tests for zinit self-update. Throw error if unsupported arguments are provided. 2026-03-03 09:22:24 +01:00
vladislav doster c68d4973a5
maint: update self-update zunit tests
- Add tests for `self-update` with `--help` and `--quiet` flags
- Update expected output with no flags
2026-03-03 09:22:24 +01:00
Andrea Alberti 81dd21f8d7
test: align self-update output expectation with grammatically corrected log message
Grammar correction suggested by @vladdoster.
2026-03-03 09:22:23 +01:00
Andrea Alberti c9045da63a
docs: added useful comment about silencing logs during bulk updates 2026-03-03 09:22:23 +01:00
Andrea Alberti 95ba7d1dd4
refactor: implemented parsing of options for self-update using .zinit-parse-opts; extended number of supports variants, options
Follows suggestions from https://github.com/zdharma-continuum/zinit/pull/762#pullrequestreview-3811990006

Co-authored-by: vladislav doster <mvdoster@gmail.com>
2026-03-03 09:22:19 +01:00
Andrea Alberti bb37f3bbd8
fix: corrected print-out message in self-update routine
Co-authored-by: vladislav doster <mvdoster@gmail.com>
2026-03-03 08:44:44 +01:00
Andrea Alberti 6cf2f2990d
fix: resolve a bug where the -q option for quiet mode was never dispatched 2026-03-03 08:44:44 +01:00
Andrea Alberti 8d154b0609
fix: silenced zinit self-update when in quiet mode (-q) 2026-03-03 08:44:44 +01:00
Andrea Alberti 2e83176b23
fix: resolve a second issue where git -C <path> had to be used instead of git --work-tree <path> 2026-03-03 08:44:44 +01:00
Andrea Alberti 1107460bcd
fix: .zi-check-for-git-changes runs git fetch before checking for changes
Bug description before the fix:

.zi-check-for-git-changes() checks if there are upstream changes by comparing HEAD...@{u}, but it does this without fetching first. It compares the local HEAD
against the locally cached upstream ref, which is stale until someone runs git fetch.

The flow:

1. .zi-check-for-git-changes runs git rev-list --left-right --count HEAD...@{u} — but @{u} refers to the local tracking ref (e.g.,
refs/remotes/origin/integrated), which hasn't been updated yet
2. Since no fetch has happened, the local tracking ref matches HEAD, so down is 0
3. The function prints "Already up-to-date." and returns 1 (no changes)
4. .zinit-self-update never enters the if block, so the git fetch + git pull on lines 2002-2024 never execute

The git fetch that would update the remote tracking refs is inside the block guarded by .zi-check-for-git-changes, so it could not be executed.
2026-03-03 08:44:44 +01:00
vladislav doster 87a8e6b0d6
ci: simplify workflow and job names (#765)
- rename lint jobs and update task matrix names
- rename labeler workflow and job
- rename zunit test workflow and job
2026-02-17 07:25:41 -06:00
vladislav doster f2985297a9
Merge pull request #764 from zdharma-continuum/vladdoster-patch-1
fix: update `git-chglog` to `git-cliff` in gh-r tests
2026-02-17 06:24:20 -06:00
vladislav doster 18fc2cc5b9
fix: update git-chglog to git-cliff in gh-r tests
git-chglog was archived and git-cliff  is actively maintained fork
2026-02-17 06:10:09 -06:00
Andrea Alberti 34a18112e8
fix: resolves a bug with github action trying to push updated docs back to external forks (#763) 2026-02-15 20:51:37 +01:00
vladislav doster 701657f71b
Merge pull request #760 from zdharma-continuum/ci/fix-linting
fix: add markdownlint exceptions to linting
2026-02-02 10:58:49 -06:00
Vladislav Doster 507b4e5722 fix: add markdownlint exceptions to linting
Disabled following checks:

- MD024/no-duplicate-heading
- MD059/descriptive-link-text
- MD060/table-column-style

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2026-02-02 10:50:22 -06:00
vladislav doster 01eb65f8ce
fix: Update various tools in gh-r tests (#759) 2026-02-01 09:43:27 +01:00
GitHub Actions 89e1858b72 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-01-03 13:41:34 +00:00
Andrea Alberti 55d19f86f6
Fix(self-update): Honor current branch instead of hardcoding 'main' (#751) 2026-01-03 14:38:58 +01:00
GitHub Actions c756fe2e71 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-01-01 11:41:35 +00:00
Andrea Alberti c720e72ee9
Feature: Add configurable non-interactive pager for updates (#753) 2026-01-01 12:39:01 +01:00
GitHub Actions 31a63c8cb5 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2026-01-01 11:17:04 +00:00
Andrea Alberti 893146b586
Refactor: Improve clarity and readability of run-atpull log message (#752) 2026-01-01 12:14:33 +01:00
dependabot[bot] f8fb19458a
build(deps): bump dawidd6/action-homebrew-bump-formula from 6 to 7 (#749)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-03 15:34:18 +01:00
dependabot[bot] 2c04ceb788
build(deps): bump actions/checkout from 5 to 6 (#748)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-21 13:54:18 +01:00
dependabot[bot] a42dba233d
build(deps): bump dawidd6/action-homebrew-bump-formula from 5 to 6 (#747)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-20 13:35:40 +01:00
dependabot[bot] d38a3cc4f3
build(deps): bump actions/setup-node from 5 to 6 (#744)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-14 14:33:59 +02:00
vladislav doster e250cd0b42
docs(HACKING.md): Iimprove formatting (#743) 2025-10-03 00:31:45 -05:00
vladislav doster 9f3703176a
docs(README.md): fix typos 2025-10-02 22:34:41 -05:00
GitHub Actions eb472d1fcf docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2025-09-10 07:30:16 +00:00
Douglas de Campos Held 5784ef17f4
Fix: Timeout on downloading from GH releases (#741) 2025-09-10 09:27:45 +02:00
GitHub Actions 84d21fb7f2 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2025-09-05 12:29:32 +00:00
Xie Zejian f1e503dc3b
fix: impl gh-r version detection using GitHub API (#731) 2025-09-05 14:27:03 +02:00
dependabot[bot] c6dd2a69c5
build(deps): bump actions/labeler from 5 to 6 (#740)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-05 14:03:39 +02:00
dependabot[bot] 342deb8a24
build(deps): bump actions/setup-node from 4 to 5 (#739)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-04 17:45:08 +02:00
dependabot[bot] c5b6c5e3e7
build(deps): bump actions/setup-python from 5 to 6 (#738)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-04 17:44:59 +02:00
GitHub Actions 04034e62f6 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2025-08-12 18:42:07 +00:00
Nick Sherron 2167408db2
fix: prevent "permission denied" errors from empty hook handlers (#729)
Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
2025-08-12 20:39:35 +02:00
dependabot[bot] c153788560
build(deps): bump actions/checkout from 4 to 5 (#730)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-12 20:36:52 +02:00
Junior Nascimento c84533b4ce
docs: Add async_prompt.zsh to OMZ theme migration guide (#727) 2025-07-23 10:46:11 +02:00
dependabot[bot] f38e079f67
build(deps): bump dawidd6/action-homebrew-bump-formula from 4 to 5 (#723)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-17 10:02:19 +02:00
Philipp Schmitt 2daaac2de2
Fix #719 (#722) 2025-06-07 15:22:07 +02:00
GitHub Actions 610551726b docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2025-06-05 09:56:18 +00:00
sienks 991e4a816e
fix: correct SSH URL format for private repos (#721)
Co-authored-by: sienks <sienks@sienk.dev>
2025-06-05 11:53:41 +02:00
GitHub Actions 9a3e5c9797 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2025-05-24 04:55:31 +00:00
Kartik Yadav 6a51ac7125
Changes to create $ZSH_CACHE_DIR/completions directory (#708) 2025-05-24 06:52:57 +02:00
Björn Richter 25c18b5b2a
docs: Add instructions for how to disable global compinit on NixOS (#717) 2025-04-25 21:47:14 +02:00
Philipp Schmitt 5c0c0454de
ci: disable container builds for old versions of zsh (#704)
Some checks failed
Container images / build-containers-with-zsh (5.8) (push) Has been cancelled
Container images / build-containers-with-zsh (5.9) (push) Has been cancelled
Container images / build-container-latest (push) Has been cancelled
Documentation / zshelldoc (push) Has been cancelled
Lint / Markdown Lint (push) Has been cancelled
Lint / ZSH Lint (zsh-noexec) (push) Has been cancelled
Lint / ZSH Lint (zsh-zcompile) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, annexes) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, commands) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, compile) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, gh-r) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, ices) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, plugins) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, snippets) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, annexes) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, commands) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, compile) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, gh-r) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, ices) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, plugins) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, snippets) (push) Has been cancelled
2025-02-18 17:57:53 +01:00
Philipp Schmitt 8a7257a8e5
installer: Set min zsh version to 5.8 (#696) 2025-02-18 17:51:33 +01:00
Philipp Schmitt 091ddfeee5
ci: disable navi gh-r test on mac os (#702) 2025-02-18 17:50:58 +01:00
Joseph Lee 3186c68346
fix completions in zinit update (#701) 2025-02-18 17:03:06 +01:00
NICHOLAS85 773852f588
fix: global variable in ∞zinit-file-cp-mv-operation (#699)
Some checks failed
Container images / build-containers-with-zsh (5.2.4) (push) Has been cancelled
Container images / build-containers-with-zsh (5.3.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.4.2) (push) Has been cancelled
Container images / build-containers-with-zsh (5.5.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.6.2) (push) Has been cancelled
Container images / build-containers-with-zsh (5.7.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.8) (push) Has been cancelled
Container images / build-containers-with-zsh (5.9) (push) Has been cancelled
Container images / build-container-latest (push) Has been cancelled
Documentation / zshelldoc (push) Has been cancelled
Lint / Markdown Lint (push) Has been cancelled
Lint / ZSH Lint (zsh-noexec) (push) Has been cancelled
Lint / ZSH Lint (zsh-zcompile) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, annexes) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, commands) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, compile) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, gh-r) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, ices) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, plugins) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, snippets) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, annexes) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, commands) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, compile) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, gh-r) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, ices) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, plugins) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, snippets) (push) Has been cancelled
2025-02-01 08:45:31 +01:00
Philipp Schmitt b096d6ef53
Fix tables in README
Some checks failed
Container images / build-containers-with-zsh (5.2.4) (push) Has been cancelled
Container images / build-containers-with-zsh (5.3.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.4.2) (push) Has been cancelled
Container images / build-containers-with-zsh (5.5.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.6.2) (push) Has been cancelled
Container images / build-containers-with-zsh (5.7.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.8) (push) Has been cancelled
Container images / build-containers-with-zsh (5.9) (push) Has been cancelled
Lint / Markdown Lint (push) Has been cancelled
Container images / build-container-latest (push) Has been cancelled
Documentation / zshelldoc (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, annexes) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, commands) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, compile) (push) Has been cancelled
Lint / ZSH Lint (zsh-noexec) (push) Has been cancelled
Lint / ZSH Lint (zsh-zcompile) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, gh-r) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, ices) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, plugins) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, snippets) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, annexes) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, commands) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, compile) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, gh-r) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, ices) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, plugins) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, snippets) (push) Has been cancelled
- Revert "lint: fmt README.md (#694)" (#695)
- Switch to markdownlint
- Fix markdown linting issues
2025-01-28 18:01:31 +01:00
Philipp Schmitt f654c77ef1
lint: fmt README.md (#694)
Some checks failed
Container images / build-container-latest (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, annexes) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, commands) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, compile) (push) Has been cancelled
Container images / build-containers-with-zsh (5.2.4) (push) Has been cancelled
Container images / build-containers-with-zsh (5.3.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.4.2) (push) Has been cancelled
Container images / build-containers-with-zsh (5.5.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.6.2) (push) Has been cancelled
Container images / build-containers-with-zsh (5.7.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.8) (push) Has been cancelled
Container images / build-containers-with-zsh (5.9) (push) Has been cancelled
Documentation / zshelldoc (push) Has been cancelled
Lint / Lint (markdown) (push) Has been cancelled
Lint / Lint (zsh-noexec) (push) Has been cancelled
Lint / Lint (zsh-zcompile) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, gh-r) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, ices) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, plugins) (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest, snippets) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, annexes) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, commands) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, compile) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, gh-r) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, ices) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, plugins) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest, snippets) (push) Has been cancelled
2025-01-26 10:14:29 +01:00
Philipp Schmitt c8246d7223
ci: Disable commit lint, and disable fail-fast for zunit tests (#693)
Some checks are pending
Container images / build-containers-with-zsh (5.2.4) (push) Waiting to run
Container images / build-containers-with-zsh (5.3.1) (push) Waiting to run
Container images / build-containers-with-zsh (5.4.2) (push) Waiting to run
Container images / build-containers-with-zsh (5.5.1) (push) Waiting to run
Container images / build-containers-with-zsh (5.6.2) (push) Waiting to run
Container images / build-containers-with-zsh (5.7.1) (push) Waiting to run
Container images / build-containers-with-zsh (5.8) (push) Waiting to run
Container images / build-containers-with-zsh (5.9) (push) Waiting to run
Container images / build-container-latest (push) Waiting to run
Documentation / zshelldoc (push) Waiting to run
Lint / Lint (push) Waiting to run
Unit Tests / zunit-tests (macos-latest, gh-r) (push) Waiting to run
Unit Tests / zunit-tests (macos-latest, ices) (push) Waiting to run
Unit Tests / zunit-tests (macos-latest, plugins) (push) Waiting to run
Unit Tests / zunit-tests (macos-latest, snippets) (push) Waiting to run
Unit Tests / zunit-tests (ubuntu-latest, annexes) (push) Waiting to run
Unit Tests / zunit-tests (ubuntu-latest, commands) (push) Waiting to run
Unit Tests / zunit-tests (ubuntu-latest, compile) (push) Waiting to run
Unit Tests / zunit-tests (ubuntu-latest, gh-r) (push) Waiting to run
Unit Tests / zunit-tests (ubuntu-latest, ices) (push) Waiting to run
Unit Tests / zunit-tests (ubuntu-latest, plugins) (push) Waiting to run
Unit Tests / zunit-tests (ubuntu-latest, snippets) (push) Waiting to run
Unit Tests / zunit-tests (macos-latest, annexes) (push) Waiting to run
Unit Tests / zunit-tests (macos-latest, commands) (push) Waiting to run
Unit Tests / zunit-tests (macos-latest, compile) (push) Waiting to run
2025-01-26 00:33:57 +01:00
GitHub Actions 0627eb4678 docs: generate
Signed-off-by: GitHub Actions <actions@github.com>
2025-01-25 23:32:25 +00:00
vladislav doster 947c1ba03d
feat: check for eza to use in $ZINIT[LIST_COMMAND] option (#636)
Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
Co-authored-by: HeroCC <HeroCC@users.noreply.github.com>
2025-01-26 00:18:35 +01:00
Philipp Schmitt 9cd774edbb
ci: Fix typo in ice zunit test for mv (#692) 2025-01-26 00:16:24 +01:00
Andrea Alberti e5fe687489
Allows the user to provide multiple files in the cp / mv ICE separated by ; (#690)
Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
2025-01-26 00:15:44 +01:00
Philipp Schmitt 50643c6e6e
fix: gh-r zunit tests (#691) 2025-01-26 00:01:13 +01:00
Joseph Lee 1e60350e75
docs: fix a few words (#688)
Some checks failed
Container images / build-containers-with-zsh (5.2.4) (push) Has been cancelled
Container images / build-containers-with-zsh (5.3.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.4.2) (push) Has been cancelled
Container images / build-containers-with-zsh (5.5.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.6.2) (push) Has been cancelled
Container images / build-containers-with-zsh (5.7.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.8) (push) Has been cancelled
Container images / build-containers-with-zsh (5.9) (push) Has been cancelled
Container images / build-container-latest (push) Has been cancelled
Documentation / zshelldoc (push) Has been cancelled
Lint / Lint (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest) (push) Has been cancelled
2025-01-20 08:56:30 +01:00
vladislav doster c346949645
fix(gh-r.zunit): alist org name (#680)
Some checks failed
Container images / build-containers-with-zsh (5.2.4) (push) Has been cancelled
Container images / build-containers-with-zsh (5.3.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.4.2) (push) Has been cancelled
Container images / build-containers-with-zsh (5.5.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.6.2) (push) Has been cancelled
Container images / build-containers-with-zsh (5.7.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.8) (push) Has been cancelled
Container images / build-containers-with-zsh (5.9) (push) Has been cancelled
Container images / build-container-latest (push) Has been cancelled
Documentation / zshelldoc (push) Has been cancelled
Lint / Lint (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest) (push) Has been cancelled
2024-11-08 17:10:16 -06:00
dependabot[bot] 0c471af3fe
build(deps): bump dawidd6/action-homebrew-bump-formula from 3 to 4 (#673)
Some checks failed
Container images / build-containers-with-zsh (5.3.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.2.4) (push) Has been cancelled
Container images / build-containers-with-zsh (5.4.2) (push) Has been cancelled
Container images / build-containers-with-zsh (5.5.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.6.2) (push) Has been cancelled
Container images / build-containers-with-zsh (5.7.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.8) (push) Has been cancelled
Container images / build-containers-with-zsh (5.9) (push) Has been cancelled
Container images / build-container-latest (push) Has been cancelled
Documentation / zshelldoc (push) Has been cancelled
Lint / Lint (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest) (push) Has been cancelled
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-16 12:49:42 +02:00
dependabot[bot] d05a530115
build(deps): bump docker/build-push-action from 5 to 6 (#661)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 14:49:02 +02:00
qadzek e3302842b9
docs: fix typos (#658) 2024-06-04 08:56:06 +02:00
dependabot[bot] 8a219b8b4d
build(deps): bump wagoid/commitlint-github-action from 5 to 6 (#649)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 17:41:08 +01:00
vladislav doster e8c3205a2f
fix(zinit-install): simplify protocol pattern (#645)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2024-03-20 01:18:37 -05:00
Kilian Tyler 7094330387
fix: add command before instances of git that didn't have it (#643)
Co-authored-by: vladislav doster <10052309+vladdoster@users.noreply.github.com>
2024-03-19 17:55:18 -05:00
vladislav doster 0c18fda87f
test(fx): pin version to 32.0.0 (#644)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2024-03-19 15:02:36 -05:00
vladislav doster b7b8347cad
fix: compile command logic when using id-as ice (#619)
- Updated README.md `compiling` section
- Compile commands now work with `id-as` ice
- Compile command options added to tab completion  

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2024-03-03 23:43:48 -06:00
vladislav doster 6511ca7fe3
fix(configure ice): remove default --quiet flag (#637) 2024-02-20 04:28:11 -06:00
vladislav doster 8a64c2453d
ci(tests): bump brew lua5.1 -> lua5.4 (#638) 2024-02-20 04:05:29 -06:00
dependabot[bot] e5bb1c506a
build(deps): bump actions/checkout from 3 to 4 (#630)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-26 01:38:33 -06:00
vladislav doster d65206ffff
ci: move bump homebrew version to own file (#629)
Signed-off-by: Doster, Vladislav <mvdoster@gmail.com>
2024-01-22 00:58:49 -06:00
Vladislav Doster 30514edc4a release: v3.13.0 → v3.13.1
## [3.13.1](https://github.com/zdharma-continuum/zinit/compare/v3.13.0...v3.13.1) (2024-01-22)

### Bug Fixes

*  `plugins` command correctly handles keyword argument ([#626](https://github.com/zdharma-continuum/zinit/issues/626)) ([f26d387](f26d387e51))
2024-01-22 05:15:32 +00:00
vladislav doster 90b057cd26
ci(release): bump zinit homebrew formula (#628) 2024-01-21 23:14:00 -06:00
vladislav doster f26d387e51
fix: plugins command correctly handles keyword argument (#626) 2024-01-18 20:28:54 -06:00
Vladislav Doster 9ce9ec6367 release: v3.12.1 → v3.13.0
# [3.13.0](https://github.com/zdharma-continuum/zinit/compare/v3.12.1...v3.13.0) (2024-01-18)

### Bug Fixes

* **ci:** remove duplicate gh-r  zunit job ([#623](https://github.com/zdharma-continuum/zinit/issues/623)) ([70cefc0](70cefc086a))
* debug logging logic and format ([#592](https://github.com/zdharma-continuum/zinit/issues/592)) ([3c7e5be](3c7e5be07d))
* handle zinit --help ([#597](https://github.com/zdharma-continuum/zinit/issues/597)) ([8cf9104](8cf9104ac0))
* link ice check in .zinit-download-snippet function ([#608](https://github.com/zdharma-continuum/zinit/issues/608)) ([358ef03](358ef03785))
* pin dua gh-r test to v2.20.3 ([#605](https://github.com/zdharma-continuum/zinit/issues/605)) ([0ba778a](0ba778ac73))
* silence unzip command in ziextract ([#614](https://github.com/zdharma-continuum/zinit/issues/614)) ([71764bf](71764bf2ca))
* tar permissions when `ziextract` ran as root user ([#557](https://github.com/zdharma-continuum/zinit/issues/557)) ([e2d477c](e2d477cde4))
* update labeler config to v5 ([#604](https://github.com/zdharma-continuum/zinit/issues/604)) ([794723c](794723cc48))

### Features

* configure, make, cmake, and build ices ([#613](https://github.com/zdharma-continuum/zinit/issues/613)) ([#616](https://github.com/zdharma-continuum/zinit/issues/616)) ([22e66db](22e66db478))
* **delete:** fix unsetting plugin state & add `--debug` / `--quiet` flags ([#622](https://github.com/zdharma-continuum/zinit/issues/622)) ([3f4b685](3f4b685622))
* remove zpextract and use ziextract ([#611](https://github.com/zdharma-continuum/zinit/issues/611)) ([2ccac85](2ccac85e37))
2024-01-18 20:02:57 +00:00
vladislav doster 722d13c893
ci: bump node version to v20 in release workflow (#624) 2024-01-18 14:02:10 -06:00
vladislav doster 3f4b685622
feat(delete): fix unsetting plugin state & add --debug / --quiet flags (#622)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2024-01-18 13:40:55 -06:00
vladislav doster 70cefc086a
fix(ci): remove duplicate gh-r zunit job (#623) 2024-01-14 15:44:06 -06:00
vladislav doster 353b3402f9
style: set log message prefix color to blue (#620)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2024-01-13 22:08:30 -06:00
vladislav doster 22e66db478
feat: configure, make, cmake, and build ices (#613) (#616)
* Refactored 'configure' and 'make' ices
* New 'build' ice sets 'configure' and 'make ices if no flags are needed.
* New 'cmake' ice will build/install using 'cmake'
* Delete command now handles programs using 'make' and 'cmake' ices
* Setting `$ZINIT[DEBUG]` enables debug logging (i.e., `+zi-log "{dbg} message ..."`)
2024-01-09 04:11:39 -06:00
yyykt e2d477cde4
fix: tar permissions when ziextract ran as root user (#557) 2024-01-02 17:40:17 -06:00
vladislav doster 71764bf2ca
fix: silence unzip command in ziextract (#614) 2023-12-29 18:39:09 -06:00
vladislav doster 9cf5b17198
ci: pin mcfly version gh-r test (#615) 2023-12-24 19:13:24 -06:00
vladislav doster 2ccac85e37
feat: remove zpextract and use ziextract (#611)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-12-24 10:36:51 -06:00
vladislav doster 358ef03785
fix: link ice check in .zinit-download-snippet function (#608) 2023-12-15 22:40:25 -06:00
vladislav doster 0ba778ac73
fix: pin dua gh-r test to v2.20.3 (#605) 2023-12-08 20:19:49 -06:00
vladislav doster 794723cc48
fix: update labeler config to v5 (#604) 2023-12-08 20:13:30 -06:00
vladislav doster 4d623cbfae
ci: fix invalid labeler configuration (#603) 2023-12-08 19:54:04 -06:00
dependabot[bot] 0fde0ef66b
build(deps): bump actions/labeler from 4 to 5 (#600)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 17:56:00 -06:00
dependabot[bot] b5cc616a9c
build(deps): bump actions/setup-python from 4 to 5 (#601)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 17:55:53 -06:00
vladislav doster 8cf9104ac0
fix: handle zinit --help (#597)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-12-04 05:30:34 -06:00
vladislav doster 3c7e5be07d
fix: debug logging logic and format (#592)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-11-20 17:59:43 -06:00
Vladislav Doster 2a59b1ddc6 release: v3.12.0 → v3.12.1
## [3.12.1](https://github.com/zdharma-continuum/zinit/compare/v3.12.0...v3.12.1) (2023-11-20)

### Bug Fixes

* container zshelldoc install ([#591](https://github.com/zdharma-continuum/zinit/issues/591)) ([8170753](8170753a5d))
* from'gh-r' skips compile by default ([#590](https://github.com/zdharma-continuum/zinit/issues/590)) ([1f52eee](1f52eee1b1))
* respect delete flags after positional arguments ([#587](https://github.com/zdharma-continuum/zinit/issues/587)) ([e18f9a7](e18f9a7da2))
* set home dir to test env in gh-r tests ([#582](https://github.com/zdharma-continuum/zinit/issues/582)) ([9b33288](9b33288b4a))
* use $MACHTYPE instead of arch command ([#588](https://github.com/zdharma-continuum/zinit/issues/588)) ([bcf70e8](bcf70e8268))
2023-11-20 11:51:44 +00:00
vladislav doster 1f52eee1b1
fix: from'gh-r' skips compile by default (#590)
Skip compile when from'gh-r' ice is set unless compile is also set.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-11-20 05:50:12 -06:00
vladislav doster 8170753a5d
fix: container zshelldoc install (#591) 2023-11-20 05:41:40 -06:00
Philipp Schmitt bcf70e8268
fix: use $MACHTYPE instead of arch command (#588) 2023-10-31 11:39:56 -05:00
vladislav doster e18f9a7da2
fix: respect delete flags after positional arguments (#587)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-10-29 03:30:12 -05:00
dependabot[bot] e1df662973
build(deps): bump actions/setup-node from 3 to 4 (#584)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-27 07:25:22 +02:00
vladislav doster e458e8288e
refactor: clist subcommand renamed to completions (#583)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-09-30 18:46:19 -05:00
vladislav doster 9b33288b4a
fix: set home dir to test env in gh-r tests (#582)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-09-29 02:12:46 -05:00
vladislav doster 2e7b9aa29e
ci: optimize zunit tests (#572)
- cache test plugin dependencies
- add gh-r zunit tests
- fix ipinfo zunit test
- pin qsv version to 0.112.0 for macOS x86_64

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-09-14 05:13:59 -05:00
dependabot[bot] b88b6a2959
build(deps): bump docker/setup-qemu-action from 2 to 3 (#578)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 18:34:26 +02:00
dependabot[bot] 7a65999a30
build(deps): bump docker/build-push-action from 4 to 5 (#577)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 18:32:45 +02:00
dependabot[bot] 00e1a11cd2
build(deps): bump docker/setup-buildx-action from 2 to 3 (#579)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 18:32:35 +02:00
dependabot[bot] 86564bedf2
build(deps): bump docker/login-action from 2 to 3 (#580)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 18:32:25 +02:00
dependabot[bot] 0a1ee8271e
build(deps): bump actions/checkout from 3 to 4 (#573)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 16:51:21 +02:00
Vladislav Doster edf30619e9 release: v3.11.0 → v3.12.0
# [3.12.0](https://github.com/zdharma-continuum/zinit/compare/v3.11.0...v3.12.0) (2023-08-30)

### Bug Fixes

* build container for tagged releases ([f933dc0](f933dc028e))
* gh-r linux regex & gh-r zunit tests ([#564](https://github.com/zdharma-continuum/zinit/issues/564)) ([207ab9f](207ab9f281))
* gh-r zunit tests ([#561](https://github.com/zdharma-continuum/zinit/issues/561)) ([97b087e](97b087e68a))
* Ignore .yaml and .py files when installing completions ([#528](https://github.com/zdharma-continuum/zinit/issues/528)) ([113cfc4](113cfc47fb))
* jq has moved from stedolan/jq to jqlang/jq ([#530](https://github.com/zdharma-continuum/zinit/issues/530)) ([de85908](de85908f8d))
* math expression in plugins command ([#559](https://github.com/zdharma-continuum/zinit/issues/559)) ([68a6b42](68a6b42caf))
* pin fclones version to v0.31.0 ([497d519](497d519d99))
* quote parens so that they aren't used as globs ([#549](https://github.com/zdharma-continuum/zinit/issues/549)) ([1375adf](1375adf8f8))
* self-update check for updates ([#562](https://github.com/zdharma-continuum/zinit/issues/562)) ([b456a2d](b456a2dba6))
* update gomi repo owner ([#568](https://github.com/zdharma-continuum/zinit/issues/568)) ([19ca2dc](19ca2dc361))

### Features

* build container with zsh 5.9 ([#525](https://github.com/zdharma-continuum/zinit/issues/525)) ([238e843](238e843d60))
2023-08-30 04:34:46 +00:00
vladislav doster 207ab9f281
fix: gh-r linux regex & gh-r zunit tests (#564)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-08-29 23:33:00 -05:00
vladislav doster b456a2dba6
fix: self-update check for updates (#562)
Signed-off-by: Doster, Vladislav <mvdoster@gmail.com>
2023-08-28 04:17:59 -05:00
vladislav doster 19ca2dc361
fix: update gomi repo owner (#568) 2023-08-28 03:42:44 -05:00
Aaron Lichtman 5568128706
Merge pull request #565 from psprint/document-zpfx-var 2023-08-21 09:41:53 -07:00
Sebastian Gniazdowski fe8064a391 docs: document $ZPFX variable in README 2023-08-21 13:50:51 -05:00
vladislav doster 14cc16167f
refactor: rename +zinit-message to +zi-log (#563)
- Rename all instances of +zinit-message to +zi-log
- Maintain compatibility with community plugins/annexes by forwarding +zinit-message calls to +zi-log

Signed-off-by: Doster, Vladislav <mvdoster@gmail.com>
2023-08-20 00:59:44 -05:00
vladislav doster 68a6b42caf fix: math expression in plugins command (#559)
Co-authored-by: GitHub Actions <actions@github.com>
Signed-off-by: Doster, Vladislav <mvdoster@gmail.com>
2023-08-15 00:21:14 -05:00
vladislav doster 97b087e68a
fix: gh-r zunit tests (#561)
- remove version pin for `atuin` test
- update `atuin` repo owner
- `lfs` renamed to `dysk`
- macOS architecture check for `create-go-app`
2023-08-12 06:22:21 -05:00
Sebastian Gniazdowski 1375adf8f8
fix: quote parens so that they aren't used as globs (#549) 2023-08-02 17:47:29 +02:00
Philipp Schmitt 1cb1df6307
ci: fix repo for hub (github -> mislav) (#541) 2023-06-15 19:49:06 +02:00
Philipp Schmitt 113cfc47fb
fix: Ignore .yaml and .py files when installing completions (#528)
Signed-off-by: Doster, Vladislav <mvdoster@gmail.com>
Co-authored-by: vladislav doster <10052309+vladdoster@users.noreply.github.com>
2023-06-15 19:08:56 +02:00
Philipp Schmitt 5706971e90
ci: commit generated docs (#535)
Co-authored-by: vladislav doster <10052309+vladdoster@users.noreply.github.com>
2023-06-13 12:04:11 +02:00
vladislav doster 497d519d99 fix: pin fclones version to v0.31.0 2023-06-08 20:48:12 -05:00
vladislav doster 9ebc788632
Merge pull request #531 from zdharma-continuum/ci/container-on-main-only
ci: build container trigger on main branch push or new release tag
2023-06-05 20:45:12 -05:00
vladislav doster c95365c487
Merge branch 'main' into ci/container-on-main-only 2023-06-05 20:41:30 -05:00
vladislav doster f933dc028e
fix: build container for tagged releases 2023-06-05 20:41:10 -05:00
Philipp Schmitt de85908f8d
fix: jq has moved from stedolan/jq to jqlang/jq (#530) 2023-06-05 10:02:55 +02:00
Philipp Schmitt c3f9d8967d
ci: only build on main branch 2023-06-05 09:30:53 +02:00
Philipp Schmitt 238e843d60
feat: build container with zsh 5.9 (#525) 2023-06-05 09:04:01 +02:00
Vladislav Doster 879d889ee1 release: v3.10.0 → v3.11.0
# [3.11.0](https://github.com/zdharma-continuum/zinit/compare/v3.10.0...v3.11.0) (2023-05-04)

### Bug Fixes

* add `.gitignore` with '*' pattern in a plugins `._zinit/` directory ([#397](https://github.com/zdharma-continuum/zinit/issues/397)) ([fccb508](fccb5080ab)), closes [#395](https://github.com/zdharma-continuum/zinit/issues/395)
* broken update command ([336ca85](336ca85ade))
* cleanup style, naming, and completion ([6c82d67](6c82d6788d))
* compile and completion log messages ([c4446da](c4446da57e))
* csearch ignores lua files ([4d1840b](4d1840b883))
* makefile clean target less verbose ([3396f5e](3396f5e3aa))
* pin git-mkver gh-r test to v.1.2.2 ([a05cc1a](a05cc1ab59))
* pin git-mkver unit test to v1.2.2 ([08f02e0](08f02e00d0))
* regenerate docs ([e0177e2](e0177e2038))

### Features

* expand gh-r zunit tests ([c323116](c323116483))
* refactor debug commands ([930b25e](930b25ee3c))
* refactor ls, list, and loaded commands ([a865907](a86590762a))
2023-05-04 11:45:52 +00:00
vladislav doster d372c14e31
Merge pull request #517 from zdharma-continuum/fix/logging
fix: compile and completion log messages
2023-05-04 06:43:33 -05:00
vladislav doster 58736615f5
Merge branch 'main' into fix/logging 2023-05-04 06:43:27 -05:00
vladislav doster 7927c2c7cc
Merge pull request #514 from zdharma-continuum/feat/refactor-debug-commands
feat: refactor debug commands
2023-05-04 06:42:55 -05:00
Vladislav Doster c4446da57e
fix: compile and completion log messages
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-05-04 06:37:30 -05:00
vladislav doster c4e6cb35f4
Merge pull request #516 from zdharma-continuum/fix/csearch-ignores-lua-files 2023-05-02 16:27:16 -05:00
vladislav doster e95a76cd15
Merge branch 'main' into fix/csearch-ignores-lua-files 2023-05-02 07:14:04 -05:00
vladislav doster 08f02e00d0
fix: pin git-mkver unit test to v1.2.2 2023-05-02 07:13:54 -05:00
Vladislav Doster 4d1840b883
fix: csearch ignores lua files
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-05-02 05:06:42 -05:00
Vladislav Doster a05cc1ab59
fix: pin git-mkver gh-r test to v.1.2.2
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-05-01 05:27:14 -05:00
Vladislav Doster 6e2fd83125
docs: update docs for new debug command
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-05-01 05:16:23 -05:00
Vladislav Doster a7e500d091
docs: update docs for new debug command
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-05-01 04:59:04 -05:00
Vladislav Doster 930b25ee3c
feat: refactor debug commands
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-05-01 04:45:56 -05:00
vladislav doster 322253cd7b
Merge pull request #512 from zdharma-continuum/fix/remove-verbosity
fix: makefile clean target less verbose
2023-04-30 23:01:29 -05:00
Vladislav Doster 3396f5e3aa
fix: makefile clean target less verbose
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-30 23:00:59 -05:00
vladislav doster 6d84f9991d
Merge pull request #508 from zdharma-continuum/fix/update-subcommand
fix: broken update command
2023-04-19 12:24:31 -05:00
Vladislav Doster 336ca85ade
fix: broken update command
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-19 12:20:09 -05:00
vladislav doster 18532ee082
Merge pull request #506 from zdharma-continuum/fix/generate-new-tests
feat: expand gh-r zunit tests
2023-04-19 12:18:56 -05:00
Vladislav Doster c323116483 feat: expand gh-r zunit tests
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-19 16:54:49 +00:00
vladislav doster db404aa8ef
Merge pull request #505 from zdharma-continuum/ci/fq-zunit-ghr-test
ci: fq cli gh-r zunit test
2023-04-15 23:56:04 -05:00
Vladislav Doster d71525ca63
ci: fq cli gh-r zunit test
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-15 23:37:52 -05:00
vladislav doster 034e265ede
Merge pull request #497 from zdharma-continuum/fix/list-commands
feat: refactor ls, list, and loaded commands
2023-04-14 11:22:50 -05:00
vladislav doster 5a4814479f
Merge branch 'main' into fix/list-commands 2023-04-10 17:29:22 -05:00
vladislav doster cbb4a880ae
Merge pull request #498 from zdharma-continuum/ci/fnm-ghr-test
ci: fnm gh-r zunit test
2023-04-10 17:19:48 -05:00
Vladislav Doster 2f39986945
ci: fnm gh-r zunit test
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-10 17:15:12 -05:00
Vladislav Doster 6c82d6788d fix: cleanup style, naming, and completion
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-10 12:32:16 +00:00
Vladislav Doster a86590762a
feat: refactor ls, list, and loaded commands
Issues addressed:

1. Confusing and unintuitive command names

  Currently, two commands `loaded` and `list` will list installed
  plugins and a single command `ls` lists installed snippets. The namea
  don't make much sense or give context to their behavior, nor does
  having two commands with identical behavior.

This PR removes the three commands in favor of two new commands
`list-snippets` and `list-plugins`. The names align with the action they
perform.

2. Uninformative output

  Current output is hard to grok.

This PR cleans up the output format and uses color to help convey
information.

3. Incorrect

  Output does not account for various situations with the only way to
  fix is to reload Zsh session which would not always fix it. See images
  below for the aforementioned situations.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-09 21:45:15 -05:00
vladislav doster 243f5bd6d2
Merge pull request #496 from zdharma-continuum/docs/update-docs
fix: regenerate zinit docs
2023-04-08 17:20:16 -05:00
Vladislav Doster e0177e2038
fix: regenerate docs
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-08 17:04:55 -05:00
wzy fccb5080ab
fix: add .gitignore with '*' pattern in a plugins ._zinit/ directory (#397)
Zinit creates a directory named `._zinit` to store metadata. However, this
metadata should not be added to git.

Closes #395

Signed-off-by: wzy <32936898+Freed-Wu@users.noreply.github.com>
Co-authored-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-08 16:24:46 -05:00
Vladislav Doster 6845b7a91e release: v3.9.0 → v3.10.0
# [3.10.0](https://github.com/zdharma-continuum/zinit/compare/v3.9.0...v3.10.0) (2023-04-02)

### Bug Fixes

* absolute path support in the symbol browser ([d29a8ba](d29a8ba2b7))
* assign to functions hash to make %x work ([bd65a01](bd65a01734))
* broken symbolic link after `creinstall .` ([da0d6b7](da0d6b712c))
* bump node version in release workflow ([938f483](938f48375b))
* change prefix `~zi::` to `__zi::` ([0e45493](0e45493e36))
* container build & shell make targets ([a72fb83](a72fb83f09))
* container build & shell make targets ([14b2cda](14b2cda039))
* container build & shell make targets ([370808d](370808dd51))
* container build & shell make targets ([47bd74f](47bd74f8a7))
* container build & shell make targets ([f8eb967](f8eb967b0e))
* container build & shell make targets ([3af321e](3af321e8e4))
* do not run `make docs` ([3802893](3802893c74))
* failing zunit tests & bootstrap script ([d618467](d618467ff0))
* file modelines ([75bb735](75bb73547e))
* gh-r & bpick ice log format and content ([ad88a89](ad88a890ad))
* gh-r parsing logic for arm64 & logging style ([7e48651](7e486519d7))
* gh-r pattern for 64bit linux-gnu systems ([b5a31c0](b5a31c07f2))
* lsd repo owner changed to lsd-rs organization ([#489](https://github.com/zdharma-continuum/zinit/issues/489)) ([824d9d3](824d9d3617))
* make gh-r release search case-insensitive ([3eb75b7](3eb75b7ee9))
* make target docker cmd flags ([dd04896](dd04896449))
* pin `ggsrun` version in gh-r z-unit test ([9f67798](9f677989e8))
* the starship example does not work properly ([4933b62](4933b62f40))
* update pygmentize flags in glance subcommand ([#488](https://github.com/zdharma-continuum/zinit/issues/488)) ([b773763](b773763bdc))
* use correct return code in zinit-confirm ([d467738](d467738c1b))
* vim modelines & zsdoc pdf rendering ([2b460a7](2b460a74f2))

### Features

* delete subcommand refactor ([9eee215](9eee215e3f)), closes [#57](https://github.com/zdharma-continuum/zinit/issues/57) [#239](https://github.com/zdharma-continuum/zinit/issues/239)
* zinit completion improvements ([b8d12e5](b8d12e555d))

### Reverts

* "Merge branch 'refactor/zinit-function-names' into main" ([515688b](515688bc97))
2023-04-02 11:48:35 +00:00
vladislav doster 938f48375b
fix: bump node version in release workflow 2023-04-02 06:47:38 -05:00
vladislav doster 6a5d2b11a3
Merge pull request #494 from zdharma-continuum/57-allow-deleting-multiple-plugins-in-one-command
fix: delete multiple plugins at once

- `delete` subcommand can now take multiple arguments
- improved logic for `--all`, `--clean` flags
- improved log output
- now cleans up broken symlinks
2023-04-02 06:40:29 -05:00
Philipp Schmitt 3802893c74
fix: do not run make docs 2023-04-02 12:38:06 +02:00
Philipp Schmitt 3173e6df7d
docs: regenerate 2023-04-02 12:37:52 +02:00
Vladislav Doster 9eee215e3f
feat: delete subcommand refactor
- `delete` subcommand can now take multiple arguments
- improved logic for `--all`, `--clean` flags
- improved log output
- now cleans up broken symlinks

```
zinit delete <Plugin> <Plugin> ...
```

Closes #57
Closes #239

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-02 04:38:38 -05:00
vladislav doster 0bdf9eaf56
Merge pull request #491 from zdharma-continuum/feat/refactor-completion
feat: zinit completion improvements
2023-03-29 05:20:12 -05:00
vladislav doster 5d064741a0
ci: add completion to pull request labels 2023-03-27 21:07:29 -05:00
Vladislav Doster b8d12e555d
feat: zinit completion improvements
- Add all subcommand short & long flags
- Handle mutually exclusive options. For example, a user shouldn't be
  able to select the `--all` flag and a plugin in `zi delete` but should
  be able to select the `--yes` or `--quiet`
- Handle the zinit limitation of only taking one plugin in various
  commands (i.e., delete, uncompiled)

Examples:
- Don't show users plugins in the `zi delete` when they have already
  selected one to avoid an error.
- Only let the user select one flag option in `zinit time`.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-03-27 05:00:45 -05:00
Ryoga c624ac0077
add an option to disable aliases (#452)
* feat: add option to disable aliases

* docs: add docs for `ZINIT[NO_ALIASES]`
2023-03-26 22:54:30 +02:00
vladislav doster b773763bdc
fix: update pygmentize flags in glance subcommand (#488)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-03-26 09:03:42 +02:00
vladislav doster 824d9d3617
fix: lsd repo owner changed to lsd-rs organization (#489)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-03-26 08:30:20 +02:00
vladislav doster 8e3d2eefbd
Merge pull request #484 from zdharma-continuum/vladdoster-patch-1
fix: pin `ggsrun` version in gh-r z-unit test
2023-03-10 00:10:44 -06:00
vladislav doster 9f677989e8
fix: pin ggsrun version in gh-r z-unit test
Latest version `[v2.0.1](https://github.com/tanaikech/ggsrun/releases/tag/v2.0.1)` has no assets.
2023-03-10 00:08:33 -06:00
vladislav doster 21c3b55d96
Merge pull request #480 from xqm32/fix-starship-example 2023-02-24 08:01:38 -06:00
Qiming Xu 4933b62f40
fix: the starship example does not work properly 2023-02-24 12:21:53 +08:00
vladislav doster 3ade9bb250
Merge pull request #479 from zdharma-continuum/fix/ghr-grep-caseinsensitive
fix: make `gh-r` release version search case-insensitive
2023-02-21 19:24:05 -06:00
Vladislav Doster 3eb75b7ee9 fix: make gh-r release search case-insensitive
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-02-22 01:05:50 +00:00
vladislav doster e3ccd7f7a4
Merge pull request #477 from miles170/fix-docs
docs: update line count in `zinit.zsh.adoc`
2023-02-16 19:07:48 -06:00
Miles Liu a570cfd4ca
docs: update line count in zinit.zsh.adoc 2023-02-16 13:44:05 +08:00
vladislav doster 3ab1857b8a
Merge pull request #416 from psprint/fix-browse-symbols 2023-02-15 11:30:58 -06:00
Sebastian Gniazdowski d29a8ba2b7 fix: absolute path support in the symbol browser 2023-02-15 17:42:39 +00:59
vladislav doster c90f2c37bf
Merge pull request #451 from iloveitaly/patch-1
docs: add conditional directory and git cloning calls to setup instructions
2023-02-12 20:42:53 -06:00
vladislav doster b5338e0252
Merge pull request #460 from psprint/%x-prompt-expn
fix: assign to functions hash to enable `%x`
2023-02-12 20:41:39 -06:00
vladislav doster c9c8a10e01
Merge pull request #453 from miles170/fix-creinstall
fix: broken symbolic link after `creinstall .`
2023-02-12 20:39:57 -06:00
vladislav doster 683c4390b2
Merge pull request #475 from zdharma-continuum/fix/zinit-confirm-rc
fix: use correct return code in zinit-confirm
2023-02-12 19:04:45 -06:00
Vladislav Doster d467738c1b fix: use correct return code in zinit-confirm
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-02-12 18:59:55 -06:00
vladislav doster a679bc60f0
Merge pull request #474 from zdharma-continuum/fix/zinit-confirm
refactor: zinit confirmation messages
2023-02-12 18:47:45 -06:00
Vladislav Doster cadeb791b4 refactor: zinit confirmation messages
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-02-12 18:01:43 -06:00
Miles Liu da0d6b712c
fix: broken symbolic link after creinstall .
Signed-off-by: Miles Liu <miles@bung.cc>
2023-02-01 12:00:36 +08:00
Philipp Schmitt f214ebe485
Merge pull request #470 from zdharma-continuum/dependabot/github_actions/docker/build-push-action-4
build(deps): bump docker/build-push-action from 3 to 4
2023-01-31 21:17:37 +01:00
dependabot[bot] df6c21bd6d
build(deps): bump docker/build-push-action from 3 to 4
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 12:03:02 +00:00
vladislav doster b721461947
Merge pull request #462 from zdharma-continuum/test/git-absorb
ci: git-absorb zunit gh-r test
2023-01-14 00:39:37 -06:00
Vladislav Doster 469baa17cf ci: git-absorb zunit gh-r test
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-01-14 01:45:20 +00:00
vladislav doster 5ef0bc5613
Merge pull request #461 from zdharma-continuum/fix/update-linux-pattern
fix: gh-r pattern for x86_64 linux-gnu systems
2023-01-13 18:28:54 -06:00
Vladislav Doster b5a31c07f2 fix: gh-r pattern for 64bit linux-gnu systems
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-01-14 00:01:00 +00:00
Sebastian Gniazdowski bd65a01734 fix: assign to functions hash to make %x work
The useful %x prompt expansion can be used to get path to the executed script:
0=${(%):-%x}

It is always the correct, expected value, even for autoloaded functions. However,
it currently doesn't work with Zinit special fpath-pollution free autoload.
This patch fixes this.
2023-01-13 16:34:03 +00:59
vladislav doster 52e112c7c3
Merge pull request #455 from zdharma-continuum/ci/gh-r-dstask-test
ci: add `naggie/dstask` gh-r test
2023-01-08 15:43:13 -06:00
Vladislav Doster ecae986bb2 ci: add dstask gh-r test
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-01-08 15:25:42 -06:00
vladislav doster ff62ffba58
Merge pull request #454 from zdharma-continuum/refactor/zinit-install
fix: gh-r bpick ice logging
2023-01-08 07:17:45 -06:00
Vladislav Doster ad88a890ad fix: gh-r & bpick ice log format and content
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-01-08 02:24:40 -06:00
vladislav doster 599859b38a
Merge pull request #444 from zdharma-continuum/refactor/zinit-install
fix: gh-r system arch detection edge-cases
2023-01-07 22:49:29 -06:00
Vladislav Doster 7e486519d7 fix: gh-r parsing logic for arm64 & logging style
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-01-05 10:02:44 -06:00
Vladislav Doster d618467ff0 fix: failing zunit tests & bootstrap script
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-01-05 04:36:25 -06:00
Michael Bianco 5e1c79cb22
Add conditional directory and git cloning calls to setup instructions
Without this, you'll get an error on each terminal startup.
2023-01-03 08:38:43 -07:00
Vladislav Doster 515688bc97 revert: "Merge branch 'refactor/zinit-function-names' into main"
This reverts commit b979847bd4, reversing
changes made to da924a21a1.

I (@vladdoster) accidentally merged this into the wrong repository. Apologies for the lack of due diligence.
2022-12-17 21:11:41 -06:00
vladislav doster b979847bd4
Merge branch 'refactor/zinit-function-names' into main 2022-12-17 18:22:20 -06:00
Vladislav Doster da924a21a1 release: v3.8.0 → v3.9.0
# [3.9.0](https://github.com/zdharma-continuum/zinit/compare/v3.8.0...v3.9.0) (2022-12-17)

### Bug Fixes

* remove broken gh-r zunit test for "warp" ([#430](https://github.com/zdharma-continuum/zinit/issues/430)) ([64fa4ae](64fa4aef3a))

### Features

* add `completions` ice ([#417](https://github.com/zdharma-continuum/zinit/issues/417)) ([59975d7](59975d70d7))
* display version via `version` sub command ([bfb01e6](bfb01e65d7))

### Performance Improvements

* reduce scheduler task check to 10 second interval ([#429](https://github.com/zdharma-continuum/zinit/issues/429)) ([1681ce4](1681ce40eb))

### Reverts

* "perf: reduce scheduler task check to 10 second interval ([#429](https://github.com/zdharma-continuum/zinit/issues/429))" ([#432](https://github.com/zdharma-continuum/zinit/issues/432)) ([cfd3261](cfd3261892))
2022-12-17 13:48:27 +00:00
vladislav doster 708684c368
Merge pull request #440 from vladdoster/feat/version-subcmd
feat: display version via `version` sub command
2022-12-17 07:42:45 -06:00
Vladislav Doster bfb01e65d7 feat: display version via version sub command
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-17 06:14:46 -06:00
Vladislav Doster a72fb83f09 fix: container build & shell make targets
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-16 02:01:34 -06:00
Vladislav Doster 14b2cda039 fix: container build & shell make targets
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-16 01:36:05 -06:00
Vladislav Doster 370808dd51 fix: container build & shell make targets
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-16 01:29:57 -06:00
Vladislav Doster 47bd74f8a7 fix: container build & shell make targets
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-16 01:28:46 -06:00
Vladislav Doster f8eb967b0e fix: container build & shell make targets
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-16 01:17:58 -06:00
Vladislav Doster 3af321e8e4 fix: container build & shell make targets
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-15 22:45:35 -06:00
Vladislav Doster 2b460a74f2 fix: vim modelines & zsdoc pdf rendering
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-15 22:22:48 -06:00
Vladislav Doster 0e45493e36 fix: change prefix ~zi:: to __zi::
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-16 03:45:16 +00:00
Vladislav Doster 75bb73547e fix: file modelines
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-15 12:01:15 -06:00
Vladislav Doster dd04896449 fix: make target docker cmd flags
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-15 12:01:04 -06:00
Vladislav Doster c28580c3fc refactor: rename zinit functions
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-09 15:40:31 -06:00
Jan Katins 59975d70d7
feat: add completions ice (#417)
This can be used to overwrite `as'null'`, which would otherwise not trigger
completion detection and installation.

It will override the `nocompletions` ice when both are specified (e.g., using
the default ice annex).
2022-12-05 07:21:28 -06:00
vladislav doster cfd3261892
revert: "perf: reduce scheduler task check to 10 second interval (#429)" (#432)
This reverts commit 1681ce40eb.
2022-11-30 18:50:52 -06:00
Sebastian Gniazdowski 1681ce40eb
perf: reduce scheduler task check to 10 second interval (#429) 2022-11-30 14:55:38 -06:00
vladislav doster 64fa4aef3a
fix: remove broken gh-r zunit test for "warp" (#430)
* remove broken gh-r zunit test for "warp"
* set LC_CTYPE & LANG env variables for macOS

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-11-20 17:08:42 -06:00
Vladislav Doster 0c1839a18b revert: "perf: decrease scheduler checks from every 1 second to 10 seconds (#409)"
This reverts commit 4938e84827.
2022-11-20 03:47:48 -06:00
vladislav doster 9e6f835b73
ci: add commit linting via commitlint (#428)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-11-20 03:19:34 -06:00
Sebastian Gniazdowski 4938e84827
perf: decrease scheduler checks from every 1 second to 10 seconds (#409)
The scheduler is called in 10 seconds intervals when no tasks are present to lower CPU usage.

Co-authored-by: vladislav doster <10052309+vladdoster@users.noreply.github.com>
2022-11-19 23:21:38 -06:00
Aaron Lichtman 1e5c0e9389
Merge pull request #424 from zdharma-continuum/revert-419-man-fix
Revert "Copy doc/zinit.1 only if it exists. Fixes #418."
2022-11-18 05:01:04 -08:00
Aaron Lichtman 33fa18af98
Revert "Copy doc/zinit.1 only if it exists. Fixes #418." 2022-11-18 04:57:33 -08:00
Aaron Lichtman 4c94ad29f7
Merge pull request #419 from psprint/man-fix
Copy doc/zinit.1 only if it exists. Fixes #418.
2022-11-18 04:54:45 -08:00
Sebastian Gniazdowski 4bfc7ecbe3 Copy doc/zinit.1 only if it exists. Fixes #418. 2022-11-08 10:01:39 +00:59
Vladislav Doster a27d7e0b57 release: v3.7.0 → v3.8.0
# [3.8.0](https://github.com/zdharma-continuum/zinit/compare/v3.7.0...v3.8.0) (2022-11-07)

### Bug Fixes

* account for systems where musl is present ([#269](https://github.com/zdharma-continuum/zinit/issues/269)) ([8620574](8620574a55))
* alist repository for gh-r test ([#305](https://github.com/zdharma-continuum/zinit/issues/305)) ([fb3c082](fb3c082551))
* allow zinit to be run from non-interactive scripts ([#227](https://github.com/zdharma-continuum/zinit/issues/227)) ([c3d1bb5](c3d1bb586c)), closes [#199](https://github.com/zdharma-continuum/zinit/issues/199)
* broken yaml syntax in issue template ([#355](https://github.com/zdharma-continuum/zinit/issues/355)) ([f729e06](f729e065db))
* calico gh-r zunit test ([#356](https://github.com/zdharma-continuum/zinit/issues/356)) ([56fb9e0](56fb9e0b1d))
* change ctags symbols browser key  binding from `ctrl-k` to `alt-Q` ([#387](https://github.com/zdharma-continuum/zinit/issues/387)) ([7f6dc7d](7f6dc7da6c)), 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](0e55b2ea67))
* docs workflow should fail if out-of-date ([#278](https://github.com/zdharma-continuum/zinit/issues/278)) ([07cde66](07cde66008))
* Don't error if $OPTS is not yet defined in .zinit-compinit call ([44765e0](44765e0bcb))
* filter by runtime detected CPU before compiled CPU ([#304](https://github.com/zdharma-continuum/zinit/issues/304)) ([a4dc13f](a4dc13f66a)), closes [#287](https://github.com/zdharma-continuum/zinit/issues/287)
* gh-r & plugin zunit tests ([dd12fce](dd12fce3f4))
* gh-r filters i686 (32 bit) for x86_64 ([#226](https://github.com/zdharma-continuum/zinit/issues/226)) ([57f0d82](57f0d82118)), closes [#225](https://github.com/zdharma-continuum/zinit/issues/225)
* gh-r logic ignores [36]86 assets ([#235](https://github.com/zdharma-continuum/zinit/issues/235)) ([d60638f](d60638f221)), closes [#225](https://github.com/zdharma-continuum/zinit/issues/225) [#246](https://github.com/zdharma-continuum/zinit/issues/246) [#247](https://github.com/zdharma-continuum/zinit/issues/247)
* gh-r removes linux32 assets on 64 bit OS ([1864c0b](1864c0be09))
* gh-r retrieves release data GH REST API  ([#373](https://github.com/zdharma-continuum/zinit/issues/373)) ([4a2a120](4a2a120b34)), closes [#374](https://github.com/zdharma-continuum/zinit/issues/374)
* modify regex in gh-r for assets to not consider for selection ([#244](https://github.com/zdharma-continuum/zinit/issues/244)) ([6ef8439](6ef84398b2))
* more cleaning up urls ([672ae51](672ae51414)), closes [#47](https://github.com/zdharma-continuum/zinit/issues/47)
* names of ctag Make target deps ([#407](https://github.com/zdharma-continuum/zinit/issues/407)) ([9987d5c](9987d5c781))
* package are broken again ([24f10f6](24f10f6367))
* permissions for PR labeler GH action workflow ([#236](https://github.com/zdharma-continuum/zinit/issues/236)) ([8a0d567](8a0d5678d1))
* read without -r is generally bad. ([00c70a4](00c70a434d))
* remove curl option "--tcp-fastopen" which is not always available ([#299](https://github.com/zdharma-continuum/zinit/issues/299)) ([308c9d4](308c9d4cd8))
* remove macOS 10.5 & 11 from test matrix ([c613193](c61319378d))
* remove use less line ([4f87076](4f87076601))
* rename `docs` to `doc` to match doc dir ([#212](https://github.com/zdharma-continuum/zinit/issues/212)) ([3a7dc95](3a7dc95f02))
* rm linux32 assets in aarch64/arm64 gh-r regex ([#414](https://github.com/zdharma-continuum/zinit/issues/414)) ([529aa20](529aa20f42))
* syntax error when checking for `realpath` command  ([#259](https://github.com/zdharma-continuum/zinit/issues/259)) ([05559eb](05559ebdbc)), closes [#257](https://github.com/zdharma-continuum/zinit/issues/257)
* trigger for PR labeler GH action workflow ([#237](https://github.com/zdharma-continuum/zinit/issues/237)) ([49af866](49af86688b))
* typo & triggers in documentation workflow ([#308](https://github.com/zdharma-continuum/zinit/issues/308)) ([161d7c1](161d7c1ee1))
* unmatched "(" in windows gh-r patterns ([#280](https://github.com/zdharma-continuum/zinit/issues/280)) ([1f4ba5a](1f4ba5ae0c))
* update `zdharma` to `zdharma-continuum` ([66b1700](66b1700752))
* update docs for new jq-check ([6207427](6207427256))
* use [*] inside arbitrary strings. ([73a8c92](73a8c92d43))
* workflow pkg mgmt due to base OS changes ([195f72d](195f72d54b))
* ziextract execs discovery regex ([#410](https://github.com/zdharma-continuum/zinit/issues/410)) ([105b38a](105b38a195))
* zunit install in GH workflow ([#412](https://github.com/zdharma-continuum/zinit/issues/412)) ([f4787dc](f4787dcac8))

### Features

* ability to set program for `zinit ls` to use ([#221](https://github.com/zdharma-continuum/zinit/issues/221)) ([bad7af3](bad7af3ae2)), closes [#170](https://github.com/zdharma-continuum/zinit/issues/170)
* add `-a` (actual time) to `zinit times` cmd ([#223](https://github.com/zdharma-continuum/zinit/issues/223)) ([450d3c1](450d3c10a8))
* add `krew` and `prebuilt-ripgrep` gh-r zunit tests ([#267](https://github.com/zdharma-continuum/zinit/issues/267)) ([f25b4ae](f25b4ae2b9))
* add compile vim from source zunit test ([#232](https://github.com/zdharma-continuum/zinit/issues/232)) ([126528c](126528ccd5))
* add configure"" ice ([#334](https://github.com/zdharma-continuum/zinit/issues/334)) ([40a46c6](40a46c6d22))
* add GH action to remove old workflow logs ([#248](https://github.com/zdharma-continuum/zinit/issues/248)) ([6647bdc](6647bdc31c))
* add PR labeler to show what parts of Zinit are changed ([#211](https://github.com/zdharma-continuum/zinit/issues/211)) ([42e83d7](42e83d7f99))
* add releases via semantic-release ([73542b4](73542b4909))
* add releases via semantic-release ([#415](https://github.com/zdharma-continuum/zinit/issues/415)) ([cfa2f0e](cfa2f0ebcd))
* expand linted file types to markdown and shell ([96fe03f](96fe03f85b))
* **git-process-output:** simplify progress-bar ([#204](https://github.com/zdharma-continuum/zinit/issues/204)) ([c888917](c888917edb))
* update output messaging to be more informative ([047320a](047320a923))
2022-11-07 02:41:04 +00:00
Vladislav Doster 73542b4909 feat: add releases via semantic-release
- release workflow
- semantic-release configuration file
- new CHANGELOG.md

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-11-06 20:38:44 -06:00
vladislav doster cfa2f0ebcd
feat: add releases via semantic-release (#415)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-11-06 15:53:14 -06:00
vladislav doster 529aa20f42
fix: rm linux32 assets in aarch64/arm64 gh-r regex (#414)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-11-06 10:28:23 -06:00
vladislav doster fcd2aa6791
style: update ziextract log messages prefix (#411)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-11-05 04:41:13 -05:00
vladislav doster f4787dcac8
fix: zunit install in GH workflow (#412)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-11-05 04:39:04 -05:00
vladislav doster 105b38a195
fix: ziextract execs discovery regex (#410)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-11-05 02:51:23 -05:00
Sebastian Gniazdowski 9987d5c781
fix: names of ctag Make target deps (#407) 2022-11-01 05:59:31 -05:00
vladislav doster 1d9e05fb1e
Merge pull request #405 from zdharma-continuum/fix/gh-r_jq-linux64
fix: gh-r removes linux32 assets on 64 bit OS
2022-10-30 23:16:02 -05:00
Vladislav Doster 1864c0be09 fix: gh-r removes linux32 assets on 64 bit OS
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-10-30 22:53:58 -05:00
vladislav doster fad444b55b
Merge pull request #380 from zdharma-continuum/fix/unit-tests
fix: zunit tests & documentation
2022-10-30 10:00:36 -05:00
Vladislav Doster c93a3ce431 maint: regenerate docs
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-10-30 07:59:03 -05:00
Vladislav Doster 62c07b7326 style: fix fold markers, typos, and comments
- Fix function typos in asciidoc comments
- Fix asciidoc fold markers
- Fix function args typos/style in asciidoc comments

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-10-30 07:58:58 -05:00
Vladislav Doster bc56e757db maint: disable container & installer workflows
Temporarily disable container and installer workflows so CI checks pass.

Fixes for both are a WIP and will be in a seperate PR that also
re-enables the workflows.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-10-30 07:58:52 -05:00
Vladislav Doster 1d4d38b853 maint: make single-line.zsh a zinit-install func
Move code in `share/single-line.zsh` into function within
`zinit-install.zsh`.

Additionally, allows for code to be compiled.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-10-30 07:58:48 -05:00
Vladislav Doster 10eb3c2c56 maint: regenerate docs w/ zinit-additional.zsh
Documentation now includes code in `zinit-additional.zsh`

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-10-30 07:58:44 -05:00
Vladislav Doster 4602c81d01 maint: sort, update, and add Make targets
- Add 'container' target to build local docker image
- Add 'zinit-additional' to be included in zcompile & doc generation
- Build local zinit image before `doc/container`
- Sort targets alphabetically

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-10-30 07:58:38 -05:00
Vladislav Doster 195f72d54b fix: workflow pkg mgmt due to base OS changes
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-10-30 07:58:36 -05:00
Vladislav Doster dd12fce3f4 fix: gh-r & plugin zunit tests
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-10-30 07:58:32 -05:00
Vladislav Doster 8a75a56ce5 style: format README.md to linter standards
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-10-30 07:58:03 -05:00
Sebastian Gniazdowski 3885919788
maint: update copy of zinit.1 in $ZPFX/man/ if out-of-date (#382) 2022-10-29 18:25:43 -05:00
Jan Katins 0e55b2ea67
fix: Do not try to escape exclamation marks (#399) 2022-10-29 11:16:36 -05:00
vladislav doster be1533552a
maint: re-format _zinit (#392)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-10-05 10:11:54 -05:00
vladislav doster 49926e075a
maint: consistent vim mode lines across all files (#393) 2022-10-05 09:59:15 -05:00
Sebastian Gniazdowski 7f6dc7da6c
fix: change ctags symbols browser key binding from ctrl-k to alt-Q (#387)
The key is already bound to push-line, however the zle widget
has also two other keys, ctrl-q and Alt-q, so no problem, as
IMO users who want that widget already use Alt-q, not Alt-Q.

Closes #386
2022-10-03 05:09:54 -05:00
Aaron Lichtman 65331c222d
Merge pull request #384 from zdharma-continuum/revert-378-vars 2022-09-29 15:10:26 -05:00
Aaron Lichtman 952f683753
Revert "Add a few global aliases and vars like ZIBIN, ZIPLUGS and others." 2022-09-29 13:09:54 -07:00
Aaron Lichtman 5be3b2a72e
Merge pull request #350 from psprint/zinit.1-manual 2022-09-28 06:50:50 -05:00
Aaron Lichtman 37cd36e418
Merge pull request #378 from psprint/vars 2022-09-28 06:48:31 -05:00
Sebastian Gniazdowski 9168d6c183 Add a few global aliases and vars like ZIBIN, ZIPLUGS and others.
The user can use them in 3 ways:

$ cd ZIBIN
$ cd $ZIBIN
$ cd ~ZIBIN
$ cd ZPFX
2022-09-28 10:01:05 +00:59
Sebastian Gniazdowski 061a85c4ff
Add support for multiple (cmake, scons, meson) build systems to the configure'' ice. (#351) 2022-09-27 19:54:11 -05:00
Sebastian Gniazdowski 2e783f02e2
Make variables created with param'name → value' be exported. Also (#376) 2022-09-27 19:51:53 -05:00
Sebastian Gniazdowski 17fd453dc1
A zsh language definition for Ctags wrapped in tags Make target (#332) 2022-09-19 04:42:20 -05:00
Yuta Katayama 4a2a120b34
fix: gh-r retrieves release data GH REST API (#373)
Recent changes to GitHub HTML structure broke `gh-r` & `bpick` ices method of parsing project release assets.

- `gh-r` utilizes official GitHub REST API to retrieve project releases data
- add `local` scope to `releases_url` variable

# closes #374 

Co-authored-by: Tyler Wardhaugh <tyler.wardhaugh@gmail.com>
2022-09-18 01:51:03 -05:00
Philipp Schmitt 8ed4e96dea
Merge pull request #372 from akliuxingyuan/main
use grep instead of the deprecated egrep
2022-09-12 18:59:52 +02:00
akliuxingyuan 1b90ad382b use grep instead of the deprecated egrep 2022-09-12 13:53:22 +08:00
vladislav doster bf2a411ec6
Merge pull request #369 from zdharma-continuum/fix/lnav-test
fix: remove macOS 11 from test matrix
2022-09-05 21:51:04 -05:00
Vladislav Doster c61319378d fix: remove macOS 10.5 & 11 from test matrix
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-09-05 20:50:47 -05:00
vladislav doster bc7495c65e
Merge pull request #368 from zdharma-continuum/fix/osx-ghr-pattern 2022-09-05 18:36:39 -05:00
Vladislav Doster a5b05ae9ea (fix): add os-x to darwin gh-r pattern
- add `os-x` to darwin gh-r pattern
- add zunit test for tstack/lnav

Closes #367

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-09-03 06:53:50 -05:00
Jan Katins c3d1bb586c
fix: allow zinit to be run from non-interactive scripts (#227)
* maint: Ignore .idea folder

Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>

* fix: Don't escape exclamation marks in hook keys

Exclamation marks (per default) get escaped in interactive mode,
but not in non-interactive modes. In this case it meant that zinit
would not find any hooks which implements the ices when running in
non-interactive mode (e.g. in a script). This in turn would NOT result
in errors but would just silently not execute any of the ices which
of course would be a bad thing(tm).

https://github.com/zdharma-continuum/zinit/issues/199 has the details...

Closes: #199

* fix: Ignore errors if cp cannot copy .zwc files

This would otherwise bubble up as a hook failure and further up as a zinit call failure

* fix: Add pick ice now that the compile hook is run

After the fix, the compile hook is now run and would fail without this information. IN addition, only files starting with _ are linked into the completion folder.

* fix: Fix docker-buildx gh-r test now that atclone ice is run

* maint: Add basic tests for cp/mv/atclone/make ices

zunit runs tests non-interactively and these tests fail without the fix in this branch.

Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
2022-08-06 02:35:58 -04:00
vladislav doster ba2eb6807d
Merge pull request #360 from zdharma-continuum/maint/stale-labeler-bot
(maint): add config for stale labeler bot
2022-08-04 04:17:33 -05:00
vladislav doster 5fffd4f6b0
(maint): add config for stale labeler bot 2022-08-04 04:12:01 -05:00
vladislav doster c6e7acd86d
maint: refactor duplicate test logic into function (#357) 2022-07-25 18:01:25 -05:00
vladislav doster 56fb9e0b1d
fix: calico gh-r zunit test (#356)
- test using the `--help` flag instead of the `version` command
2022-07-25 05:56:59 -05:00
vladislav doster f729e065db
fix: broken yaml syntax in issue template (#355) 2022-07-24 20:42:15 -05:00
vladislav doster 95baba0a95
maint: improve OS info and add CoC agreement in issue template (#353) 2022-07-24 20:30:30 -05:00
Sebastian Gniazdowski cc724a4336 Copy zinit.1 to man1 directory 2022-07-19 21:05:40 +02:00
vladislav doster 35a28668f9
docs: updates for the new configure"" ice (#346)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-07-17 22:36:47 -05:00
vladislav doster 3153146cdc
docs: format README.md (#347)
- Fixes failing markdown linting test

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-07-17 22:03:21 -05:00
Sebastian Gniazdowski 40a46c6d22
feat: add configure"" ice (#334)
### configure ice

The new `configure''` ice is a facade for the following code.

```zsh
atclone'./configure --prefix=$PWD'
atpull'%atclone'
```

### Example:

Without the `configure` ice:

```zsh
zi for \
    as'null' \
    atclone'autoreconf -iv && ./configure --prefix=$PWD' \
    atpull'%atclone' \
    lbin'!**/stow' \
    make'PREFIX=$PWD install' \
    nocompile \
  @aspiers/stow
```

With the `configure` ice:

```zsh
zi for \
    as'null' \
    configure'#' \
    lbin'!**/stow' \
    make'PREFIX=$PWD install' \
    nocompile \
  @aspiers/stow
```

Additionally, passing `#` as the ice value will look for and run `autogen.sh` prior to running `./configure`.
2022-07-16 22:56:25 -05:00
vladislav doster 35d9a7da2c
Merge pull request #343 from zdharma-continuum/docs/add-codeowners-file
maint: add CODEOWNERS file for code owners feature
2022-07-15 17:13:02 -05:00
Vladislav Doster 4194b4e34a maint: add CODEOWNERS file for code owners feature
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-07-15 22:08:30 +00:00
Christian Höltje 37a592fccc
maint: add multiple 'EOL' & 'diff' rules to .gitattributes (#336)
Signed-off-by: Christian Höltje <christian.holtje@boxcast.com>
2022-07-09 03:34:21 -05:00
Christian Höltje a4dc13f66a
fix: filter by runtime detected CPU before compiled CPU (#304)
Closes  #287

Signed-off-by: Christian Höltje <docwhat@gerf.org>
2022-07-05 18:54:00 -05:00
vladislav doster f5b59449ff
style: format zinit-side.zsh to zinit convention (#327)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-07-05 18:49:08 -05:00
vladislav doster 2450161d45
docs: update zinit-install.zsh.adoc (#329)
Documentation for #328

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-07-05 18:48:04 -05:00
Sebastian Gniazdowski 68f8f1d3cb
maint: run extract'' before the atclone'', atpull'', mv'', and cp'' ices (#328)
# Evaluating the `extract' '` earlier solves multiple issues:

## 1.

```bash
atclone'./configure --prefix=$PWD'
```

## 2.

The `mv' '` ice is ran after archive extraction, so

```bash
mv''
```

ice is running sense as the extension is not required for unpacking, so one can
utilize mv'' ice for something after the unpacking, not before to rename
'tmux->tmux.tgz' or similar.

## 3.

The `gh-r''` and `pack''` ices default ziextract calling in gh-r and pack'' obey
the exclamation marks from extract'!…' to allow deciding whether `move` or
`move2` mode should be enabled (i.e., move extracted archive up 1 or 2 levels
up).

## Tested against Tmux:

```bash
zi for \
	as'null' \
	atclone'./configure --disable-utf8proc --prefix=$PWD' \
	atpull'%atclone' \
	extract'!' \
	from'gh-r' \
	id-as'tmux' \
	sbin \
	make'-j 4 install' \
	ver'latest' \
	@tmux/tmux
```
2022-07-05 18:37:10 -05:00
vladislav doster 1e49316210
maint: update license (#326)
- update copyright
2022-07-04 03:43:28 -05:00
vladislav doster c3529c8270
style: format single-line.zsh to zinit convention (#325)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-07-04 02:29:25 -05:00
vladislav doster 99a41e36a6
maint: delete PR template in favor of org wide copy (#324)
This PR template was used before  [zdharma-continuum/.github](https://github.com/zdharma-continuum/.github) existed. 

Deleting in favor of having a single source of truth.
2022-07-02 04:30:58 -05:00
vladislav doster 1d7d32166f
style: re-format rpm2cpio.zsh to zinit convention (#319)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-07-01 04:14:03 -05:00
vladislav doster 5f8b2706cb
style: re-format git-process-output.zsh to zinit convention (#318)
See #238
2022-07-01 04:03:28 -05:00
vladislav doster 9404d2a232
docs: update info for .zinit-formatter-auto (#314)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-06-20 00:16:44 -05:00
Sebastian Gniazdowski f6e1d03e43
maint: extend auto formatter to support plugin ids, numbers, times, and ice values(#311)
- It makes `a/b` strings be recognized as plugin ids (plus the previous way of
  recognition via a test to the disk, for single-word id-as plugins).
- Correctly handle ices with values and spaces (i.e., `sbin'* -> foo'`)
- OhMyZsh short-hands (i.e., `OMZP::` or `OMZL`) are recognized as plugin ids.
- It colorizes numbers with `{num}` and time notions (e.g., `3s`) with a new
  code `{time} (color 220 – gold)`
2022-06-16 12:08:24 -05:00
vladislav doster 161d7c1ee1
fix: typo & triggers in documentation workflow (#308)
- correct typo (e.g., branchs -> branches)
- add `main` branch to pull request trigger
2022-06-11 06:45:54 -05:00
vladislav doster 4546669f77
refactor: self-update logic & log styling (#307)
* refactor: self-update logging
* use git branch logic compatible with older git versions (e.g., v1.8.x)
* maint: consistent logging colors
* fix: add a new line in`update` command logging
* docs: re-generate zinit-autoload.zsh asciidoc

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-06-10 22:10:50 -05:00
vladislav doster fb3c082551
fix: alist repository for gh-r test (#305)
- `alist` project ownership was transferred from user`Xhofe` to organization`alist-org`
2022-06-08 13:54:25 -05:00
vladislav doster b0412c02bb
docs: updates for "zinit-formatter-dbg" code (#302)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-06-03 23:24:10 -05:00
Sebastian Gniazdowski 6bbe920330
[feat]: add {dbg} formatter to .zinit-message (#286)
Co-authored-by: vladislav doster <mvdoster@gmail.com>
2022-06-03 23:17:18 -05:00
vladislav doster 591b332d8e
docs: updates for "zinit-formatter-auto" code (#301)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-06-03 20:42:49 -05:00
vladislav doster 2b70a01cf0
Merge pull request #290 from psprint/auto-formatter
feat: automatic log formatting function
2022-06-03 20:23:30 -05:00
vladislav doster 308c9d4cd8
fix: remove curl option "--tcp-fastopen" which is not always available (#299)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-06-03 20:20:36 -05:00
vladislav doster 7cbb680a30
Merge branch 'main' into auto-formatter 2022-06-01 09:28:27 -05:00
Sebastian Gniazdowski 9b86424521 A new {auto}, smart formatter 2022-05-30 17:09:55 +02:00
Sebastian Gniazdowski bcedc9ff94
Propagate -o xtrace when needed and prepend builtin to emulate (#293) 2022-05-29 12:47:27 -05:00
vladislav doster eb19b5bafc
maint: update ISSUE_TEMPLATE/bug-report.yml
- add commands to run to get relevant information
- clean up wording, formatting and punctuation
2022-05-29 00:12:12 -05:00
Aaron Lichtman ff7fd49760
Merge pull request #288 from tony/patch-1 2022-05-27 20:04:31 -05:00
Tony Narlock 87da39ec15
docs(README): Fix migration link 2022-05-24 17:35:12 -05:00
vladislav doster 1f4ba5ae0c
fix: unmatched "(" in windows gh-r patterns (#280)
Signed-off-by: Vladislav Doster <vladislav.doster@Mastercard.com>

Co-authored-by: Vladislav Doster <vladislav.doster@Mastercard.com>
2022-05-22 22:33:12 -05:00
vladislav doster f8d8999809
maint: remove "pokeget" test due to repo deletion (#281)
Signed-off-by: Vladislav Doster <vladislav.doster@Mastercard.com>
2022-05-22 22:11:27 -05:00
vladislav doster 07cde66008
fix: docs workflow should fail if out-of-date (#278)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-21 23:04:56 -05:00
vladislav doster 8620574a55
fix: account for systems where musl is present (#269)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-18 14:36:23 -05:00
vladislav doster 92a235654a
style: format CODE_OF_CONDUCT to fix failing test (#275)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-14 07:59:27 -05:00
vladislav doster 0825607f63
docs: create a code of conduct for contributors (#273)
- Recommended for projects of all sizes
- Update labeler configuration to mark changes to markdown files in
  repository root directory as `docs`

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-14 07:34:17 -05:00
vladislav doster 4d4cb13fa8
maint: expand systems (macos-{12,10.15} & ubuntu-{22.04,18.04} that run unit tests (#268)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-12 01:19:09 -05:00
vladislav doster f25b4ae2b9
feat: add krew and prebuilt-ripgrep gh-r zunit tests (#267)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-10 21:16:09 -05:00
vladislav doster c703290fc2
maint: add got binary to gh-r tests (#266)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-10 10:50:33 -05:00
vladislav doster 26070d6992
maint: remove --tap flag from zunit tests 2022-05-09 20:55:22 -05:00
vladislav doster 7dae300326
maint: add hoofli, joincap, etcd, euterpe, and certificates gh-r tests (#263)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-09 20:50:31 -05:00
vladislav doster 96135bc5e5
maint: use zdharma-continuum zunit repository (#264) 2022-05-09 20:49:10 -05:00
vladislav doster 2cdeef387a maint: modify linux-(gnu|musl) patterns (#260)
* maint: modify linux-(gnu|musl) patterns

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-09 14:06:54 -05:00
vladislav doster b617e54262
maint: add warp & moonwalk tests && add misc. descriptions (#261)
- Add tests for `moonwalk`, `helix`, `wtf`, `alist`, `moonwalk`, and `warp`
- Add descriptions for multiple programs

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-09 14:04:53 -05:00
vladislav doster b74f627ffa
maint: improve gh actions trigger for zshelldocs (#262)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-09 14:04:09 -05:00
Yusei Ueno 05559ebdbc
fix: syntax error when checking for realpath command (#259)
Closes #257
2022-05-08 20:40:20 -05:00
Tommy Wang b6f286b2c7
Add a new ice named "link", enabling local snippets to be symlinked instead of copied into the cache. (#234)
* Add link ice for local-only snippets that uses symlink instead of copying
* update docs
* fix README for link ice
* fix unit tests for link ice
- account for the host not having `realpath` >= 8.23 (the symlink will be
  an absolute path instead of a relative path)
2022-05-07 18:06:46 -05:00
vladislav doster 4a9f9df022
maint: fix macos pattern, add new tests and format (#250)
- darwin gh-r pattern now includes the `.dmg` extension
- `gh-r` tests for bit, gron, pulumi, atmos, keepassxc, alacrity, assh,
  and dog
- clean up duplicate code with formatting and moving duplicate logic to
  the default ice, if possible

See #243 #245 #247

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>():
2022-05-06 08:40:31 -05:00
dependabot[bot] 692a98b180
build(deps): bump docker/setup-qemu-action from 1 to 2 (#252)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-06 07:26:29 -05:00
dependabot[bot] de86c20a10
build(deps): bump docker/setup-buildx-action from 1 to 2 (#253)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-06 07:26:22 -05:00
dependabot[bot] 256d90e4bb
build(deps): bump docker/login-action from 1 to 2 (#254)
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-06 07:26:00 -05:00
dependabot[bot] 580c1e8233
build(deps): bump docker/build-push-action from 2 to 3 (#251)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 3.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-06 07:25:45 -05:00
vladislav doster d60638f221
fix: gh-r logic ignores [36]86 assets (#235)
Changes:

- Reduce zunit verbosity with `--tap` flag
- `gh-r` tests now use `lbin` instead of `sbin`. `lbin` has smarter
  logic when looking for executables to use in creating a shim
- Add gh-r tests for `rust-analyzer`, `docker-compose`, `neovim` binary &
  appimage, and `kopia`
- Condense gh-r test logic to halve LOC (i.e., 1000+ -> ~500)
- Update gh-r logic to discard 32 bit binaries, improve 64 bit
  selection, and linux-{gnu,musl} patterns

Closes #225, #246, #247

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-05 21:58:38 -05:00
vladislav doster 5c70f5a4a7
maint: improve scope of docs workflow triggers (#249) 2022-05-05 13:37:52 -05:00
vladislav doster 6647bdc31c
feat: add GH action to remove old workflow logs (#248) 2022-05-05 05:21:16 -05:00
vladislav doster 693498484a
maint: use --tap flag to reduce zunit test output (#246)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-04 23:36:39 -05:00
vladislav doster 596d2e7346
maint: refactor snippets.zunit & add multiple tests (#242)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-02 07:26:03 -05:00
vladislav doster 6ef84398b2
fix: modify regex in gh-r for assets to not consider for selection (#244)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-02 06:37:43 -05:00
Philipp Schmitt 4c5854b1cd
Merge pull request #241 from jankatins/fix_plugins_dir_setup
fix: Don't error if $OPTS is not yet defined in .zinit-compinit call
2022-05-02 08:23:55 +02:00
Jan Katins 44765e0bcb fix: Don't error if $OPTS is not yet defined in .zinit-compinit call
This codepath was triggered when deleting the whole `~/.zinit/plugins` dir: during recreation in `.zinit-prepare-home`, `.zinit-compinit &> /dev/null` would be called and the sourcing of `zinit.zsh` would error out with

```
+.zinit-compinit:2> [[.zinit-compinit:2: bad math expression: operand expected at `/Users/jan...'
 -n '' ]]
```

As the error was redirected to `/dev/null`, this never showed up. Any zinit install call during that session would not run any hooks as they were not yet registered. The next session would then be fine because the plugins dir would exist.
2022-05-01 22:41:48 +02:00
vladislav doster 49af86688b
fix: trigger for PR labeler GH action workflow (#237)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-29 02:25:55 -05:00
vladislav doster 8a0d5678d1
fix: permissions for PR labeler GH action workflow (#236)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-29 02:11:14 -05:00
vladislav doster 08c705381e
maint: gh-r tests for atuin, compress, gosu, and v (#233)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-28 08:31:57 -05:00
vladislav doster 5b734115dc
maint: update Makefile targets (#224)
- add `zwc` target to compile zinit source to `.zwc`
- add zsh path variable
- add 'test' target to easily run zunit tests
- clean target cleans `.zwc` and more explicit for `.adoc`
- remove `scripts/zcompile` script

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-28 03:59:47 -05:00
vladislav doster 126528ccd5
feat: add compile vim from source zunit test (#232)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-27 19:18:06 -05:00
vladislav doster 630f21f167
docs: remove git.io URL use from install command (#230)
Closes #229

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-26 15:19:20 -05:00
vladislav doster 57f0d82118
fix: gh-r filters i686 (32 bit) for x86_64 (#226)
* fix: gh-r filters i686 (32 bit) for x86_64

Closes #225

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-26 14:40:09 -05:00
vladislav doster 450d3c10a8
feat: add -a (actual time) to zinit times cmd (#223)
- Display load moments to `zinit times` via new `-a` flag.

I found it useful to show both plugin load times, as well as load moments:

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-25 01:36:25 -05:00
vladislav doster bad7af3ae2
feat: ability to set program for zinit ls to use (#221)
A user can now specify a program via the `$ZINIT[LIST_COMMAND]`
variable. Additionally, it will first check for `exa` and fallback to
tree if this variable is not set.

e.g., use exa or any `tree`-esque program in `zinit ls`.

Closes #170

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-25 01:00:47 -05:00
vladislav doster 421855b933
maint: add hadolint (dockerfile linter) gh-r zunit test (#222)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-25 00:25:02 -05:00
vladislav doster d0e7f9d204
doc: improve zsd gen, pdf output, and gh workflow (#220)
- Fix to re-enable users to generate zshelldoc documentation without
  docker.
- Update most asciidoctor blocks in Zinit source code to fix issue where
  they would take up a line above the next function name
- Remove unnecessary steps from the documentation Github action workflow
- Misc. Makefile changes in clean and doc targets logic

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-24 20:42:44 -05:00
vladislav doster af4dcd5950
maint: update issue templates to organize new issues (#219)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-24 07:16:11 -05:00
vladislav doster fa269b4312
docs: update README.md install command to use bash to avoid error (#218)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-24 06:25:34 -05:00
vladislav doster d59f15067e refactor: zunit tests & gh-r logic (#201)
- Ability to run unit tests without Docker
- Define a Z-unit \_support/bootstrap script defining the isolated test
  environment in a temp dir via `mktemp -d`, to ensure a clean test
  environment.
- GH actions workflow now tests macOS & Windows and bumps Ubuntu to the
  latest.
- GH actions workflow leverages Homebrew to simplify installing zsh &
  zunit
- Condense Z-unit GH workflow into more organized build matrix. It
  avoids creating a new environment per test file as some test files
  only have one or two tests.
- Change or remove logic in the `setup` and `teardown` functions to
  commands which apply to type of tests being run (e.g., `gh-r` setup
  sets defualt ice `gh-r` and `nocompile`).
- Expand tests for testing `gh-r` on Linux & macOS for ensuring correct
  release selection.
- Correct GH workflow `on` conditions to avoid duplicating jobs.
- Update `gh-r` ice logic to be smarter about selecting a release for
  the current system.
- Expand linting to include the tools `shfmt`, `shellcheck`, and
  `mdformat`
- Rudimentary testing for all Zinit annexes (e.g., install with no
  errors)

|   Test   | Before | Now |
| :------: | :----: | :-: |
| annexes  |   3    | 10  |
|   gh-r   |   3    | 95  |
| plugins  |   2    |  3  |
| snippets |   4    |  4  |

<img width="841" alt="Screen Shot 2022-04-23 at 21 57 08" src="https://user-images.githubusercontent.com/10052309/164954220-123a8dc5-0399-41e3-b9cf-98b2cf599145.png">

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-24 05:24:10 -05:00
Aaron Lichtman 537e895c1d
Merge pull request #173 from zdharma-continuum/bugfix/self-update-can-use-any-branch 2022-04-17 19:19:10 -06:00
vladislav doster 0fac4338f4
Merge pull request #215 from zdharma-continuum/feat/expand-linted-file-types
feat: expand linted file types to markdown and shell
2022-04-17 17:38:34 -05:00
Vladislav Doster 96fe03f85b feat: expand linted file types to markdown and shell
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-17 17:26:08 -05:00
Vladislav Doster eab948cdd0 maint: make logging style/colors consistent
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-12 13:12:58 -05:00
Vladislav Doster 047320a923 feat: update output messaging to be more informative
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-11 18:27:09 -05:00
vladislav doster 704f4beca0
Merge pull request #213 from zdharma-continuum/dependabot/github_actions/actions/upload-artifact-3
Bump actions/upload-artifact from 2 to 3
2022-04-11 09:30:28 -05:00
dependabot[bot] 8440defb78
Bump actions/upload-artifact from 2 to 3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 13:37:54 +00:00
Vladislav Doster 23c47e1973 bugfix: zinit self-update respects the current branch
Fix bug in Zinit `self-update` command that used the `main` branch
instead of using current branch.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-11 04:57:18 -05:00
vladislav doster 3a7dc95f02
fix: rename docs to doc to match doc dir (#212) 2022-04-10 22:45:02 -05:00
vladislav doster 42e83d7f99
feat: add PR labeler to show what parts of Zinit are changed (#211)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-10 22:37:58 -05:00
vladislav doster c888917edb
feat(git-process-output): simplify progress-bar (#204)
- use a single style for the progress bar style
- simplify logic

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-03-27 20:20:27 -05:00
vladislav doster 165a05b4f8
Merge pull request #205 from zdharma-continuum/fix/update-docs-with-jq-check
fix: update docs for new jq-check
2022-03-26 22:29:02 -05:00
Vladislav Doster 6207427256 fix: update docs for new jq-check
- regenerate docs for `zinit-install`

Missed in the [initial PR](https://github.com/zdharma-continuum/zinit/pull/202)
due to a bug and overlooked in
[bugfix PR](https://github.com/zdharma-continuum/zinit/pull/203)

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-03-26 22:19:49 -05:00
Aaron Lichtman 19ae78f3f4
Merge pull request #203 from dusty-phillips/patch-1 2022-03-22 09:41:43 -06:00
Dusty Phillips 6f039dfaee
Fix zinit-jq-check command in zinit-get-package
This is failing for lack of a `.`.
2022-03-22 10:01:58 -03:00
Philipp Schmitt b5c6b51b87
Merge pull request #202 from zdharma-continuum/maint/check-for-jq-in-zinit-get-package
maint: check for `jq` command in `.zinit-get-package`
2022-03-21 08:37:43 +01:00
Vladislav Doster ce6ba3551d maint: check for jq command in .zinit-get-package
Error loudly instead of silently exiting when erroring due to `jq`
absent.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-03-21 00:22:48 -05:00
Aaron Lichtman 26109d474e
Merge pull request #200 from pschmitt/make-docs-docker 2022-03-20 22:34:47 -06:00
Philipp Schmitt e47a11dbb2
Fix workdir 2022-03-18 23:24:43 +01:00
Philipp Schmitt 78c898ea77
Remove the RC dance. GH runners will exit early on their own. 2022-03-18 08:19:02 +01:00
Philipp Schmitt b29b4fb657
Add missing make doc step 2022-03-17 23:05:30 +01:00
Philipp Schmitt 8f03e147a9
Update doc generation docs 2022-03-17 23:04:14 +01:00
Philipp Schmitt 8e81b90335
Use container for generating docs 2022-03-17 22:55:04 +01:00
Philipp Schmitt bc1bedb590
Merge pull request #191 from zdharma-continuum/dependabot/github_actions/actions/checkout-3
Bump actions/checkout from 2 to 3
2022-03-02 17:35:34 +01:00
dependabot[bot] eb9ca00bde
Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 12:26:37 +00:00
Aaron Lichtman d1cb4e2b47
Merge pull request #187 from zdharma-continuum/optimize-zshdoc-ci 2022-02-22 16:20:03 -07:00
Aaron Lichtman b0c07a8a07
[CI] Only run git diff once
We can return the exit code from the same command we print the diff
from.
2022-02-22 16:02:42 -07:00
Aaron Lichtman 8387dc95a2
Merge pull request #186 from zdharma-continuum/doc-update 2022-02-22 16:00:32 -07:00
Aaron Lichtman 5f6c4f37fb
[CI] Only run git diff once
We can return the exit code from the same command we print the diff
from.
2022-02-22 15:54:23 -07:00
Aaron Lichtman 8860ece124
zinit zshelldoc update
We have a bunch of PRs that contain this large doc update, obscuring the
actual changes that are being made. This is a one-time, large-scale doc
update. Not sure how things got this out of sync, but we should not have
to do this again.
2022-02-22 15:19:58 -07:00
Philipp Schmitt 1c7b985438
Merge pull request #184 from NICHOLAS85/localretval
*autoload: Make retval a local variable
2022-02-21 12:34:14 +01:00
NICHOLAS85 062b9a1c38 Update docs 2022-02-20 16:14:50 -05:00
NICHOLAS85 c078593c3a *autoload: Make retval a local variable 2022-02-20 15:49:40 -05:00
Philipp Schmitt de49ebffe8
Merge pull request #177 from nbrown/git-log-no-paging 2022-02-06 20:42:45 +01:00
Nate Brown b0a09d01b0 Don't page git log for updates 2022-02-06 13:17:58 -05:00
Aaron Lichtman cda2a85d20
Merge pull request #166 from Gerrit-K/feature-165 2022-02-02 22:11:36 -07:00
Gerrit-K ae6807458d Add support for *.tbz files
Apparently bzipped archives are already supported. The file extension `tbz` is just not recognized.

Implements #165
2022-01-17 08:38:14 +01:00
Aaron Lichtman cbf427d464
Merge pull request #161 from AndrewDaws/revert-158-bugfix/bpick-regex-groups 2022-01-16 16:41:33 -06:00
Philipp Schmitt d9ab6775b5
Merge pull request #159 from zdharma-continuum/bugfix/incorrect-patch-dl-not-found-when-installed 2022-01-13 08:47:30 +01:00
vladislav doster 4b11a8d421 (bugfix): fix false error msg zinit-annex-patch-dl is unavailable 2022-01-12 20:25:40 -06:00
Andrew Daws 9154a1aaad
Revert "(bugfix): update bpick regex groups" 2022-01-11 16:29:09 -05:00
vladislav doster 4da69625bc
Merge pull request #158 from vladdoster/bugfix/bpick-regex-groups 2022-01-07 02:31:07 -06:00
vladislav doster 243256558a
(bugfix): update bpick regex groups
- correctly select `musl`
- correctly select `macOS`

A follow-up PR will add an update to select ARM  & `macOS`.
2022-01-07 02:26:31 -06:00
vladislav doster 98d3eaa8be
Merge pull request #143 from nbrown/handle-broken-comp-links
More robust handling of symlinks in the completions folder
2021-12-27 02:27:08 -06:00
Nate Brown 2e17f7c723 Handle relative non-plugin symlinks
If a symlink is relative and does not resolve to a plugin directory, the
loop attempting to extract the plugin ID will get stuck in an infinite
loop. This addresses that issue by catching when :h returns ".".
2021-12-20 21:54:31 -05:00
Nate Brown 6de077f229 Check that the symlink resolves to a real file
If a symlink in the completions folder doesn't resolve properly, the loop
processing the path can become an infinite loop.
2021-12-20 11:09:22 -05:00
Philipp Schmitt 9ee45d6804
Merge pull request #130 from zdharma-continuum/polish-comments 2021-12-06 15:15:48 +01:00
Aaron Lichtman 638d9b5f88
Update zinit.zsh
Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
2021-12-06 06:34:44 -06:00
Aaron Lichtman 8f66657e51
Update zinit.zsh
Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
2021-12-06 06:34:37 -06:00
Aaron Lichtman 69fa943651
Update zinit.zsh
Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
2021-12-06 06:34:32 -06:00
Aaron Lichtman 7c28d37590
Update zinit.zsh
Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
2021-12-06 06:34:26 -06:00
Aaron Lichtman 55596cd39c
Update zinit.zsh
Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
2021-12-06 06:32:22 -06:00
Aaron Lichtman c1850630df
Update zinit.zsh
Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
2021-12-06 06:32:14 -06:00
Aaron Lichtman 46f6cb29a0
Update zinit.zsh
Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
2021-12-06 06:32:09 -06:00
Aaron Lichtman 7bee5ecf33
Translate Polish comments to english
Fix #80
2021-12-06 05:59:58 -06:00
Aaron Lichtman e8058a8c8d
Merge pull request #126 from zdharma-continuum/fix-125 2021-12-02 03:28:58 -06:00
Philipp Schmitt 30f5ad474d
Add host-info input field 2021-12-02 09:55:33 +01:00
Philipp Schmitt 81153ef210
Add zcompile step 2021-12-02 09:26:49 +01:00
Philipp Schmitt 5a9a9e4d7b
Update docs 2021-12-02 09:01:19 +01:00
Philipp Schmitt 3acacc246d
Fix #125 2021-12-02 08:54:24 +01:00
Philipp Schmitt 9c73ed01a0
Merge pull request #117 from zdharma-continuum/ci-zsd 2021-12-01 09:08:54 +01:00
Philipp Schmitt 6b28299ce2
zinit-annex-as-monitor -> zinit-annex-readurl 2021-12-01 08:56:56 +01:00
Philipp Schmitt 62ff1be0f9
Fix links 2021-12-01 08:55:42 +01:00
Philipp Schmitt 1e6bdf0e9b
Merge pull request #112 from zdharma-continuum/return-hook-rc 2021-12-01 08:49:45 +01:00
Philipp Schmitt d82c6133ae
Update wiki links 2021-12-01 08:46:15 +01:00
Aaron Lichtman 19347bad3b
Merge pull request #121 from pschmitt/update-issue-templates 2021-11-30 07:09:46 -06:00
Philipp Schmitt 72b446d335
Update issue templates 2021-11-30 13:17:57 +01:00
Philipp Schmitt fec35cbd54
Merge pull request #120 from pickoba/fix-install 2021-11-30 12:59:44 +01:00
KOBAYASHI Ryota 4b2f053d14 fix install script 2021-11-30 18:15:06 +09:00
Philipp Schmitt 95e8f43ba9
Emojis. Everywhere. 2021-11-29 18:54:41 +01:00
Philipp Schmitt 7f456fdbd4
MORE EMOJIS 😱 2021-11-29 18:45:44 +01:00
Philipp Schmitt fc9fe3877c
More. emojis! 🚩 2021-11-29 18:42:06 +01:00
Philipp Schmitt 005e76a7b8
🤣 Add emojis 2021-11-29 18:40:30 +01:00
Philipp Schmitt 903a612957
Don't push images for PR - just build them. 2021-11-29 18:35:00 +01:00
Philipp Schmitt 4289227ada
Remove redundant VERSION build arg 2021-11-29 18:23:06 +01:00
Philipp Schmitt b78a3455ce
Add workflow_dispatch trigger 2021-11-29 18:06:36 +01:00
Philipp Schmitt 84f41b9713
Add comment about LC_ALL 2021-11-29 18:00:13 +01:00
Philipp Schmitt 741d653ccf
Fix unicodes chars in adoc files (LC_ALL=en_US.UTF-8) 2021-11-29 17:55:07 +01:00
Philipp Schmitt 46f4d23644
Update zsd 2021-11-29 17:44:55 +01:00
Philipp Schmitt cf16a3530e
Give the PDF step a more meaningful name 2021-11-29 17:44:42 +01:00
Philipp Schmitt 3cd6794648
Check if zsd docs are up to date 2021-11-29 17:37:44 +01:00
Philipp Schmitt ae57b44f65
Update zsdoc 2021-11-29 16:53:59 +01:00
Philipp Schmitt 37af5fb32f
Remove debug output 2021-11-29 16:53:39 +01:00
Philipp Schmitt 29c2f5eae8
Update CHANGELOG 2021-11-29 16:51:06 +01:00
Philipp Schmitt 4851cf29ab
Add GOPATH/bin to PATH 2021-11-29 16:43:54 +01:00
Philipp Schmitt 835548990c
Log and return != 0 when updating multiple plugins 2021-11-29 16:43:53 +01:00
Philipp Schmitt 2be9cad6dc
Fix: Make sure go-md2man is installed (it is requires for building the manpage, make will fail otherwise) 2021-11-29 16:43:53 +01:00
Philipp Schmitt 99e3d60a5a
Return 0 if there's nothing to do in the ps-on-update-hook 2021-11-29 16:43:53 +01:00
Philipp Schmitt f7255ed3dd
Fix zinit update rc 2021-11-29 16:43:53 +01:00
Philipp Schmitt 82ad9c7119
Add atpull zunit test 2021-11-29 16:43:53 +01:00
Philipp Schmitt 9b2b338463
Forward atpull return codes 2021-11-29 16:43:52 +01:00
Philipp Schmitt be3ab32606
Fix failing atclone test 2021-11-29 16:43:52 +01:00
Philipp Schmitt 26171369da
Return bad rcs for annex hooks 2021-11-29 16:43:52 +01:00
Philipp Schmitt a310fa8750
Further forward non-zero RCs 2021-11-29 16:43:52 +01:00
Philipp Schmitt b8dcc812fa
Add zunit test for failing atclone hooks 2021-11-29 16:43:51 +01:00
Philipp Schmitt 3a6bf5b8bb
Explicitly return 0 in extract hook 2021-11-29 16:43:51 +01:00
Philipp Schmitt c1048390fa
Explicitly return 0 and exit somewhat more cleanly in compile hook 2021-11-29 16:43:51 +01:00
Philipp Schmitt 7399ff460b
Return cleanly when make hook invoked but make"!(!?)" not set 2021-11-29 16:43:51 +01:00
Philipp Schmitt 50d7708d4c
Make zinit return != 0 when a hook fails 2021-11-29 16:43:51 +01:00
Philipp Schmitt a4fd45576f
Fix typos 2021-11-29 12:51:24 +01:00
Philipp Schmitt 3318c315d8 Update zsdoc 2021-11-29 09:53:12 +01:00
Philipp Schmitt 1d0b8b953a Consume the ver ice when loading package 2021-11-29 09:53:12 +01:00
Philipp Schmitt fa16e90034 Leverage the ver ice to install from a specific branch or commit 2021-11-29 09:53:12 +01:00
Philipp Schmitt 02a4c923c2 Add breaking change notice about jq 2021-11-29 09:53:12 +01:00
Philipp Schmitt b5126c31ab 💅 Prettify output 2021-11-29 09:53:12 +01:00
Philipp Schmitt 2c1b528e46 Use jq for json parsing 2021-11-29 09:53:12 +01:00
Philipp Schmitt 7d65e1646b Allow installation from local packages.json files or other repositories 2021-11-29 09:53:12 +01:00
Philipp Schmitt 8b80ee7fd8
Add zinit::reload and re-init 2021-11-28 23:18:27 +01:00
Philipp Schmitt b0adaf69f5
Add a few options 2021-11-28 22:59:31 +01:00
Philipp Schmitt c58c351e05
Relegate test annex to extras 2021-11-28 22:43:38 +01:00
Philipp Schmitt 53cf43b9aa
Source fancy stuff (and esp. annexes) before reading in user runtime config 2021-11-28 22:41:45 +01:00
Philipp Schmitt 17c611ac0d
Only build :latest when pushing to main branch 2021-11-28 22:27:33 +01:00
Aaron Lichtman 8b5ed2a597
Merge pull request #114 from zdharma-continuum/lint 2021-11-27 17:16:43 -06:00
Philipp Schmitt 33c029db2b
DRY 2021-11-27 23:01:25 +01:00
Philipp Schmitt 01273ad374
Add workflow_dispatch trigger for zunit tests 2021-11-27 22:58:34 +01:00
Philipp Schmitt be79f775a6
Basic linting 🤗 2021-11-27 21:25:12 +01:00
Philipp Schmitt e06bc81be8
Add jq 2021-11-27 19:26:22 +01:00
Philipp Schmitt 92cf01ce78
Move fancy stuff to a dedicated zshrc file 2021-11-26 22:49:45 +01:00
Philipp Schmitt 4f34b08d90
Add --devel flag to mount repo as /src 2021-11-26 21:07:53 +01:00
Philipp Schmitt 29777969dc
Enable history 2021-11-26 21:07:30 +01:00
Philipp Schmitt c1c3911702
Add ls alias (--color=auto) 2021-11-26 11:36:14 +01:00
Philipp Schmitt 5c2f497695
Make sure SHELL is defined 2021-11-26 09:55:26 +01:00
Philipp Schmitt 2e3af3e803
Add neovim and alias vim to neovim 2021-11-25 09:38:11 +01:00
Aaron Lichtman f8040f8a4d
Merge pull request #107 from zdharma-continuum/bz2-rename 2021-11-25 01:59:57 -06:00
Philipp Schmitt f8302dd45f
Add bz2 extension to bz2 files before attempting to extract. Fixes #105 2021-11-25 08:58:16 +01:00
Aaron Lichtman d635ee59cb
Merge pull request #106 from daehyeok/echo_warn 2021-11-25 01:50:59 -06:00
Daehyeok Mun a4eda707f4 Fix warning messages
Signed-off-by: Daehyeok Mun <daehyeok@gmail.com>
2021-11-24 23:39:17 -08:00
Philipp Schmitt b368c5cced
Add coreutils, node/npm and ruby/gem 2021-11-24 06:52:46 +01:00
Philipp Schmitt 6fb7d38fc2
Add --env alias for --environment 2021-11-23 15:40:41 +01:00
Philipp Schmitt 8881531904
Disable zsh 5.1.1 builds 2021-11-23 13:23:47 +01:00
Philipp Schmitt 2f6cc2737b
Limit docker builds to 90 minutes of runtime (instead of the default 6 hours) 2021-11-23 12:56:05 +01:00
Philipp Schmitt 6c5df71e96
Fetch the annexes during the install (#104) 2021-11-23 11:18:11 +01:00
Philipp Schmitt 9a9be0c293
🐳 Add annexes to container (#103) 2021-11-23 11:17:39 +01:00
Philipp Schmitt cbb867335d
Add -f|--file flag to provide the init config via a file rather than its content (-c) 2021-11-22 20:44:34 +01:00
Philipp Schmitt 24f278f49a
Update CHANGELOG: master -> main 2021-11-22 09:02:05 +01:00
Philipp Schmitt 7cd8768de4
Update default branch from master to main (#100) 2021-11-22 08:40:16 +01:00
Aaron Lichtman 62c2bfa788
Merge pull request #98 from zdharma-continuum/fancy-url
Shorten install url
2021-11-21 19:23:52 -06:00
Philipp Schmitt f258041d63
Add notes about supported ice list 2021-11-21 15:18:06 +01:00
Philipp Schmitt 2feb41cf70
chown /data as well as its content 2021-11-21 12:10:04 +01:00
Philipp Schmitt 351bdeb10a
Do not prompt for the annexes if updating 2021-11-21 12:03:04 +01:00
Philipp Schmitt 85bf36c6b0
Fix warning messages 2021-11-21 11:55:31 +01:00
Philipp Schmitt 564801c2e5
Fix typo: warning -> warn 2021-11-21 11:53:50 +01:00
Philipp Schmitt e866a7a1e8
Make sure TERM is set in the container. Fixes #97 (#99) 2021-11-21 11:26:51 +01:00
Philipp Schmitt 8dc5641f8a
Shorten install url 2021-11-21 09:03:18 +01:00
Aaron Lichtman 752bf63739
Merge pull request #96 from pschmitt/testing!
Testing!
2021-11-21 01:17:07 -06:00
Philipp Schmitt 8fc215c85a
Fix typo
Co-authored-by: Aaron Lichtman <aaronlichtman@gmail.com>
2021-11-21 08:13:54 +01:00
Philipp Schmitt c53a3f6cc7
Fix ices tests 2021-11-21 08:10:35 +01:00
Philipp Schmitt 43a81e12c8
Don't override other env vars when run with --zunit 2021-11-21 08:02:38 +01:00
Philipp Schmitt 6e590e8540
Add -e|--environment flag (and silence zunit runs) 2021-11-21 08:01:23 +01:00
Philipp Schmitt f2daa6e665
Add --zsh-debug|-x flag to wrap commands in zsh -x 2021-11-20 22:53:28 +01:00
Philipp Schmitt 607d119596
Fix direnv ices 2021-11-20 22:32:39 +01:00
Philipp Schmitt 3ac21a9ba1
Test the sbin ice 2021-11-20 21:54:49 +01:00
Philipp Schmitt 0f1093df35
chmod +x on all the zunit files 2021-11-20 21:47:27 +01:00
Philipp Schmitt 977f0f6e77
Document (z)unit testing 2021-11-20 21:40:25 +01:00
Philipp Schmitt fddfb49c91
Add zunit test badge 2021-11-20 21:24:23 +01:00
Philipp Schmitt 6039ae5375
Update CHANGELOG 2021-11-20 21:16:51 +01:00
Philipp Schmitt 9d9e410536
Testing with zunit! 2021-11-20 21:16:34 +01:00
Aaron Lichtman 4904564338
Merge pull request #95 from zdharma-continuum/xdg-zinit-home-dir 2021-11-20 07:54:45 -06:00
Philipp Schmitt a572ff72cd
Update CHANGELOG 2021-11-20 14:53:55 +01:00
Philipp Schmitt 3cb7ca9413
Fall back to XDG_DATA_HOME 2021-11-20 14:19:34 +01:00
Philipp Schmitt 4c4739f118
Add XDG_DATA_HOME/zinit to the list of paths where ZINIT[HOME_DIR] might be 2021-11-20 14:15:41 +01:00
Aaron Lichtman 738b74d0cb
Merge pull request #94 from zdharma-continuum/refactor-mandir-creation 2021-11-20 07:05:50 -06:00
Philipp Schmitt 49fb3460e7
Move ZINIT[MAN_DIR] creation to .zinit-prepare-home 2021-11-20 14:02:42 +01:00
Philipp Schmitt 74176c51da
Remove run.sh 2021-11-20 11:00:57 +01:00
Philipp Schmitt fc0e559d93
Update container image 2021-11-20 10:59:52 +01:00
Aaron Lichtman 8f4e3bbfa0
Merge pull request #88 from zdharma-continuum/container-imprivements
🐳 Container improvements
2021-11-20 01:18:58 -06:00
Aaron Lichtman 253df67c4c
Merge pull request #89 from zdharma-continuum/update-manpage
📚 Update manpage, zsd, README TOC and add instructions for docs
2021-11-20 01:18:27 -06:00
Philipp Schmitt b78e38133b
Update zshelldoc 2021-11-20 00:12:00 +01:00
Philipp Schmitt bf61d59754
Ignore zshelldoc data 2021-11-20 00:11:46 +01:00
Philipp Schmitt 5d85bdb9ae
Fix typo 2021-11-20 00:09:08 +01:00
Philipp Schmitt f84fa61935
Add instructions for zsd and asciidoc 2021-11-20 00:06:52 +01:00
Philipp Schmitt 59f45f1bbe
Update TOC 2021-11-20 00:01:25 +01:00
Philipp Schmitt 94d820e34f
Add instructions for updating the TOC of the README 2021-11-20 00:00:06 +01:00
Philipp Schmitt 174dc4d5d6
Update manpage and add documentation for generating it from the README 2021-11-19 23:51:58 +01:00
Philipp Schmitt 4a19ad9b04
Add missing "the"s 2021-11-19 23:44:06 +01:00
Philipp Schmitt f02ee7ca2a
zinit::setup-annexes: Skip zinit-annex-man since it has a lot more dependencies than the others 2021-11-19 23:37:44 +01:00
Philipp Schmitt 932be72cf4
Compile annexes, cause we can now! 2021-11-19 23:32:28 +01:00
Philipp Schmitt 8a8605620f
Fix ice for OMZL::keys 2021-11-19 23:27:31 +01:00
Philipp Schmitt fc65d8913b
Load utils.zsh from /src instead the root filesystem (allows overriding it via a vol mount) 2021-11-19 20:05:54 +01:00
Philipp Schmitt 10ed7860c9
Sane keybindings 2021-11-19 19:59:16 +01:00
Philipp Schmitt 73f2611d27
Add helper function for installing zshelldoc (zsd) 2021-11-19 19:49:33 +01:00
Philipp Schmitt 8938a1537d
Add missing annexes 2021-11-19 18:59:08 +01:00
Philipp Schmitt cedfd2526e
Remove entrypoint.zsh 2021-11-19 18:56:34 +01:00
Philipp Schmitt 11713a0a35
Fix docker build script and move it to scripts/ 2021-11-19 18:55:55 +01:00
Philipp Schmitt ad9f5e7195
Remove dead link (NEWS is gone) 2021-11-19 13:03:31 +01:00
Philipp Schmitt cd81e69bcc
🚚 module: Get rid of the zdmodules/ dir (#87) 2021-11-19 10:14:51 +01:00
Aaron Lichtman 780c2e14b1
Merge pull request #86 from zdharma-continuum/module-fixes 2021-11-19 02:55:20 -06:00
Philipp Schmitt 8f3346710c
Fix if else syntax 2021-11-19 08:03:34 +01:00
Philipp Schmitt c7f5ee25d4
Fix zinit module build when module repo has already been cloned before 2021-11-19 07:11:45 +01:00
Aaron Lichtman 2fe772e439
Merge pull request #85 from zdharma-continuum/plugin-template-git-config 2021-11-18 23:48:42 -06:00
Philipp Schmitt bac6446ce4
✂ Remove custom git config for new plugins 2021-11-19 06:45:51 +01:00
Aaron Lichtman 17062eb38e
Merge pull request #82 from zdharma-continuum/relocate-template-script 2021-11-18 23:39:49 -06:00
Philipp Schmitt cbf27d85f8
Partial revert of 1d7185a526
- The MIT license file is added to the repo by default again
- The printed message has been adjusted accordingly
2021-11-19 06:36:01 +01:00
Aaron Lichtman 79a26fdc96
Merge pull request #79 from zdharma-continuum/remove-travis-ci 2021-11-18 21:21:56 -06:00
Aaron Lichtman 5def74b60c
Merge pull request #83 from zdharma-continuum/winter-cleanup 2021-11-18 21:21:27 -06:00
Philipp Schmitt 3acc88379e
Don't assume the user wants a default .gitattributes 2021-11-18 23:04:06 +01:00
Philipp Schmitt 94d530d617
Escape ! 2021-11-18 23:03:30 +01:00
Philipp Schmitt 1d7185a526
Don't assume the user wants his newly created plugin to be MIT licensed 2021-11-18 22:56:53 +01:00
Philipp Schmitt 35512afa32
🧹 Move scripts to scripts/ dir 2021-11-18 22:48:11 +01:00
Philipp Schmitt 55b6ff199b
🧹 Move template plugin data to share/template-plugin 2021-11-18 22:38:45 +01:00
Philipp Schmitt 126ad8ddbf
Remove shields from manpage 2021-11-18 22:22:24 +01:00
Philipp Schmitt 1060000b00
Remove more travis bits 2021-11-18 22:14:17 +01:00
Philipp Schmitt 4ca1ad9e93
✂️ Remove Travis CI config 2021-11-18 21:47:42 +01:00
Philipp Schmitt 5e3e66818a
Merge pull request #78 from joakimgottzen/patch-1 2021-11-18 15:05:36 +01:00
Joakim Gottzén cbee0bd671
Print the correct module path
https://github.com/zdharma-continuum/zinit-module/commit/a1125ba updated the path of the compiled module, but it's not reflected in the output after a successful build by `zinit module build`.

Update .zinit-module to print the correct module path.
2021-11-18 13:55:22 +00:00
Aaron Lichtman 3b6d0b8b28
Merge pull request #75 from zdharma-continuum/zinit-package-monorepo 2021-11-18 05:26:00 -06:00
Aaron Lichtman 9d87127555
Fix URL 2021-11-18 05:22:51 -06:00
Philipp Schmitt 2bda700a91
Merge branch 'master' into zinit-package-monorepo 2021-11-18 12:11:48 +01:00
Philipp Schmitt b84589009e
Update CHANGELOG 2021-11-18 12:08:42 +01:00
Aaron Lichtman 70b1d0a079
Merge pull request #76 from zdharma-continuum/no-news-good-news 2021-11-18 01:47:32 -06:00
Philipp Schmitt 8816c52552
Update TOC 2021-11-18 08:37:32 +01:00
Philipp Schmitt eff3e545cb
Merge remote-tracking branch 'upstream/master' into no-news-good-news 2021-11-18 08:32:43 +01:00
Philipp Schmitt 335ef62556
Remove NEWS.md
Fixes #72
2021-11-18 08:21:26 +01:00
Aaron Lichtman bef57e843d
Merge pull request #70 from zdharma-continuum/ci-docker 2021-11-18 01:04:14 -06:00
Philipp Schmitt ffdf5a7e66
Merge branch 'master' into ci-docker 2021-11-18 08:03:30 +01:00
Aaron Lichtman 1ad75de009
Merge pull request #71 from zdharma-continuum/relocate-module 2021-11-18 01:01:13 -06:00
Philipp Schmitt cd2a5f1f96
zinit-packages monorepo - Fix #69 2021-11-18 07:56:43 +01:00
Philipp Schmitt 10d2f507fa
Update filenames and path
Mostly zplugin -> zinit and zdharma -> zdharma-continuum
Ref: a67877efa9
2021-11-17 22:24:07 +01:00
Philipp Schmitt eb3946d8f7
Allow overriding the module install dir via ZINIT[MODULE_DIR] 2021-11-17 22:17:30 +01:00
Philipp Schmitt 3020177e1c
✂️ Relocate module 2021-11-17 22:10:13 +01:00
Philipp Schmitt d03784f74f
Update changelog: containers are now available 2021-11-17 20:30:39 +01:00
Philipp Schmitt 2583464bd5
🤖 Automated container builds 2021-11-17 19:58:12 +01:00
Aaron Lichtman 5df5fb6b46
Merge pull request #61 from zdharma-continuum/installer-ng 2021-11-17 02:19:04 -06:00
Aaron Lichtman 168b28ac24
Merge pull request #66 from pschmitt/hacking-md 2021-11-17 02:18:42 -06:00
Philipp Schmitt 9206ad4a06
Merge pull request #67 from vladdoster/patch-2
(bugfix): add macos as possible release descriptor
2021-11-17 07:41:02 +01:00
vladislav doster b10e1c5fdc
(bugfix): add macos as possible release descriptor
Fixes issue where Neovim uses `macos` as a descriptor and fails to download.
2021-11-16 20:26:43 -06:00
Philipp Schmitt 2d2adaff5a
Clarify that documentation is the name of branch 2021-11-16 17:55:22 +01:00
Philipp Schmitt 633a04d479
Link to doc README (#in-case-of-fire) 2021-11-16 14:46:24 +01:00
Philipp Schmitt ce3cd5c616
Move HACKING.md to doc/ 2021-11-16 14:36:28 +01:00
Philipp Schmitt 424611f297
Add HACKING.md
Ref: https://github.com/zdharma-continuum/zinit/pull/53
2021-11-16 14:24:06 +01:00
Philipp Schmitt 437b071a6b
Sort steps 2021-11-16 12:03:40 +01:00
Philipp Schmitt e099e2373b
Leverage tilde expansion for artifact files 2021-11-16 11:58:36 +01:00
Philipp Schmitt 7bbeb17c94
Enable macOS checks 2021-11-16 11:23:29 +01:00
Philipp Schmitt 74ee9397e9
Update git-process-output.zsh url 2021-11-16 11:09:59 +01:00
Philipp Schmitt cd4f759dfb
Merge remote-tracking branch 'upstream/master' into installer-ng 2021-11-16 10:55:28 +01:00
Philipp Schmitt efb25ce137
Add FIXME notice in regards to windows artifacts 2021-11-16 10:01:34 +01:00
Philipp Schmitt f4588c87c4
zinit installs on windows (cygwin) 2021-11-16 10:00:00 +01:00
Aaron Lichtman 98b579a43a
Merge pull request #55 from pschmitt/spring-cleaning 2021-11-16 02:59:03 -06:00
Aaron Lichtman 5f6a2549ec
Fix typo 2021-11-16 02:48:53 -06:00
Philipp Schmitt 6eb36d0014
Add new installer section to the CHANGELOG 2021-11-16 08:38:45 +01:00
Philipp Schmitt e6c48ac214
Fix install.sh URL (don't hardcode the branch name) 2021-11-16 08:25:56 +01:00
Philipp Schmitt 587b5407f3
Fix shellcheck issues 2021-11-16 07:19:48 +01:00
Philipp Schmitt fce79125d1
Add shellcheck 2021-11-16 07:15:16 +01:00
Philipp Schmitt 6436189cda
Update zsh version check 2021-11-15 22:52:05 +01:00
Philipp Schmitt b9674e2995
Add warning about zsh version if < 5.5 2021-11-15 22:24:32 +01:00
Philipp Schmitt 428d718229
ZPLG -> ZINIT 2021-11-15 21:58:17 +01:00
Philipp Schmitt 0c425c656d
🔪 Shorten the tutorial section 2021-11-15 21:53:08 +01:00
Philipp Schmitt 52ab2fc220
XDG-ify ZINIT_HOME in manpage 2021-11-15 21:42:58 +01:00
Philipp Schmitt 3d8ac200a9
XDG-ify ZINIT_HOME 2021-11-15 21:41:12 +01:00
Philipp Schmitt 4c2b461344
Update tutorial section 2021-11-15 21:32:59 +01:00
Aaron Lichtman 5253de6179
Update scripts/install.sh 2021-11-15 14:29:55 -06:00
Philipp Schmitt dd704137e5
We need more emojis. 2021-11-15 21:13:58 +01:00
Philipp Schmitt c27252c983
Remove the last remaining inline color escape sequences 2021-11-15 21:09:51 +01:00
Philipp Schmitt 0742fe925a
Only chmod +x the git output script if it was downloaded 2021-11-15 20:12:52 +01:00
Philipp Schmitt 32d67c4f3d
Move mod-install.sh to scripts/ 2021-11-15 20:09:24 +01:00
Philipp Schmitt ac892821ba
Update default paths 2021-11-15 20:07:31 +01:00
Philipp Schmitt e7a007aa74
Add NO_EDIT and NO_TUTORIAL to skip resp. the zshrc edits or the tutorial 2021-11-15 20:02:30 +01:00
Philipp Schmitt c4d3049591
Fix #60: Move the installer to scripts/ 2021-11-15 19:56:52 +01:00
Philipp Schmitt 3c3a223841
Overengineer the installer 2021-11-15 18:49:47 +01:00
Aaron Lichtman 54408969cd
Merge pull request #65 from nbrown/macos-mktemp 2021-11-14 22:58:31 -06:00
Nate Brown a90ad66b07 Use 'mktemp -d' for macos compatibility 2021-11-14 22:45:09 -05:00
Philipp Schmitt c0f14512a0
Move git-process-output.zsh to share/ 2021-11-14 10:38:41 +01:00
Philipp Schmitt 7b0cbe0770
Merge pull request #43 from pschmitt/update-default-install-dir 2021-11-14 10:33:06 +01:00
Aaron Lichtman d2f1df2091
Merge pull request #44 from pschmitt/readme-cleanup 2021-11-14 03:14:57 -06:00
Philipp Schmitt da2eb2cab7
Revert "Update issues link"
This reverts commit 95d1a2fb44.
2021-11-14 10:12:33 +01:00
Aaron Lichtman 156ab11ac4
Merge pull request #54 from pschmitt/be-gone-zplugin 2021-11-13 10:23:29 -06:00
Philipp Schmitt 33131d9a7f
Make the git clone command a bit more readable 2021-11-13 10:01:45 +01:00
Philipp Schmitt f4e1468f33
Don't assume TMPDIR is /tmp 2021-11-13 09:43:58 +01:00
Philipp Schmitt cdc75a62a8
🪓 Remove the remaining zplugin bits 2021-11-12 21:35:38 +01:00
Philipp Schmitt 8de591ba50
Update url and wording 2021-11-12 13:01:19 +01:00
Philipp Schmitt 4837741c89
Shellchecked 2021-11-12 13:01:19 +01:00
Philipp Schmitt 168825fa2c
Update links and references to gh org 2021-11-12 13:01:13 +01:00
Philipp Schmitt 4981685207
Create the entire dir structure to ZINIT_HOME 2021-11-12 13:00:36 +01:00
Philipp Schmitt 6dc5f9c9b1
Update default install dir to XDG_DATA_HOME/zinit/zinit.git
Fixes https://github.com/zdharma-continuum/zinit/issues/40
2021-11-12 13:00:36 +01:00
Philipp Schmitt 95d1a2fb44
Update issues link 2021-11-12 12:59:55 +01:00
Philipp Schmitt 397342987a
Update module installation heading 2021-11-12 12:59:55 +01:00
Philipp Schmitt 8a7e7d61d9
Move NEWS to doc/NEWS.md 2021-11-12 12:59:37 +01:00
Philipp Schmitt 208bb3e69f
Merge pull request #48 from docwhat/pr/more-urls 2021-11-12 08:43:48 +01:00
Philipp Schmitt 85315b5132
Merge pull request #47 from pschmitt/update-annex-repos 2021-11-12 08:43:25 +01:00
Christian Höltje 672ae51414 fix: more cleaning up urls
Builds on PR #47
2021-11-11 17:57:43 -05:00
Philipp Schmitt 2728a6431f
Update changelog: New annex urls 2021-11-11 20:06:09 +01:00
Philipp Schmitt b51c3c6922
Update annexes repo names (#38) 2021-11-11 19:59:38 +01:00
Philipp Schmitt aa758fcdf0
Update repo url 2021-11-10 18:46:04 +01:00
Philipp Schmitt e5f007ede7
Update repo url 2021-11-10 18:45:00 +01:00
Philipp Schmitt 963662a7dd
Update repo url 2021-11-10 18:36:14 +01:00
Aaron Lichtman f5b48be819
Merge pull request #39 from pschmitt/name-censor 2021-11-10 00:12:34 -06:00
Philipp Schmitt dcb834ea06
No more name calling 2021-11-10 07:05:07 +01:00
Philipp Schmitt e151e05f0d
Reduce line length a bit 2021-11-09 18:56:24 +01:00
Philipp Schmitt 1d6ab9fca4
Move banner up 2021-11-09 18:52:56 +01:00
Philipp Schmitt eec76e57ce
🧹 Move zsdoc to doc/zsdoc (#36) 2021-11-09 18:15:20 +01:00
Philipp Schmitt d0cd6f0a4d
🧹 Remove .mailmap (#36) 2021-11-09 17:25:46 +01:00
Aaron Lichtman 6ad9c45642
Merge pull request #34 from pschmitt/disclaimers 2021-11-09 04:07:59 -06:00
Philipp Schmitt 4291d30069
Add link to migration wiki page 2021-11-09 09:19:39 +01:00
Philipp Schmitt a07d1e3f97
Remove reddit badge 2021-11-09 08:48:33 +01:00
Aaron Lichtman 06b0428bd4
Merge pull request #33 from pschmitt/zdharma-org-purge 2021-11-09 01:40:50 -06:00
Philipp Schmitt 60b07eda95
Update social links 2021-11-09 08:38:17 +01:00
Philipp Schmitt 9b97a9803d
Use https where possible 2021-11-09 08:24:25 +01:00
Philipp Schmitt 8de32245b4
Fix remaining links 2021-11-09 08:03:41 +01:00
Philipp Schmitt b3a4fc6ccd
Merge pull request #25 from docwhat/patch-1 2021-11-08 16:56:19 +01:00
Christian Höltje 24f10f6367
fix: package are broken again
You cannot refer to a variable in the same statement as it is declared.
2021-11-08 10:32:17 -05:00
Aaron Lichtman eedc6871e3
Merge pull request #12 from pschmitt/zpfx-manpath-creation 2021-11-07 17:00:46 -06:00
Aaron Lichtman 3e59627c05
Merge pull request #20 from pschmitt/gh-issue-template-update 2021-11-07 17:00:02 -06:00
Aaron Lichtman 6878c24069
Merge pull request #18 from pschmitt/zservices-fix-doc 2021-11-07 16:59:47 -06:00
Aaron Lichtman 1ed8e75e42
Merge pull request #22 from pschmitt/dont-assume-default-branch 2021-11-07 16:59:21 -06:00
Philipp Schmitt 422f517b06
Merge pull request #23 from docwhat/patch-1 2021-11-07 18:26:38 +01:00
Philipp Schmitt 386a183e2e
Merge pull request #24 from docwhat/patch-2 2021-11-07 18:25:16 +01:00
Christian Höltje 73a8c92d43
fix: use [*] inside arbitrary strings.
Only use `[@]` as only content of a string. e.g., "${foo[@]}"
2021-11-07 12:08:05 -05:00
Philipp Schmitt b9a5624074
Don't assume the default branch is named "main" 2021-11-07 18:03:21 +01:00
Christian Höltje 00c70a434d
fix: read without -r is generally bad.
The yes/no prompt doesn't need backslash escaped characters.
2021-11-07 12:03:16 -05:00
Philipp Schmitt b40fb28193
Update issue template to incentivize users to share relevant config sections 2021-11-06 20:58:21 +01:00
Philipp Schmitt b1cf7bb4a3
Update zservices links 2021-11-06 12:45:18 +01:00
Philipp Schmitt c0a167baa1
Merge remote-tracking branch 'upstream/master' into zpfx-manpath-creation 2021-11-06 10:45:45 +01:00
Aaron Lichtman 789eb023b1
Merge pull request #15 from pschmitt/announce-new-home 2021-11-06 04:41:14 -05:00
Philipp Schmitt b7797b2c99
Announce zdharma-continuum 2021-11-06 10:37:07 +01:00
Philipp Schmitt f2467d8a11
Update CHANGELOG 2021-11-06 10:28:14 +01:00
Philipp Schmitt da91b76ed6
Create man{1..9} instead of only man1 2021-11-05 22:16:17 +01:00
Philipp Schmitt 6dad900dd4
Link to #8 explicitly 2021-11-05 19:38:53 +01:00
Philipp Schmitt 1ba4633990
Update ZINIT[MAN_DIR] description 2021-11-05 19:36:43 +01:00
Philipp Schmitt ae37986c0e
Ensure ZPFX/man/man1 exists 2021-11-05 18:51:57 +01:00
Aaron Lichtman e2b553ba5c
Merge pull request #11 from pschmitt/fix-zsh-package-urls 2021-11-05 02:34:52 -05:00
Philipp Schmitt 397ef635dc
Fix zinit package URLs 2021-11-04 22:06:45 +01:00
Aaron Lichtman a0792b21f3
Merge pull request #10 from pschmitt/fix-pack-ice 2021-11-04 06:42:02 -05:00
Philipp Schmitt 66f10ed26a
Fix typo 2021-11-04 12:40:11 +01:00
Philipp Schmitt 933ddb4fe2
Update pack repo and default branch 2021-11-04 11:25:12 +01:00
Aaron Lichtman b09125a6c6
Merge pull request #9 from yutkat/patch-1 2021-11-04 03:13:46 -05:00
Yuta Katayama 59e9dbf35e
Fix asynchronous update message 2021-11-04 10:38:33 +09:00
Aaron Lichtman d3d6e99a74
Merge pull request #7 from mortenscheel/patch-1 2021-11-01 06:48:45 -05:00
Morten Scheel 9ed49961e1
Load annexes from zdharma-continuum repos 2021-11-01 12:47:41 +01:00
Aaron Lichtman 74e9a5825c
Delete FUNDING.yml 2021-11-01 04:54:00 -05:00
Aaron Lichtman 4c52468ebd
Update FUNDING.yml 2021-11-01 04:53:49 -05:00
Aaron Lichtman 9bcaaaabee
Use zdharma-continuum in mod-install.sh 2021-11-01 04:33:57 -05:00
Aaron Lichtman bb0affce2d
Remove DONATIONS.md 2021-11-01 04:32:39 -05:00
Aaron Lichtman 3308ff8fc0
Point install script to zdharma-continuum 2021-11-01 04:31:09 -05:00
Aaron Lichtman bb3070f63f
Merge pull request #5 from findNextStep/master 2021-11-01 04:28:53 -05:00
panxueqian 4f87076601 fix: remove use less line 2021-11-01 17:27:01 +08:00
the_next c5cfb7f174
Merge branch 'master' into master 2021-11-01 04:18:17 -05:00
panxueqian 66b1700752 fix: update zdharma to zdharma-continuum
make readme.md more useful
2021-11-01 17:12:39 +08:00
Aaron Lichtman bdcb43219d
Merge pull request #4 from vladdoster/patch-1 2021-11-01 04:05:18 -05:00
vladislav doster 634e1bf87b
Merge branch 'master' into patch-1 2021-11-01 04:01:39 -05:00
Aaron Lichtman 9cb28b76f5
Update README.md 2021-11-01 03:58:20 -05:00
vladislav doster d6a3560412
(maint): update links to point towards zdharma-continuum 2021-11-01 03:57:29 -05:00
Sebastian Gniazdowski 9ea1c9bcb7
Merge pull request #525 from Dophin2009/doc-creinstall-Q
Document creinstall -Q flag
2021-07-28 12:42:22 +02:00
Eric Zhao 3920cc8289
Document creinstall -Q flag 2021-07-15 17:20:53 -04:00
Sebastian Gniazdowski f25d483eb5
Merge pull request #492 from black7375/master
Easy to understand README
2021-06-12 08:35:18 -05:00
alstjr7375 a9d2425ffa Doc: Update method 2021-06-12 21:07:09 +09:00
alstjr7375 f43ebb32be Merge branch 'master' of https://github.com/zdharma/zinit 2021-06-12 20:50:15 +09:00
Sebastian Gniazdowski f3cd0b7895 Quote percent % in print -P messages. 2021-05-30 00:55:28 +02:00
Sebastian Gniazdowski 603ea59e7d
Merge pull request #513 from sigma/fix/ostype
support OSTYPE linux-musl
2021-05-25 02:20:20 +02:00
Yann Hodique b3a19a4ea0 support OSTYPE linux-musl
Typically, when zsh is built as a static binary (as with https://github.com/romkatv/zsh-bin)
OSTYPE reports linux-musl, instead of the more common linux-gnu.
Which in turn breaks binary selection from gh-r, and leads to download of mac binaries.

This change maps both linux-gnu and linux-musl to the match string "linux".

This fixes #416
2021-05-24 02:08:26 +00:00
Sebastian Gniazdowski 78c9cc565f Extend aliases resilence / safety 2021-05-08 02:10:22 -05:00
Sebastian Gniazdowski 62ad7f7e55 README.md 2021-05-08 02:01:14 -05:00
alstjr7375 d7cf9cc72a Doc: turbo mode & lucid at Quick Start 2021-04-21 11:01:29 +09:00
alstjr7375 ef56a29051 Doc: @bbenzikry reviews reflect 2nd 2021-04-21 10:35:13 +09:00
alstjr7375 238f1b6f0e Doc: @bbenzikry reviews reflect 2021-04-20 15:02:28 +09:00
Sebastian Gniazdowski b12d1cbf09
Merge pull request #480 from NICHOLAS85/lastmodifiedfix
*install: Fix .zinit-get-url-mtime function
2021-04-19 13:57:35 -05:00
alstjr7375 086c77ecfc Cleanup README 2021-04-01 17:26:47 +09:00
alstjr7375 2fef19e54c Merge branch 'master' of https://github.com/zdharma/zinit 2021-03-31 09:10:45 +09:00
alstjr7375 49c5854725 Doc: doc order organization 2021-03-31 09:05:23 +09:00
alstjr7375 d3eeab81e5 Doc: migrations to detail, summary 2021-03-30 15:44:13 +09:00
Sebastian Gniazdowski 044ba6d412 README.md 2021-03-27 09:59:53 +01:00
Sebastian Gniazdowski 51251ea7eb
Merge pull request #497 from NICHOLAS85/fixdocslinks
Update doc links
2021-03-27 09:57:26 +01:00
NICHOLAS85 cfe783cc82 Update doc links 2021-03-26 14:37:05 -04:00
Sebastian Gniazdowski e03cc7ce3f
Update README.md
Update Wiki link
2021-03-20 16:14:21 +01:00
alstjr7375 4370533517 Doc: code highlight update 2021-03-16 15:05:42 +09:00
alstjr7375 f8b1a21173 Doc: remove duplicate section 2021-03-16 13:35:30 +09:00
alstjr7375 08b9607c67 Doc: Quick Guide 2021-03-16 13:30:12 +09:00
NICHOLAS85 804bfb38a5 *install: Fix .zinit-get-url-mtime function 2021-02-10 03:31:34 -05:00
NICHOLAS85 d82bb6618b *install: Remove trailing whitespace 2021-02-10 03:24:00 -05:00
Sebastian Gniazdowski 4457b998cd Remove a character, thanks @NICHOLAS85 2020-12-29 08:41:13 -06:00
Sebastian Gniazdowski d96a72505b "Improve indentation" 2020-12-28 05:24:01 -06:00
Sebastian Gniazdowski bae9652508 Update the help messages. Most important commands now have -h/--help option. 2020-12-26 20:29:42 -06:00
Sebastian Gniazdowski 423bb950fe Update the message function to support colored special characters. 2020-12-26 20:27:40 -06:00
Sebastian Gniazdowski ef173c1ecb
Merge pull request #454 from MenkeTechnologies/master
missing builtin before cd
2020-12-24 03:15:30 +01:00
MenkeTechnologies 7662f9eeac missing builtin before cd 2020-12-20 14:09:50 -05:00
Sebastian Gniazdowski 1641f10c7a Slightly improve message function. 2020-12-19 01:33:53 -06:00
Sebastian Gniazdowski 135b6963dc Cleanup. 2020-12-19 01:28:11 -06:00
Sebastian Gniazdowski aef0e46ecc Fix snippet message and slightly improve other ones. 2020-12-19 01:20:09 -06:00
Sebastian Gniazdowski 9041ba5192 Fix .zinit-first() 2020-12-19 01:01:12 -06:00
Sebastian Gniazdowski b59b977080 Update messages. 2020-12-18 21:56:27 -06:00
Sebastian Gniazdowski 1cea67c5cc Fix a message. 2020-12-18 05:01:16 -06:00
Sebastian Gniazdowski 94109fbaec Improve messages. 2020-12-18 04:48:20 -06:00
Sebastian Gniazdowski cdc2c4379d Fix +X autoload. Resolves gh-441. 2020-12-18 02:54:56 -06:00
Sebastian Gniazdowski 5c224537d9 Improve a message and slightly alter color theme. 2020-12-17 03:38:47 -06:00
Sebastian Gniazdowski 2c01a5ac56 Improve messages: codes like {…} automatically make current color to last after them. 2020-12-17 03:18:51 -06:00
Sebastian Gniazdowski 0c14b210d5 Minor messages update.I 2020-12-17 01:32:15 -06:00
Sebastian Gniazdowski 813b0b5d01 git-process-output.zsh – update colors. 2020-12-17 00:03:48 -06:00
Sebastian Gniazdowski 33b0000675 Uplift the {bar}/{th-bar} code, i.a.: add a non-UTF8 fallback character. 2020-12-16 23:29:45 -06:00
Sebastian Gniazdowski 39abb744d6 Add {bar} and {th-bar} ("thick bar") formatters, which draw a line spanning horizontal line.lj 2020-12-16 23:09:24 -06:00
Sebastian Gniazdowski 1f11f8537f Missed changes.I 2020-12-16 23:08:39 -06:00
Sebastian Gniazdowski 06a78a0a1d Uplift the m function code. Make it properly available during update. 2020-12-16 23:06:08 -06:00
Sebastian Gniazdowski dc9af228e4 Fix %F codes support for +zinit-message. Fixes #448. 2020-12-16 22:03:08 -06:00
Sebastian Gniazdowski 2463d2d028 Limit MUTE_WARNINGS recognized values. 2020-12-16 21:19:37 -06:00
Sebastian Gniazdowski 497e899a10 A small, general messages update. 2020-12-16 21:15:49 -06:00
Sebastian Gniazdowski 96cbc84bf2 Update package related messages. 2020-12-16 21:10:48 -06:00
Sebastian Gniazdowski 23d40d9d02 Updated the pid formatter and the message function. 2020-12-16 21:09:17 -06:00
Sebastian Gniazdowski 7afddbdde2 Fix autoloading with the +X option (immediate read from the disk) 2020-12-16 20:19:24 -06:00
Sebastian Gniazdowski 103f77df81 Fix the absolute path autoload functions support. #441 2020-12-16 20:17:01 -06:00
Sebastian Gniazdowski c27bf53f06 Updated the color theme. 2020-12-16 19:06:38 -06:00
Sebastian Gniazdowski 8281243840 Add -n/--no-pager option to update. Fixes #383. 2020-12-13 06:19:23 -06:00
Sebastian Gniazdowski 3fdfae3a73
Merge pull request #447 from NICHOLAS85/cdquiet
*autoload: use cd -q
2020-12-09 22:38:30 +01:00
NICHOLAS85 5cc6b031e1 *autoload: use cd -q 2020-12-08 01:18:37 -05:00
Sebastian Gniazdowski 11c7e3b889
Merge pull request #445 from natasha-codes/sasha/onlyAddZinitToPathIfExist
Only add `$ZPFX/bin` to path if it exists
2020-12-08 06:39:52 +01:00
sashaweiss ef56c2b328 Keep existing code, and add check 2020-12-07 17:37:44 -08:00
sashaweiss bb8426fc9f Only add $ZPFX/bin to path if that dir exists 2020-12-07 17:34:14 -08:00
Sebastian Gniazdowski 7a9df80154
Merge pull request #442 from docwhat/pr/403-match-linux64
improve gh-r version matching: foo-linux64
2020-12-04 22:32:31 +01:00
Christian Höltje 9b9296f40b improve gh-r version matching: foo-linux64
fixes #403
2020-12-03 16:18:06 -05:00
Sebastian Gniazdowski 857d6fb6b4 Update a message. 2020-11-26 06:47:20 -06:00
Sebastian Gniazdowski 0b83b283d8 Update an error message. 2020-11-26 06:28:23 -06:00
Sebastian Gniazdowski cdd7d76746 Rename for z-a-readurl. 2020-11-26 06:11:25 -06:00
Sebastian Gniazdowski a48a47b830 Rename for z-a-readurl 2020-11-26 06:07:59 -06:00
Sebastian Gniazdowski 66b8fcdff3 Old git compatibility. Fixes #386. 2020-11-15 06:31:04 -06:00
Sebastian Gniazdowski 2d79fea905 Make the ices available to hooks. Fixes #429. 2020-11-14 22:15:01 -06:00
Sebastian Gniazdowski 95b8db3ef0 $repo → $local_dir + a [[ -d $local_dir/.git ]] check before git verify #428,#425 2020-11-14 22:01:56 -06:00
Sebastian Gniazdowski dd86af42b7 Fix the update problem (fixes #428,#425). 2020-11-14 21:50:33 -06:00
Sebastian Gniazdowski cbea70e056 Remove a problematic character (on 5.0.2). 2020-11-14 21:37:43 -06:00
Sebastian Gniazdowski 97f994f490 Rename functions (fixes #427). 2020-11-07 10:39:42 +01:00
Sebastian Gniazdowski 446f9fdea8 Fix OMZ, Prezto-shorthand handling in zstatus's snippet enumeration. 2020-11-07 10:39:42 +01:00
Sebastian Gniazdowski 83f2f6fd7c Extended comment on the *message() function. 2020-11-07 04:30:54 +01:00
Sebastian Gniazdowski e45b3d74db Support the main branch (fixes #425). 2020-11-07 01:31:08 +01:00
Sebastian Gniazdowski 94ecad8335 A general, small uplift of the colors, messages, etc. 2020-11-06 23:14:06 +01:00
Sebastian Gniazdowski 3bf975a45a Fix a comment. 2020-11-06 21:55:07 +01:00
Sebastian Gniazdowski e7b16c39f8 Tweak a substitution. 2020-11-06 21:52:11 +01:00
Sebastian Gniazdowski 38f430ebdc Recognize OMZ and Prezto shorthands as URLs for the detailed coloring. 2020-11-06 21:48:07 +01:00
Sebastian Gniazdowski 72acc6127b Rename wrap-trackwrap. 2020-11-06 21:45:32 +01:00
Sebastian Gniazdowski 567e6c59d3 Uplift the message colors. 2020-11-06 21:44:44 +01:00
Sebastian Gniazdowski f1c7f99256 Uplift zstatus subcommand. 2020-11-06 21:35:13 +01:00
Sebastian Gniazdowski 0f1aa59b94 Use the detailed coloring of snippet URLs in the zstatus subcommand. 2020-11-06 21:25:05 +01:00
Sebastian Gniazdowski 6063ac8e28 Make any URLs printed with detailed coloring by a generalized mechanism. 2020-11-06 21:03:56 +01:00
Sebastian Gniazdowski b5cc9a4534 Update messages and unicode compatibility. 2020-11-06 16:00:29 +01:00
Sebastian Gniazdowski 07185a00eb Update comments. 2020-11-06 15:53:46 +01:00
Sebastian Gniazdowski 925c96e0c1 Small tweaks around the paths-establishing code. 2020-11-06 14:11:17 +01:00
Sebastian Gniazdowski acd31fcdf7 Uplift the message colors. 2020-11-06 14:10:29 +01:00
Sebastian Gniazdowski 284784985e
Merge pull request #414 from horta/zsh-5.0.2-fix
zinit-message zsh 5.0.x compatibility
2020-09-07 17:56:58 +02:00
Sebastian Gniazdowski 46c6acbafa Uplift formatter. 2020-09-07 14:44:54 +02:00
Danilo Horta f693ebdaaa zinit-message zsh 5.0.x compatibility 2020-09-07 10:27:58 +01:00
Sebastian Gniazdowski 9d7b25a1fc Reformat/reindent-only *-message. 2020-09-07 10:50:16 +02:00
Sebastian Gniazdowski 009f1d3a2b Silence tput, use a fallback cols value #411. 2020-09-04 10:03:35 +02:00
Sebastian Gniazdowski dcac918f5f Seat CUR_* fields of ZINIT earlier #356. 2020-09-03 17:04:07 +02:00
Sebastian Gniazdowski 8a05dceea6
Merge pull request #409 from solarizedalias/fix/recently/not-a-directory
Skip non-directories for zinit recently
2020-09-03 16:56:47 +02:00
Sebastian Gniazdowski 91058100be
Merge pull request #402 from NICHOLAS85/list_sbin
Allow empty sbin and fbin ices to show up in zinit list output
2020-09-03 16:45:39 +02:00
Sebastian Gniazdowski 0643dfe899
Merge pull request #399 from ratorx/patch-1
Prevent duplicate lines being added to .zshrc
2020-09-03 16:28:51 +02:00
Sebastian Gniazdowski 2b6bf255ab
Merge pull request #397 from Aloxaf/compile_without_alias
Don't expand aliases when compiling to zwc
2020-09-03 16:18:00 +02:00
Sebastian Gniazdowski 8f297f67db Improve error messages. 2020-09-03 16:08:51 +02:00
Sebastian Gniazdowski 4471e4ce19 Restore the activitiy of the light-mode. 2020-09-03 15:55:33 +02:00
Sebastian Gniazdowski a563cade19 Respect TMPDIR 2020-09-03 15:27:18 +02:00
solarizedalias 194fef0cba Skip non-directories 2020-09-02 17:21:32 +09:00
NICHOLAS85 d6dcd5c12d *autoload: Allow empty sbin and fbin to show up in list output 2020-08-23 03:27:43 -04:00
Reeto Chatterjee 1b143c408e Prevent duplicate lines being added to .zshrc 2020-08-16 00:50:51 +01:00
Sebastian Gniazdowski c59ca3fa63 Add a dot after a comment text. 2020-08-13 20:50:22 +02:00
Sebastian Gniazdowski 5e841ab328 Revert "Move the hooks up."
This reverts commit 115eb0e25a.
2020-08-08 11:17:44 +02:00
Aloxaf 7c938732d7
Don't expand aliases when compiling to zwc 2020-08-06 11:32:35 +08:00
Sebastian Gniazdowski f630c3a9b4
Merge pull request #396 from foriequal0/pull-no-rebase
Add `pull.rebase=false` on cloning git repo, so that it's stored in `.git/config`.
2020-08-05 08:12:30 +02:00
SeongChan Lee 016a888166 Add pull.rebase=false on cloning git repo 2020-08-05 12:40:13 +09:00
Sebastian Gniazdowski 534083182e Remove a new-Zsh dependent syntax. 2020-08-02 21:45:40 +02:00
Sebastian Gniazdowski 1d85dbceb0 Reorder functions. 2020-07-27 19:08:57 +02:00
Sebastian Gniazdowski 3390b87b4c Change order. 2020-07-27 19:03:49 +02:00
Sebastian Gniazdowski f4bad09e08 Add a new function. 2020-07-27 18:32:17 +02:00
Sebastian Gniazdowski 115eb0e25a Move the hooks up. 2020-07-27 13:44:30 +02:00
Sebastian Gniazdowski 8c1d0c2551 Improve gh-r matching. 2020-07-26 09:49:36 +02:00
Sebastian Gniazdowski a553aea8e4 Improved gh-r binary matching. 2020-07-26 09:38:04 +02:00
Sebastian Gniazdowski ac144b2503 Keep the modification time of an archive file unchanged. 2020-07-26 09:07:22 +02:00
Sebastian Gniazdowski 65bb8df723 Improve the colors. 2020-07-26 08:49:12 +02:00
Sebastian Gniazdowski f425f25de8 Improve archive unpacking. 2020-07-26 08:48:37 +02:00
Sebastian Gniazdowski abb9bdda73 Uplift the color keys (ZINIT). 2020-07-24 21:58:57 +02:00
Sebastian Gniazdowski d78ef6fec1 A missing func rename. 2020-07-24 01:40:24 +02:00
Sebastian Gniazdowski 24d3363ece Improved error messages on the basic situations like: zinit bad-command. 2020-07-24 01:37:43 +02:00
Sebastian Gniazdowski d12308f537 Fix a message. 2020-07-23 23:02:44 +02:00
Sebastian Gniazdowski fa60c61fad A rich usage-info message when no arguments at all given. 2020-07-23 22:00:24 +02:00
Sebastian Gniazdowski 9638a3fbd1 {dots} → {…}, {bold} → {b}, +{nb} ↔ not-bold. 2020-07-23 21:59:17 +02:00
Sebastian Gniazdowski b3b4fe24c2 FEATURE: `update' has new options: -u/--urge → trigger all hooks even if no new commits, etc.
Works like run-atpull'' ice.
2020-07-23 20:35:04 +02:00
Sebastian Gniazdowski a5953e3a8d Don't use --, only - in messages. 2020-07-23 17:43:19 +02:00
Sebastian Gniazdowski eeaaf159f7 Uplift the colors. 2020-07-23 17:40:56 +02:00
Sebastian Gniazdowski 5fa766dfea Quote the new col-* keys. 2020-07-23 17:35:02 +02:00
Sebastian Gniazdowski 2352f181d6 Mute the `… --all passed' message when --all. 2020-07-23 17:31:48 +02:00
Sebastian Gniazdowski d0eb3bffb6 Use a separate function for the option-parsing code. 2020-07-23 17:30:56 +02:00
Sebastian Gniazdowski c7c3d8fcab Use ICE2 array for *compute-ice. 2020-07-23 17:09:34 +02:00
Sebastian Gniazdowski dd94885ce3 Feature: update, delete and env-whitelist now support the -h/--help options. 2020-07-23 16:14:05 +02:00
Sebastian Gniazdowski 3b8a56aaae New color/escape codes. 2020-07-23 16:13:13 +02:00
Sebastian Gniazdowski 523b2e7237 Allow tabs before comments in subst''. 2020-07-23 16:12:47 +02:00
Sebastian Gniazdowski e78b79e077 Remove a debug print. 2020-07-23 15:29:51 +02:00
Sebastian Gniazdowski 3bf562925c Add {tab} and fix --quiet opt for `update'. 2020-07-23 15:15:23 +02:00
Sebastian Gniazdowski a121ef441e Prepare a generic -h/--help support for subcommands, i.a.: add help texts. 2020-07-23 15:06:48 +02:00
Sebastian Gniazdowski 0580dbadda Rename: ZINIT_ICE → ICE. 2020-07-23 13:59:41 +02:00
Sebastian Gniazdowski a18f0cf90e Fix return value for `delete --clean'. 2020-07-23 13:50:22 +02:00
Sebastian Gniazdowski 591d245575 Improve options parsing for `delete'. 2020-07-23 13:47:02 +02:00
Sebastian Gniazdowski 2435b43822 New color codes. 2020-07-23 13:30:12 +02:00
Sebastian Gniazdowski 4582d9adfb Improved logic and messages for the options-parsing for `update' and in general. 2020-07-23 13:29:20 +02:00
Sebastian Gniazdowski 81f4836e50 ... → … in in all messages, if UTF-8 locale. 2020-07-22 06:14:04 +02:00
Sebastian Gniazdowski cbbfa57c97 README.md 2020-07-22 06:01:14 +02:00
Sebastian Gniazdowski f4341c6330 Change flag order. 2020-07-20 19:51:39 +02:00
Sebastian Gniazdowski 7414d2fae1 Make a help message auto-generated. 2020-07-20 19:00:13 +02:00
Sebastian Gniazdowski 06873a03b4 Remove unnecessary specific-case code. 2020-07-20 18:59:45 +02:00
Sebastian Gniazdowski 37a551204a Fix double ices on `zinit recall …'. 2020-07-20 18:49:21 +02:00
Sebastian Gniazdowski ccf90a5598 Skip part of message when the id is the same. 2020-07-20 12:04:14 +02:00
Sebastian Gniazdowski efff176779 Show the correct package name. 2020-07-19 17:04:31 +02:00
Sebastian Gniazdowski c6dfa0ad75 FIX: https://github.com/… snippets are working again #382. 2020-07-18 23:18:12 +02:00
Sebastian Gniazdowski d2cfec3663 Correct vim-folds comments. 2020-07-18 19:52:33 +02:00
Sebastian Gniazdowski 375a898185 promptsubst isn't needed for the url formatter. 2020-07-18 19:50:59 +02:00
Sebastian Gniazdowski aa1e4474eb A good url formatter. 2020-07-18 19:49:51 +02:00
Sebastian Gniazdowski dbfcdc8020 Allow empty result from a formatter function. 2020-07-18 19:33:32 +02:00
Sebastian Gniazdowski d599245bc6 Can't use - substitution, have to stick to edge-case faulty :-… 2020-07-18 19:17:12 +02:00
Sebastian Gniazdowski 86b222e1cf Extend *message so that it calls formatter functions for {pid} and {url}. 2020-07-18 19:14:11 +02:00
Sebastian Gniazdowski a2746b844c Rethink and improve package-installation messages. 2020-07-18 16:29:39 +02:00
Sebastian Gniazdowski a5e0cce53a emulate near every zcompile. 2020-07-18 07:12:45 +02:00
Sebastian Gniazdowski 2d9e13eb22 Fix *two-paths. 2020-07-18 07:11:55 +02:00
Sebastian Gniazdowski d077303786 Move .zinit-setup-params to the main source. 2020-07-18 01:56:41 +02:00
Sebastian Gniazdowski 5c72619da3 FEATURE: A new ice binary' ↔ works like null' however installs completions.
- `null' works like: pick'/dev/null' nocompletions.
- `binary' works like: pick'/dev/null'.

I.e.: it denotes a binary, no-source plugin that still might have some
completions to install.
2020-07-18 00:01:30 +02:00
Sebastian Gniazdowski 1a7506a641 Cleanup in *install-completions. 2020-07-17 23:56:46 +02:00
Sebastian Gniazdowski c78de66472 FIX: pmodload was broken (for 1.5 hour, thanks @NorthIsUp) #381. 2020-07-17 23:17:13 +02:00
Sebastian Gniazdowski 2a1a6ae45c Implement the ID overriding via teleid''. 2020-07-17 21:37:46 +02:00
Sebastian Gniazdowski 76783c910d IMPORTANT FIX: It is very probable that id-as'…' and wait'' (Turbo)
plugins were actually loaded without Turbo. That's now fixed :).
repeat 5 { time /bin/zsh -ic exit; } :)
2020-07-17 21:00:08 +02:00
Sebastian Gniazdowski 1201e1da79 No hook calling on `update'. 2020-07-17 15:28:22 +02:00
Sebastian Gniazdowski 371f85496e Fix `zinit ice …; zinit update …' for snippets. 2020-07-17 15:27:33 +02:00
Sebastian Gniazdowski 1c4bb1f0a9 Extend the Annex API — gather the previously-processed ID in an ZINIT key. 2020-07-17 14:44:04 +02:00
Sebastian Gniazdowski 64c8f4e0f0 Fix an autoload'' bug that prevented it from working on id-as'…' plugins. 2020-07-17 14:42:57 +02:00
Sebastian Gniazdowski a4ea80e06f Update colors. 2020-07-17 14:35:13 +02:00
Sebastian Gniazdowski 4de0f031e0 Skip the current $1 in before-load's hook/callback 4th argument. 2020-07-17 13:25:26 +02:00
Sebastian Gniazdowski da16c33832 Update a message. 2020-07-17 13:25:02 +02:00
Sebastian Gniazdowski 0bb31a6c0d Don't shift unless error from before-load hook. 2020-07-17 08:58:34 +02:00
Sebastian Gniazdowski 6362c56c24 Add some top-level debug message. 2020-07-17 08:57:41 +02:00
Sebastian Gniazdowski c65ba93fbc Extend warning on before-load hook-communication problems (issues URL). 2020-07-17 08:07:22 +02:00
Sebastian Gniazdowski 9e0f37adc3 Extended API for communication with the before-load hooks. 2020-07-17 07:47:09 +02:00
Sebastian Gniazdowski faee4ce653 Return the gathered ret-val, not always 0. 2020-07-17 07:46:20 +02:00
Sebastian Gniazdowski e046ba991e General ret-val cleanup and also related to before-load hook. 2020-07-17 07:45:18 +02:00
Sebastian Gniazdowski b3282bdb39 Utilize return's math context. 2020-07-17 07:42:41 +02:00
Sebastian Gniazdowski a558dd3632 README.md 2020-07-16 22:24:14 +02:00
Sebastian Gniazdowski a79b065cd6 Make `cd' use pushd builtin. 2020-07-16 22:23:35 +02:00
Sebastian Gniazdowski 77466603fb README.md 2020-07-16 15:01:37 +02:00
Sebastian Gniazdowski 588be98c45 README.md 2020-07-16 14:41:00 +02:00
Sebastian Gniazdowski ed54f898d9 Significantly improve +zinit-message. 2020-07-15 14:43:50 +02:00
Sebastian Gniazdowski 956bc3ae56 Improve countdown'' ice. 2020-07-15 14:43:25 +02:00
Sebastian Gniazdowski 404ebdee88 Improve a package-installation message. 2020-07-15 13:06:10 +02:00
Sebastian Gniazdowski ad0928b3d5 Fix *object-path's AUTO-type call. 2020-07-15 07:40:03 +02:00
Sebastian Gniazdowski f5313045cc Make *object-path accept an `AUTO' type causing it to try both (s&p) types. 2020-07-15 07:29:57 +02:00
Sebastian Gniazdowski c67f58c4e5 Make compile'' support multiple patterns separated via semicolon `;'. 2020-07-15 07:21:36 +02:00
Sebastian Gniazdowski 6e23a5eb2d Add new colors: {warn},{apo},{ok}. 2020-07-15 07:13:14 +02:00
Sebastian Gniazdowski 1c2d3da430 Uplift *compile-plugin. 2020-07-15 07:12:50 +02:00
Sebastian Gniazdowski f6dff51a22 FEATURE: A new ice `null' working like as'null', e.g.:
zi null sbin"vims" for MilesCranmer/vim-stream

instead of:

    zi as"null" sbin"vims" for MilesCranmer/vim-stream
2020-07-15 07:02:21 +02:00
Sebastian Gniazdowski 693edb36e4 FIX the localize-special parameter error #380.
https://mail.google.com/mail/u/0/#label/github/FMfcgxwJWrXJRsTmcdRSjHsqCgZcPhxJ
2020-07-15 04:57:38 +02:00
Sebastian Gniazdowski 63c80c2480 Localize a correct IFS value. 2020-07-14 22:11:54 +02:00
Sebastian Gniazdowski 78a5275fb8 Don't rely on = for whitespace-splitting, use (s: :) instead. 2020-07-14 22:09:15 +02:00
Sebastian Gniazdowski 841da4a346 Fix the storing of ices. 2020-07-14 21:34:10 +02:00
Sebastian Gniazdowski 7427f531b7 Fix an improper substitution done in 0f8882. 2020-07-13 21:21:40 +02:00
Sebastian Gniazdowski 043161c23c Make the ices respect the order-number given to @zinit-register-annex. 2020-07-13 20:27:34 +02:00
Sebastian Gniazdowski 0f8882ad50 Add %ZPFX shorthand. 2020-07-12 19:56:14 +02:00
Sebastian Gniazdowski cca5532a25 Update `ls'. 2020-07-12 19:55:44 +02:00
Sebastian Gniazdowski f6865ac974 Fix creinstall, #379. 2020-07-12 19:19:20 +02:00
Sebastian Gniazdowski 0b928f8d4c Remove *shands-expand and optimize *cally-message. 2020-07-11 23:10:59 +02:00
Sebastian Gniazdowski 6130cf8202 Longer snippet ID in messages. 2020-07-11 22:24:26 +02:00
Sebastian Gniazdowski 4aa958b269 Better snippet ID in messages. 2020-07-11 22:23:41 +02:00
Sebastian Gniazdowski 801c62ea4f Use $REPLY of *path. 2020-07-11 19:11:07 +02:00
Sebastian Gniazdowski 43d1629412 Add a message on snippet being already up to date. 2020-07-11 19:10:14 +02:00
Sebastian Gniazdowski 49ab26e981 Restore the previous snippet-ID shown on install/update. 2020-07-11 19:09:34 +02:00
Sebastian Gniazdowski bbd8401fa0 Cleanup. 2020-07-11 19:09:19 +02:00
Sebastian Gniazdowski b8ad88d42a *autoload: A more recent implementation of .zinit-get-path. 2020-07-11 19:07:39 +02:00
Sebastian Gniazdowski 3d49941324 Utilize $REPLY of *path. 2020-07-11 19:06:58 +02:00
Sebastian Gniazdowski a733e2362f Set REPLY in *object-path. 2020-07-11 19:05:39 +02:00
Sebastian Gniazdowski 36f257aac0 Cleanup of *cd. 2020-07-11 19:04:40 +02:00
Sebastian Gniazdowski 7551af69f1 More correct path obtain. 2020-07-11 19:04:05 +02:00
Sebastian Gniazdowski 6058690a68 Cleanup in *uninstall-completions. 2020-07-11 19:03:07 +02:00
Sebastian Gniazdowski 7bdee59a54 Fix a message. 2020-07-10 21:09:10 +02:00
Sebastian Gniazdowski afe9a0b1c5 Fix compilation of snippets. 2020-07-10 13:54:13 +02:00
Sebastian Gniazdowski 08fb94f428 New colors. 2020-07-10 13:54:13 +02:00
Sebastian Gniazdowski 1d6fbbb8cb More consistent return from .zinit-first. 2020-07-10 13:54:12 +02:00
Sebastian Gniazdowski cc9a0672fe Further optimize .zinit-first. 2020-07-10 13:54:12 +02:00
Sebastian Gniazdowski 71df55c488 Optimize and cleanup .zinit-first. 2020-07-10 13:54:12 +02:00
Sebastian Gniazdowski 4cb75b799c *object-path now supports %HOME, %SNIPPETS, etc. shorthands. 2020-07-10 13:54:12 +02:00
Sebastian Gniazdowski c822aca8be Add %PLUGINS support. 2020-07-10 13:54:12 +02:00
Sebastian Gniazdowski 888b3a8c1c .zinit-any-to-pid, .zinit-util-shands-path 2020-07-10 13:54:12 +02:00
Sebastian Gniazdowski 3cfbb28f32 Limit localization of the reply params. 2020-07-10 13:54:12 +02:00
Sebastian Gniazdowski b37aecfc45 Update colors (i.a.: add {ice}). 2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski 3deaaddff6 Add and use {dots} to +zinit-message: 3 dots, Unicode `…' if UTF-locale. 2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski 7dae013626 Improve snippet-preamble installation/update messages. 2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski 012cced313 Improve the plugin-installation preamble message, e.g.: use Unicode
ldots `…' if locale are properly set.
2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski c88677c84c A nice warncreateglobal trick. 2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski 09e86874c5 NEW: Utilize the 256 color palette for plugin IDs, if available. 2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski 4be0852886 A nicer condition. 2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski 06b715c8e5 IMPORTANT: API change of the annexes – you should update them too and restart the shell. 2020-07-10 13:54:10 +02:00
Sebastian Gniazdowski decb99c8a5 FIX: the in-zshrc installation of snippets. 2020-07-09 04:27:36 +02:00
Sebastian Gniazdowski 6f827ebe3c FIX: the in-zshrc installation of Turbo objects. 2020-07-09 04:12:34 +02:00
Sebastian Gniazdowski 72991f18d4 Fix and improve a message. 2020-07-09 04:11:30 +02:00
Sebastian Gniazdowski f2b835d6cf Correctly handle non-zero return code from `before-load' hooks. 2020-07-09 03:08:28 +02:00
Sebastian Gniazdowski c6de771ea5 Run the `before-load' hook also on update of an object. 2020-07-09 02:58:00 +02:00
Sebastian Gniazdowski 864226082b Better snippet messages during installation and update. 2020-07-09 02:34:39 +02:00
Sebastian Gniazdowski bf32879bb3 A much more sensible snippet ID shown during installation and update. 2020-07-09 02:33:11 +02:00
Sebastian Gniazdowski 404fedb73b A new hook-type: `before-load' that allows object-ID unscoping. 2020-07-09 01:57:22 +02:00
Sebastian Gniazdowski cb86df29af Make the compinit call after completions' installation faster. 2020-07-09 01:55:47 +02:00
Sebastian Gniazdowski f73c3e55e4 FIX: no double completion reinstallation after plugin `update' → no lag. 2020-07-09 01:49:44 +02:00
Sebastian Gniazdowski 477280401d A new ice: `debug' to enable some debug output from e.g.: annexes. 2020-07-08 23:52:47 +02:00
Sebastian Gniazdowski dffafb2da7 Further undefensive the code. 2020-07-08 23:29:40 +02:00
Sebastian Gniazdowski 0c8b4a1280 Remove an over-defensive code. 2020-07-08 23:21:38 +02:00
Sebastian Gniazdowski 1e944dd031 Remove an empty line. 2020-07-08 19:26:34 +02:00
Sebastian Gniazdowski e03c38c57f Reformat the color-hash definition into multiple columns. 2020-07-08 19:25:13 +02:00
Sebastian Gniazdowski bad2b97873 Tweak the colors (add new ones: var, glob, cmd). 2020-07-08 19:20:10 +02:00
Sebastian Gniazdowski 460ddb2c9c Fine tune the package-installation messages. 2020-07-08 19:19:33 +02:00
Sebastian Gniazdowski b825695113 Improve messages for package installations (zinit pack for …). 2020-07-08 18:54:35 +02:00
Sebastian Gniazdowski d5a8905d1e Extend the annex architecture – pass the context-subtype to the hook. 2020-07-08 18:20:46 +02:00
Sebastian Gniazdowski a3dbe5cbfe silent'' mutes the `Snippet not loaded' error message. 2020-07-08 18:02:33 +02:00
Sebastian Gniazdowski 2d4dc4f9da Remove an unneeded unset of subscribe''. 2020-07-08 17:17:19 +02:00
Sebastian Gniazdowski f7c343bf7a zinit: Don't load wait'' from disk. 2020-07-08 15:46:06 +02:00
Sebastian Gniazdowski cb777034fc zinit: Mute a warncreateglobal warning. 2020-07-08 15:13:52 +02:00
Sebastian Gniazdowski eaf4965ded FIX: no empty plugin being left when the clone fails. 2020-07-08 14:50:08 +02:00
Sebastian Gniazdowski 03448477a3 Add a comment. 2020-07-08 14:49:53 +02:00
Sebastian Gniazdowski 27d1b66ab2 FIX: prevent interactive double-installation of wrongly entered plugins. 2020-07-08 14:44:14 +02:00
Sebastian Gniazdowski 58f9aa3bb3 Switch from two integers into the pull-active flag for handling updates. 2020-07-08 14:14:45 +02:00
Sebastian Gniazdowski 5d2084234a zinit: Fix the loading of disk ices. 2020-07-08 11:18:15 +02:00
Sebastian Gniazdowski a55f70afb9 Exclude *.ps1 files from the files seen as completions. 2020-07-08 10:42:02 +02:00
Sebastian Gniazdowski d061fe8d1b Simpler globs. 2020-07-08 10:39:55 +02:00
Sebastian Gniazdowski ac3682e2f8 Optimize ps-on-update'' hook. 2020-07-07 20:35:15 +02:00
Sebastian Gniazdowski 509df50a67 Optimize atpull hook. 2020-07-07 20:34:42 +02:00
Sebastian Gniazdowski a017da86ac Optimize !atpull hook. 2020-07-07 20:32:04 +02:00
Sebastian Gniazdowski b36f98d554 Respect reset'' contents for Git plugins. 2020-07-07 20:31:02 +02:00
Sebastian Gniazdowski d5d6100ffb Optimize compile hook. 2020-07-07 20:07:43 +02:00
Sebastian Gniazdowski c2ff99ce57 Optimize mv and cp hooks. 2020-07-07 20:05:19 +02:00
Sebastian Gniazdowski 44adcdf8bb Fix +zinit-message invocation. 2020-07-07 19:29:13 +02:00
Sebastian Gniazdowski 4d8f292812 zinit: Fix +zinit-message. 2020-07-07 19:27:53 +02:00
Sebastian Gniazdowski 88765943ba Fix nocompile ice. 2020-07-06 22:13:20 +02:00
Sebastian Gniazdowski c96d0f05b4 Respect the nocompletions' and as'null' ices for update' #377. 2020-07-06 21:41:25 +02:00
Sebastian Gniazdowski d4beb8db41 Improve ziextract's messages. 2020-07-06 21:38:36 +02:00
Sebastian Gniazdowski 8078604f04 Fix snippet updating - for non-github, regular URLs the snippet will not
always redownload (depending on the remote mtime).
2020-07-06 21:21:43 +02:00
Sebastian Gniazdowski 88f196a855 print → +zinit-message 2020-07-06 21:21:17 +02:00
Sebastian Gniazdowski b21762a623 Simplify mv'' and cp'' hooks. 2020-07-06 19:23:21 +02:00
Sebastian Gniazdowski e3252dea71 Simplify extract'' hook. 2020-07-06 19:16:46 +02:00
Sebastian Gniazdowski f84a4b5118 Can use ZINIT_ICE. 2020-07-06 19:16:19 +02:00
Sebastian Gniazdowski 64e558ccc3 Really fix the make hook. 2020-07-06 13:28:32 +02:00
Sebastian Gniazdowski 6b3b821641 Rewrite atclone hook. 2020-07-06 13:06:23 +02:00
Sebastian Gniazdowski ad324236da Don't add unnecessary entries to path. 2020-07-06 10:00:05 +02:00
Sebastian Gniazdowski 18119a8927 Fix a math expression error. 2020-07-06 07:35:57 +02:00
Sebastian Gniazdowski b55ff297f7 More compact hook preamble. 2020-07-06 07:31:10 +02:00
Sebastian Gniazdowski dbd55e6de1 Fix hook-function name. 2020-07-05 22:31:54 +02:00
Sebastian Gniazdowski 870ab0dc8b A more generic make'' implementation. 2020-07-05 22:30:42 +02:00
Sebastian Gniazdowski 10676dd295 Cleanup of the result-holding arrays related code. 2020-07-05 16:27:06 +02:00
Sebastian Gniazdowski 54363e33a8 Introducing a new annex/zinit hook argument: a subtype, that denotes the
place where the hook is being invoked. Currently only for hook:preinit.
2020-07-05 15:14:12 +02:00
Sebastian Gniazdowski ec8a0a5a9f zinit: A small cleanup. 2020-07-05 15:12:52 +02:00
Sebastian Gniazdowski aa5a2ce8cc Fix a typo. 2020-07-05 05:03:36 +02:00
Sebastian Gniazdowski 247f5bc926 Extend comments. 2020-07-05 05:03:04 +02:00
Sebastian Gniazdowski 58c85bf5cf Allow compiling gh-r plugins e.g.: with compile'' ice. 2020-07-05 04:45:24 +02:00
Sebastian Gniazdowski e17a42eccc Improve compile'' handling. 2020-07-05 04:36:55 +02:00
Sebastian Gniazdowski f9fb6ffae3 A better syntax. 2020-07-05 04:36:07 +02:00
Sebastian Gniazdowski 1b1fb6f87e Extend comments. 2020-07-05 04:34:21 +02:00
Sebastian Gniazdowski ed5864a488 Finished a completely fresh, elastic architecture. 2020-07-04 22:12:43 +02:00
Sebastian Gniazdowski d5321e0b84 Don't run the reset'' code when there's no file. 2020-07-04 21:23:39 +02:00
Sebastian Gniazdowski ce53848800 Fix some comments. 2020-07-04 21:23:15 +02:00
Sebastian Gniazdowski e42eaa4d32 Extended atdelete hook processing. 2020-07-04 21:22:06 +02:00
Sebastian Gniazdowski 7a9151e886 Remove @ from ${(@on)…. 2020-07-04 21:21:27 +02:00
Sebastian Gniazdowski 464eb23dc7 Work in progress – a major cleanup. 2020-07-04 21:20:24 +02:00
Sebastian Gniazdowski 59340b01a1 Work in progress: Extended preinit annex-hook processing. 2020-07-04 21:10:25 +02:00
Sebastian Gniazdowski 87f17fa902 Correct ID processing. 2020-07-04 21:07:00 +02:00
Sebastian Gniazdowski fbf9a0a5a5 Improve the compile'' ice. 2020-07-04 21:05:21 +02:00
Sebastian Gniazdowski 511e9e79bc Work in progress (the major cleanup) – small side-task: improve messages 2020-07-04 19:52:08 +02:00
Sebastian Gniazdowski 7bbd0200c7 Improve the messages and logic of reset-hook. 2020-07-04 18:21:41 +02:00
Sebastian Gniazdowski eb810d7953 Work in progress – the cleanup. 2020-07-04 11:54:18 +02:00
Sebastian Gniazdowski 45705a1049 Set the pull-active flag for file-snippets. 2020-07-04 11:30:52 +02:00
Sebastian Gniazdowski c732437cbd Better messages on file snippets. 2020-07-04 11:30:17 +02:00
Sebastian Gniazdowski 8a4e3d924a Work in progress: The code uplift via hooks-mechanism 2020-07-04 07:54:54 +02:00
Sebastian Gniazdowski 4236d9769e Work in progress – the major cleanup in the hook-related code. 2020-07-04 06:20:06 +02:00
Sebastian Gniazdowski 8ae687506d Run `rehash' after any initial download and after the parallel update. 2020-07-04 05:09:49 +02:00
Sebastian Gniazdowski 5450909912 ZINIT[col-msg1 → col-msg] plus related print → +zinit-message changes 2020-07-04 03:50:33 +02:00
Sebastian Gniazdowski c892ae55e0 A few print → +zinit-message conversions 2020-07-04 00:49:23 +02:00
Sebastian Gniazdowski f73b2f94bf autoload: Feature – allow automating: yes | zi delete … 2020-06-29 15:21:47 +02:00
Sebastian Gniazdowski 17bc4cbb24 install: Change narrowing to *.rpm 2020-06-29 15:06:51 +02:00
Sebastian Gniazdowski c95c0cc5a9 zinit,autoload: One global variable less 2020-06-28 13:57:32 +02:00
Sebastian Gniazdowski fd1e2f5df6 install: Don't create the failed snippets #370 2020-06-28 11:22:52 +02:00
Sebastian Gniazdowski 5c5dcb32f7 install: Add `command' prefix 2020-06-28 11:21:59 +02:00
Sebastian Gniazdowski f05f6fd07b README.md 2020-06-25 17:25:12 +02:00
Sebastian Gniazdowski 1cad6df5e5 zinit: FEATURE – ability to invoke autoloaded function: autoload'#fun'
– by prefixing it with the hash. So that it's possible to invoke e.g.:

    zinit autoload'#manydots-magic' for knu/zsh-manydots-magic

instead of:

    zinit autoload'manydots-magic' atload'manydots-magic' for \
        knu/zsh-manydots-magic
2020-06-25 17:22:40 +02:00
Sebastian Gniazdowski b01530ac2c install: MSYS support 2020-06-24 15:39:27 +02:00
Sebastian Gniazdowski 74da00c54c doc/install.sh: Install z-a-rust 2020-06-24 15:12:28 +02:00
Sebastian Gniazdowski 38389d9381 *install: Fix a syntax 2020-06-24 12:48:05 +02:00
Sebastian Gniazdowski d9edce115a install: Fix the from=gh-r for Windows, it could download OS X binaries 2020-06-23 15:56:25 +02:00
Sebastian Gniazdowski e53c6878b9 zinit: Fix indentation 2020-06-20 21:39:19 +02:00
Sebastian Gniazdowski 3055bd8e8c zinit,install: Update the colors 2020-06-20 21:38:08 +02:00
Sebastian Gniazdowski 5e06cd3c06 README.md 2020-06-20 21:35:22 +02:00
Sebastian Gniazdowski a44ca75419 doc/img/m.png 2020-06-20 21:16:54 +02:00
Sebastian Gniazdowski 25a13f75e4 zinit: Improve +zinit-message 2020-06-20 17:13:33 +02:00
Sebastian Gniazdowski 754aae4c27 zinit: Improve +zinit-message 2020-06-20 17:11:30 +02:00
Sebastian Gniazdowski 6d8cb156a4 zinit: Improve +zinit-message 2020-06-20 16:58:48 +02:00
Sebastian Gniazdowski 95415bb31d all: Change [code] to {code} in +zinit-message and in `m' 2020-06-20 15:57:19 +02:00
Sebastian Gniazdowski 3a1576d362 README.md 2020-06-20 05:02:59 +02:00
Sebastian Gniazdowski a2c52d6e59 autoload: Add a newline 2020-06-20 03:30:42 +02:00
Sebastian Gniazdowski 590217af27 *install: Feature - all (cURL) progress bars are guaranteed single line 2020-06-20 03:13:23 +02:00
Sebastian Gniazdowski 18e95b5012 share/single-line.zsh 2020-06-20 03:02:02 +02:00
Sebastian Gniazdowski a0cdf6b5c0 zinit,install: Better messages 2020-06-19 14:17:55 +02:00
Sebastian Gniazdowski 3bfdf99a67 install: Better message 2020-06-19 14:14:16 +02:00
Sebastian Gniazdowski 16c08431a6 *install: Improve the file downloadings 2020-06-18 17:58:36 +02:00
Sebastian Gniazdowski 45a908ec41 zinit: Fix the is-snippet condition #362 2020-06-18 16:57:55 +02:00
Sebastian Gniazdowski f21508259c install: Better invocation of chmod. 2020-06-17 22:37:11 +02:00
Sebastian Gniazdowski 74d6200c83 README.md 2020-06-17 22:36:27 +02:00
Sebastian Gniazdowski 96d1c0c3db README.md 2020-06-17 22:26:55 +02:00
Sebastian Gniazdowski 1ec9c7a144 *install: Abort when the extracting tool isn't found 2020-06-17 22:21:26 +02:00
Sebastian Gniazdowski 38c619c6da *install: Safer DMG extracting 2020-06-17 22:20:12 +02:00
Sebastian Gniazdowski c1163ff3ab *install: FEATURE – support Windows installers in extract''/ziextract 2020-06-17 22:18:12 +02:00
Sebastian Gniazdowski 0ca3da3cca install: print → +zinit-message 2020-06-17 18:12:56 +02:00
Sebastian Gniazdowski 0729a2414a zinit: Try to properly implement loading of disk ices #362, #363, #364 2020-06-17 17:16:25 +02:00
Sebastian Gniazdowski 440d847aa5 Revert "zinit: Try to properly implement the loading of the disk ices #363"
This reverts commit 59a651020c.

Issues #362, #363, #364
2020-06-17 17:09:36 +02:00
Sebastian Gniazdowski dd2825b7c7 zinit: Improve *get-object-path #363, #364 2020-06-16 18:44:16 +02:00
Sebastian Gniazdowski 1d9a112438 *autoload: Checkout master' on self-update' 2020-06-16 18:34:05 +02:00
Sebastian Gniazdowski 59a651020c zinit: Try to properly implement the loading of the disk ices #363 2020-06-16 18:27:35 +02:00
Sebastian Gniazdowski 82afb3981d Revert "zinit: Correctly load the disk ices"
This reverts commit ca6083a64d.
2020-06-16 17:56:43 +02:00
Sebastian Gniazdowski 15b118144e zinit: Improve *any-to-user-plugin 2020-06-14 16:12:48 +02:00
Sebastian Gniazdowski 7c2e9583c6 *autoload: Reinstall completions on non-empty update of a plugin 2020-06-13 12:46:22 +02:00
Sebastian Gniazdowski c32776ef6d *install: print → +zinit-message 2020-06-13 12:30:04 +02:00
Sebastian Gniazdowski 92c3af1d61 *autoload: Change syntax 2020-06-13 11:27:06 +02:00
Sebastian Gniazdowski 22bdc496c0 *install: Update 2020-06-13 11:05:41 +02:00
Sebastian Gniazdowski ca6083a64d zinit: Correctly load the disk ices 2020-06-13 08:49:58 +02:00
Sebastian Gniazdowski e872b50c18 zinit: Change syntax 2020-06-13 08:47:38 +02:00
Sebastian Gniazdowski 4de9820397 zinit: Restore proper hook calling for plugins 2020-06-13 06:50:10 +02:00
Sebastian Gniazdowski d9c78ad124 *additional: Add support for => to *setup-params 2020-06-13 06:00:07 +02:00
Sebastian Gniazdowski 73ebeb5dc5 zinit: Use the snippet shorthand URLs without redirections 2020-06-13 02:56:06 +02:00
Sebastian Gniazdowski f68bb3eea4 README.md 2020-06-13 01:53:34 +02:00
Sebastian Gniazdowski 0f05076c44 README.md 2020-06-13 01:52:57 +02:00
Sebastian Gniazdowski b384d8cbf5 README.md 2020-06-13 01:50:38 +02:00
Sebastian Gniazdowski da257596e5 *install: FEATURE – `ziextract' has --move2 option, which moves files two
levels up. E.g.: if there will be a dir: Pulumi/bin/{pulumi,pulumi2},
then after `ziextract' there will be: ./{pulumi,pulumi2}. To obtain the
same effect using the extract'' ice, pass two exclamation marks, i.e.:
extract'!!'. A real-world example:

zi id-as'pulumi' as'monitor|null' mv'pulumi pulumi_' extract'!!' \
    dlink='https://get.pulumi.com/releases/sdk/pulumi-%VERSION%-windows-x64.zip' \
    sbin'pulumi*' for \
        https://www.pulumi.com/docs/get-started/install/versions/
2020-06-13 01:43:47 +02:00
Sebastian Gniazdowski 72d528ed05 *autoload: Invoke the atdelete handlers on `delete --clean' #319 2020-06-13 00:49:14 +02:00
Sebastian Gniazdowski b684c3f8af zinit: Correct option computation 2020-06-12 22:48:03 +02:00
Sebastian Gniazdowski 97826d4d36 README.md 2020-06-12 22:39:02 +02:00
Sebastian Gniazdowski b9daefeaff zinit,*autoload: FEATURE – new options to `update': -s/--snippets and
-l/--plugins – they're limiting the `update --all' to only plugins or
snippets. Example:

    zinit update --plugins

Works also with -p/--parallel.
2020-06-12 22:35:30 +02:00
Sebastian Gniazdowski 45fd8c8358 *install: Make ziextract --move better working 2020-06-12 18:44:12 +02:00
Sebastian Gniazdowski 86c0a51283 *autoload: Restore snippets for update -p 2020-06-12 18:10:02 +02:00
Sebastian Gniazdowski 0a7d9d1465 install: Alternate syntax 2020-06-12 18:09:39 +02:00
Sebastian Gniazdowski 9db192db79 zinit: Alternate syntax 2020-06-11 13:55:19 +02:00
Sebastian Gniazdowski 4eefbe79ba README.md 2020-06-11 13:43:38 +02:00
Sebastian Gniazdowski 0ff0c7855c Revert "all: Alternate syntax"
This reverts commit 611aa3f5e6.
2020-06-10 18:58:11 +02:00
Sebastian Gniazdowski 4bf80a891b zinit: Fix has'' ice #352 2020-06-10 18:16:00 +02:00
Sebastian Gniazdowski 611aa3f5e6 all: Alternate syntax 2020-06-10 17:05:15 +02:00
Sebastian Gniazdowski 279321d512 all: Correct print → builtin print 2020-06-06 16:43:34 +02:00
Sebastian Gniazdowski 9352ffe864 all: print → builtin print 2020-06-06 15:07:08 +02:00
Sebastian Gniazdowski 0baf19c7b0 *autoload: Update a message 2020-06-06 14:48:39 +02:00
Sebastian Gniazdowski bbe81ad3fa *install: Change mirror 2020-06-06 14:47:11 +02:00
Sebastian Gniazdowski 9ff614d1a7 zinit: Add the missing pullopts'' ice 2020-06-05 16:55:51 +02:00
Sebastian Gniazdowski 421c0b08c7 *autoload: Feature – new ice pullopts'' – options passed to git pull
Also solve the rebase-warning appearing under git 2.27 (#355).
2020-06-05 16:44:15 +02:00
Sebastian Gniazdowski 29087801eb *autoload: Fix a syntax 2020-06-05 16:26:21 +02:00
Sebastian Gniazdowski 2797549d24 *install: Fix completion-snippets updating #328 2020-06-01 13:18:24 +02:00
Sebastian Gniazdowski aab8010751 *autoload: Make INSTLLED_COMPS, SKIPPED_COMPS non-empty on plugin update
Issue #321
2020-05-30 19:18:33 +02:00
Sebastian Gniazdowski ee12924b1d *install: Ensure that Git progress-bar tool will correctly run 2020-05-30 19:14:21 +02:00
Sebastian Gniazdowski 51899ce985 *autoload: Alternate syntax in one place 2020-05-30 19:12:18 +02:00
Sebastian Gniazdowski 0b9d05ae8e *install: Fix the installed-execs message 2020-05-30 18:25:25 +02:00
Sebastian Gniazdowski a07a1817d2 *install: Fix a syntax 2020-05-30 17:59:40 +02:00
Sebastian Gniazdowski 7910e244bd zinit: Feature – allow multiple has'' elements – all commands required
Issue #351
2020-05-30 17:26:46 +02:00
Sebastian Gniazdowski 6d3be43d6b *install: print → +zinit-message in one place 2020-05-30 16:47:19 +02:00
Sebastian Gniazdowski 5ab08f4f43 *install: Alternate syntax 2020-05-29 16:12:33 +02:00
Sebastian Gniazdowski 20ee6ac334 *install,*autoload: No quoting of string argument in invocation of hooks 2020-05-27 05:25:46 +02:00
Sebastian Gniazdowski e0103d4a85 *autoload: Correctly mark the update status for gh-r plugins 2020-05-27 05:18:53 +02:00
Sebastian Gniazdowski e445c444a3 *install: More better messages in ziextract 2020-05-27 05:18:33 +02:00
Sebastian Gniazdowski cf5a9212e0 *install: Improve messages in ziextract 2020-05-27 04:47:04 +02:00
Sebastian Gniazdowski a7f2d14b48 *install: Better messages in ziextract 2020-05-27 04:43:37 +02:00
Sebastian Gniazdowski de7ebf35bd *install: Allow empty argument list to zicp' and zimv' → zicp \* → . 2020-05-27 01:35:37 +02:00
Sebastian Gniazdowski 2be7544d59 zinit: Add $ZPFX/usr/{sbin,bin} to $path 2020-05-27 01:30:37 +02:00
Sebastian Gniazdowski 1a4d1c938e zinit: Feature: A new function `@autoload' which is an extension of the
plugin standard. It allows plugins to autoload any functions without
extending $fpath and with the rename feature, e.g.:

    @autoload function-file-A → my-function \
                funB '->' funC

The syntax is the same as in autoload'' ice.
2020-05-27 01:07:39 +02:00
Sebastian Gniazdowski 7352aaac70 *install: Allow zicp' and zimv' to "map" the directories onto existing 2020-05-27 00:48:48 +02:00
Sebastian Gniazdowski bc04807e2e *install: Localize variables 2020-05-27 00:46:51 +02:00
Sebastian Gniazdowski 86407c46ad *install: Update a message 2020-05-26 19:41:02 +02:00
Sebastian Gniazdowski 9768fce460 *install: Allow quoting of the non-breaking space in extract'' 2020-05-24 10:45:40 +02:00
Sebastian Gniazdowski 37c3f75b51 zinit: Filter out -- from the arguments of autoload 2020-05-20 08:49:21 +02:00
Sebastian Gniazdowski 3a8049e630 *install: Fix extract''/ziextract #340 2020-05-20 05:31:00 +02:00
Sebastian Gniazdowski aa3beb1722 zinit,*install: FEATURE: zicm and zimv functions for atclone''/atpull''
usage. Use them to install files and directories into $ZPFX or another
directory. Example:

zi make'!' atclone'zicp share bin/fzf → bin usr -> /usr/local' for junegunn/fzf

Without an arrow (→,-> or =>) copies into the same directory in $ZPFX,
i.e.: `share' onto `$ZPFX/share' in the example. With an arrow –
into the given directory. Supports also file names with spaces – use the
non-breaking space (Right–AltGr + Space) in place of the intended space.
2020-05-19 10:16:45 +02:00
Sebastian Gniazdowski 98c120db64 install.sh: Reorder the annexes 2020-05-15 10:52:47 +02:00
Sebastian Gniazdowski bddf9896b7 README.md 2020-05-15 10:51:37 +02:00
Sebastian Gniazdowski 10596f3db4 zinit: FEATURE – autoload'funA -> funB' to load/rename funA as funB 2020-05-15 10:50:20 +02:00
Sebastian Gniazdowski f7756b4c26 zinit: autoload'' can *rename* the funs, e.g.: autoload'funA -> funB'
to load the function/file `funA' as function `funB'. Also, alternate,
"manual" loading method – via: eval "$(<func-file)" – has been exposed,
to use it, precede the ice with exclamation mark, i.e.: autoload'!funA'.
2020-05-15 10:37:53 +02:00
Sebastian Gniazdowski ceaf0b86e9 *install: Fine-tune messages in Cygwin package downloading 2020-05-15 05:42:34 +02:00
Sebastian Gniazdowski fedd94db2d zinit: Update color palette 2020-05-15 05:41:39 +02:00
Sebastian Gniazdowski 2e3c1a476e zinit.zsh: Update color palette 2020-05-15 05:36:48 +02:00
Sebastian Gniazdowski 1cfc98ba34 zinit: Update color palette 2020-05-15 05:33:12 +02:00
Sebastian Gniazdowski 2212b2e214 zinit: Update color palette 2020-05-15 05:28:06 +02:00
Sebastian Gniazdowski b5271d02df *install: Increase Cygwin-packages robustness 2020-05-15 02:18:51 +02:00
Sebastian Gniazdowski 8b6d011ce1 *install: Correct nonexistent Cygwin-package handling 2020-05-15 01:58:13 +02:00
Sebastian Gniazdowski 76f63c0bb1 *install: Make the plugin-directory cleanup more `insisting' 2020-05-15 01:57:04 +02:00
Sebastian Gniazdowski d9d3271570 *install: Initialize REPLY with empty value 2020-05-15 01:53:57 +02:00
Sebastian Gniazdowski af9db4d3c8 *install: A more straightforward way of a function cleanup 2020-05-15 01:53:23 +02:00
Sebastian Gniazdowski 99f58796f4 *install: File downloads now show the cURL progress bar 2020-05-15 01:47:04 +02:00
Sebastian Gniazdowski 7af1b3c886 *install: Allow interrupting package downloads, clenup unsuccessful ones 2020-05-15 01:41:13 +02:00
Sebastian Gniazdowski 844af5ee45 *install: Allow interrupting plugin downloads, cleanup on unsuccessful ones 2020-05-15 01:34:03 +02:00
Sebastian Gniazdowski d38bfb1eb1 *install: Finally resolve the download progress-bar issues 2020-05-14 22:40:30 +02:00
Sebastian Gniazdowski 8b71166380 *install: Correct progress bar showing during Curl invocation 2020-05-14 18:03:29 +02:00
Sebastian Gniazdowski ffca5f8cc5 zinit: Add a color to a message 2020-05-14 14:09:36 +02:00
Sebastian Gniazdowski 7616aa5a4b *install: Make `creinstall -q .' run correctly #321 2020-05-14 14:07:51 +02:00
romkatv 2b02f17592 hide internal function arguments from sourced scripts
When manually sourcing a file from `.zshrc`, `$@` is empty during
the evaluation of the file. However, when sourcing the same file
via `zinit snippet`, `zinit light` or `zinit load`, `$@` are those
of the internal `zinit` function that happens to invoke `source`.
This PR sets `$@` to empty before sourcing scripts to make sourcing
of files via `zinit` consistent with manual sourcing.

Test case:

  % cat ~/.zshrc
  source ~/.zinit/bin/zinit.zsh
  source ~/plugin.zsh
  zinit snippet ~/plugin.zsh
  % cat ~/plugin.zsh
  print -lr -- start "$@" end

Without this commit:

  % zsh
  start
  end
  start
  /home/romka/plugin.zsh
  end

With this commit:

  % zsh
  start
  end
  start
  end

Motivation:

Some zsh scripts allow additional arguments to be passed when they
are being sourced.

  source ~/plugin.zsh foo bar

Sourcing such scripts via `zinit` is currently impossible. It would
be perfect if `zinit` allowed custom arguments to be passed to
sourced scripts. This PR doesn't go that far but at least it allows
passing no arguments.
2020-05-13 09:42:37 +02:00
Mykola Rybak 09b78e9646 Fix completions installation condition
Recently zinit started installing completions event if nocompletions
ice is specified. This seems to be related to recent commit
a46f97e8c3

With that change, if either nocompletions or as"null" ices are not
specified than completions are installed, so to avoid completions
installation one has to specify both nocompletions _and_ as"null".

This commit changes logic to be equivalent to what was before.
2020-05-13 09:13:51 +02:00
Sebastian Gniazdowski c3bed8337f *side,*autoload: Handle the multiple bpick'' during update #334 2020-05-12 19:29:59 +02:00
Sebastian Gniazdowski c6ce7b0413 README.md 2020-05-12 16:19:08 +02:00
Sebastian Gniazdowski 726aa8ea19 *additiona: FEATURE – ability to substitute stringA -> stringB in plugin
source body before executing by subst'A -> B'. Work also for any nested
`source' commands. Example – rename the dl'' ice into a dload'' ice in
the Patch-Dl annex:

zi subst"dl'' -> dload''" for zinit-zsh/z-a-patch-dl
2020-05-12 16:09:03 +02:00
Sebastian Gniazdowski 7528ac820b zinit: Three new colors 2020-05-12 14:54:45 +02:00
Sebastian Gniazdowski 701b95af81 *side,*autoload: Support updating multi-bpick from"gh-r" plugins 2020-05-12 14:49:48 +02:00
Sebastian Gniazdowski db380e4bf8 autoload: Compile zinit-additional.zsh 2020-05-12 14:48:54 +02:00
Sebastian Gniazdowski b30ec15cf9 additinal: Add zinit-additional.zsh 2020-05-12 14:47:30 +02:00
Sebastian Gniazdowski 391f25e949 zinit: Create zinit-additional.zsh 2020-05-12 14:47:03 +02:00
Sebastian Gniazdowski 688fef86ac zinit: Silence warnings from unfunction 2020-05-12 14:29:04 +02:00
Sebastian Gniazdowski d828a87e9b zinit: Preliminary support for substitutions 2020-05-11 11:36:28 +02:00
Sebastian Gniazdowski fcff4a8f17 zinit: FEATURE – a new ice autoload'' which invokes `autoload -Uz …' on
the given files/functions. Example – a plugin that converts cd ... into
cd ../..:

zinit autoload'manydots-magic' atload'manydots-magic' for \
    knu/zsh-manydots-magic
2020-05-10 13:29:28 +02:00
Sebastian Gniazdowski f124600b5d zinit: Fix autoload -w 2020-05-10 11:35:53 +02:00
Sebastian Gniazdowski 1fd93ff28e zinit: Update Zle hooks list 2020-05-10 05:34:21 +02:00
Sebastian Gniazdowski 62a45647a6 README.md 2020-05-09 19:16:00 +02:00
Sebastian Gniazdowski bb41c7986a zinit: FEATURE – a new ice opts'' which takes options to sticky-set
during sourcing of the plugin. This means that thee options will be also
set for all of the *functions* that the plugin defines – during their
execution. The option list is space separated.
2020-05-09 18:55:42 +02:00
Sebastian Gniazdowski a6f6b8bbfc Revert "zinit: Increase noaliases-option handling correctness"
This reverts commit 0f81a7684d.

Issue #331
2020-05-09 18:02:20 +02:00
Sebastian Gniazdowski 0f81a7684d zinit: Increase noaliases-option handling correctness 2020-05-09 16:22:17 +02:00
Sebastian Gniazdowski 639e3e53ad zinit,*install: Feature: `creinstall' has -Q option muting ALL output
Issue #326
2020-05-09 15:44:05 +02:00
Sebastian Gniazdowski e452ea144c README.md 2020-05-09 15:28:14 +02:00
Sebastian Gniazdowski 90c6d55301 *install: Better method of quoting a string 2020-05-09 15:06:35 +02:00
Sebastian Gniazdowski 606c1b91ca *install: React to more interruption signals 2020-05-09 15:02:55 +02:00
Sebastian Gniazdowski f32ef2468b *install: Try to remove the plugin/snippet dir upon interruption 2020-05-09 15:01:33 +02:00
Sebastian Gniazdowski b94bb051af *install: FEATURE: download multiple files from gh-r by bpick"pat1;pat2"
or specifying the bpick-ice multiple times. Issue #330.
2020-05-09 12:31:31 +02:00
Sebastian Gniazdowski 532b533d41 install: Better gh-r matching for ARM and Windows 2020-05-09 12:30:35 +02:00
Sebastian Gniazdowski b8b3ad2a4b *side,*install,*autoload: __VAR -> ___VAR 2020-05-09 12:29:55 +02:00
Sebastian Gniazdowski 788ca4989b zinit: Remove unneeded spaces 2020-05-09 12:28:07 +02:00
Sebastian Gniazdowski 9004dfa4f8 zinit: Increase the length of the underscore prefix from __ to ___ #329 2020-05-08 21:18:53 +02:00
Sebastian Gniazdowski eb825f6fea zinit: Hide three functions' local variables with `__...' prefix #329 2020-05-08 20:46:52 +02:00
Sebastian Gniazdowski 4c2d27b681 *install: Select a better mirror at first (from"cygwin") 2020-05-08 12:30:55 +02:00
Sebastian Gniazdowski a81b97037f README.md 2020-05-06 18:32:16 +02:00
Sebastian Gniazdowski 223fa78d04 *install: Download Cygwin package once 2020-05-06 18:30:40 +02:00
Sebastian Gniazdowski fa931205a0 *install: Nicer progress bar 2020-05-06 15:55:12 +02:00
Sebastian Gniazdowski a8d0c77f24 *install: Correct curl and wget invocation 2020-05-06 15:46:55 +02:00
Sebastian Gniazdowski 29b1031fa9 *install,*autoload: FEATURE: from"cygwin" that downloads and unpacks the
given Cygwin package, from a random Cygwin mirror. Example:

zinit from"cygwin" for gzip

Or a more real-world example that includes exposing the binary using the
Bin-Gem-Node annex:

zinit from"cygwin" sbin"usr/bin/gzip.exe -> gzip" for gzip
2020-05-06 15:33:52 +02:00
Sebastian Gniazdowski ad9ece5331 all: Extend vim modeline 2020-05-06 14:34:34 +02:00
Sebastian Gniazdowski 930d12ef99 zinit: Change color 2020-05-06 14:30:11 +02:00
Sebastian Gniazdowski 5a420aa3cd zinit: Use *message in a few places 2020-05-06 14:28:40 +02:00
Sebastian Gniazdowski da23b0a45e zinit: Improve *message 2020-05-06 14:27:45 +02:00
Sebastian Gniazdowski 394a89ebd2 *install,*autoload: Trailing spaces and alternate syntax 2020-05-06 14:26:30 +02:00
Sebastian Gniazdowski 994c2cfc83 *install: A better machine-type recognition for from"gh-r" #318 2020-05-06 14:23:32 +02:00
Sebastian Gniazdowski 357996708a *install: Improve the download function 2020-05-06 14:21:35 +02:00
Sebastian Gniazdowski 6d4ba4add2 zinit,*install,*autoload: Remove trailing spaces 2020-05-06 14:16:51 +02:00
Sebastian Gniazdowski ff12246fb4 README.md 2020-04-21 21:08:31 +02:00
Sebastian Gniazdowski c5741c7e87 README.md #312 2020-04-21 21:08:04 +02:00
Sebastian Gniazdowski 3448a1be87 zinit: Include the cloneopts ice in the non-value ice list #312 2020-04-21 21:03:16 +02:00
Sebastian Gniazdowski 9c353e32c2 *install: Allow empty cloneopts to disable recursive clone #312 2020-04-21 21:03:16 +02:00
David O'Trakoun 29680bd9b3 Don't clone git-open recursively
git-open includes its test framework, don't need it
2020-04-21 20:59:17 +02:00
Sebastian Gniazdowski fbc77d9985 *install: Filter out .asc files #311 2020-04-20 19:03:01 +02:00
Sebastian Gniazdowski ff859ff375 zinit: Resolve the lack of posixargzero on 5.0.2 #310 2020-04-19 18:22:48 +02:00
Sebastian Gniazdowski ec3ba307d8 *autoload: Display the duration of the update 2020-04-19 02:31:37 +02:00
Sebastian Gniazdowski bbc19fb119 *autoload: A few print → +zinit-message 2020-04-19 02:30:51 +02:00
Sebastian Gniazdowski 80f03b263a *autoload: Correct handling of paths with spaces #309, #223 2020-04-18 18:20:22 +02:00
Sebastian Gniazdowski a40f7943cd zinit: Better reloading support 2020-04-18 17:35:04 +02:00
Sebastian Gniazdowski 7ed6ab9dc5 zinit: FEATURE – a function `m' available during loading of the plugin
or snippet. It works like `print' with colorizing features – [key] are
replaced with $ZINIT[col-key] values, which are in general colors. You
can define your own $ZINIT keys or use some of the default ones: obj,
obj2, pre, file, uname, pname, keyword, error, success, failure, info,
info2, msg1, msg2, rst.  Example: m 'This is a [file]./file/path[rst].'.
You can use this function inside e.g.: atinit'' or atload'', etc.
2020-04-18 17:22:27 +02:00
Sebastian Gniazdowski a443629f9c *autoload: Add an empty line 2020-04-18 13:43:36 +02:00
Sebastian Gniazdowski 384cd76947 *install: Use emulate instead of setopt 2020-04-18 13:42:33 +02:00
Sebastian Gniazdowski 4e9df68ca5 *install,*autoload: Fix compinit calling when `update -p' #284 2020-04-18 13:41:23 +02:00
Sebastian Gniazdowski a44bdd05a2 *autoload: Fix a pattern 2020-04-17 18:00:53 +02:00
Sebastian Gniazdowski c4e9008df5 *autoload: Make `delete --all' work #306 2020-04-17 18:00:20 +02:00
Sebastian Gniazdowski fe70012a1c *install: Prefer tar.gz over deb/rpm if dpkg-deb/cpio aren't available
Issue #307
2020-04-17 17:50:20 +02:00
Sebastian Gniazdowski ff084fd69f *install: Alternate syntax in one place 2020-04-17 17:48:39 +02:00
Sebastian Gniazdowski afe03d4f08 zinit: Preserve Turbo tasks when reloading, fixes #306 2020-04-17 17:35:26 +02:00
Sebastian Gniazdowski cacfa35d9e zinit: Detect lack of datetime module #306 2020-04-17 16:32:56 +02:00
greg 9e785d31ed zinit: Fix ZSH_CACHE_DIR value 2020-04-17 01:06:16 +02:00
Sebastian Gniazdowski 7e84e7bb9c *install: Feature – compile'' now stores the compiled files in
ADD_COMPILED array instead of displaying them.
2020-04-16 18:50:43 +02:00
Sebastian Gniazdowski 44e04aef43 *install: Allow calling creinstall in atclone → preserve INSTALLED_COMPS
and SKIPPED_COMPS
2020-04-16 18:40:12 +02:00
Sebastian Gniazdowski 8ae32e1037 *install: Single rm -f 2020-04-16 18:24:59 +02:00
Sebastian Gniazdowski b6db52b9bf *side: Use if instead of &&/|| 2020-04-16 16:56:20 +02:00
Sebastian Gniazdowski 188f9b8cdb *side: Improve *colorify* 2020-04-16 16:55:23 +02:00
Sebastian Gniazdowski 868fad03f5 *install: Don't reinstall disabled completions 2020-04-16 16:39:14 +02:00
Sebastian Gniazdowski 69abeab722 *install: Remove unneeded quoting 2020-04-16 16:38:37 +02:00
Sebastian Gniazdowski d411068c8f *zinit: emulate instead of setopt 2020-04-16 16:37:57 +02:00
Sebastian Gniazdowski 3a01df8495 zinit: Remove `cloneonly' file 2020-04-16 16:30:19 +02:00
Sebastian Gniazdowski d084ab23d8 README.md 2020-04-16 16:23:43 +02:00
Sebastian Gniazdowski 5dd98f71e1 *install: Correctly handle completion URLs 2020-04-16 16:16:30 +02:00
Sebastian Gniazdowski f53c4cf7f1 *install: Correctly download completion files 2020-04-16 15:19:53 +02:00
Sebastian Gniazdowski 997e3161d6 README.md 2020-04-15 23:45:34 +02:00
Sebastian Gniazdowski 0064b48678 README.md 2020-04-15 19:23:08 +02:00
Sebastian Gniazdowski a4cdccfe3e zinit: Provide the OMZT entry 2020-04-15 19:18:11 +02:00
Sebastian Gniazdowski 349caca207 rpm2cpio.zsh,*install: Move a file 2020-04-15 19:17:46 +02:00
Sebastian Gniazdowski 84b61e65ab *install: Support updating using the new URL prefixes 2020-04-15 19:13:46 +02:00
Sebastian Gniazdowski f7866672cf README.md 2020-04-15 19:09:30 +02:00
Sebastian Gniazdowski c8a56bc6b5 README.md 2020-04-15 19:08:24 +02:00
Sebastian Gniazdowski 23493ec5c8 zinit,*install: FEATURE – ability to skip the /themes/….zsh-theme from a
OMZ theme URL, e.g.: zi for OMZT::gnzh
2020-04-15 19:04:34 +02:00
Sebastian Gniazdowski 7682b40b74 README.md 2020-04-15 18:50:19 +02:00
Sebastian Gniazdowski 2bbb48f6e5 README.md 2020-04-15 18:44:25 +02:00
Sebastian Gniazdowski 37677c1fa2 *install: Correctly extend single-file URLs 2020-04-15 18:40:23 +02:00
Sebastian Gniazdowski f8ae31a36c README.md 2020-04-15 18:37:42 +02:00
Sebastian Gniazdowski dbbbc2afa3 README.md 2020-04-15 18:32:14 +02:00
Sebastian Gniazdowski 20fa14b06a Move files 2020-04-15 18:29:41 +02:00
Sebastian Gniazdowski b2a222dbc6 README.md 2020-04-15 18:28:44 +02:00
Sebastian Gniazdowski 66ca5e4300 *install: FEATURE – …/name.plugin.zsh can be skipped from single-file
(non svn) snippet URL – e.g.: OMZ::plugins/git or OMZP::git is
sufficient.
2020-04-15 18:24:11 +02:00
Sebastian Gniazdowski 216045cbe1 *install: Alternate syntax in one place 2020-04-15 18:21:44 +02:00
Sebastian Gniazdowski 2654046d2e zinit: Correct PZTM 2020-04-15 18:21:12 +02:00
Sebastian Gniazdowski b96f274f4a zinit,*install: Correct ZSH typeset 2020-04-15 18:20:37 +02:00
Sebastian Gniazdowski 589efcc43c README.md 2020-04-15 16:48:37 +02:00
Sebastian Gniazdowski 46a2084b97 zinit,*install,*autoload: FEATURE - new prefixes OMZP:: = OMZ::/plugins/
OMZL:: = OMZ::lib/, PZTM:: = PZT::modules/, for both svn and single-file
snippets. Example use:
  zinit for OMZP::ruby/ruby.plugin.zsh
  zinit svn for OMZP::ruby
2020-04-15 16:37:43 +02:00
Sebastian Gniazdowski 373eb3c23e zinit,*install: Correctly move the snippet of code 2020-04-15 16:35:32 +02:00
Sebastian Gniazdowski aec8ed3cca *install: Handle uncompiled snippet better 2020-04-15 16:26:21 +02:00
Sebastian Gniazdowski 6f0f9e4807 zinit,*install: Move a snippet of code to *install 2020-04-15 16:04:53 +02:00
Sebastian Gniazdowski e11b9617fb zinit,*install: Move a snippet to *install 2020-04-15 15:08:26 +02:00
Sebastian Gniazdowski cd93467743 zinit: Fix a message 2020-04-15 14:38:14 +02:00
Sebastian Gniazdowski 711da6ad54 zinit: Return code 0 #304 2020-04-15 14:23:35 +02:00
Sebastian Gniazdowski 2110fe9815 *process-output: One more level in the terminal size det 2020-04-14 18:07:11 +02:00
Sebastian Gniazdowski cfce035e0b *process-output: Detect smaller terminals 2020-04-14 17:58:56 +02:00
Sebastian Gniazdowski ca29d4fb3f *autoload: update' implies self-update' #301 2020-04-14 15:50:07 +02:00
Sebastian Gniazdowski c93d472cd2 *autoload: Quiet mode for *self-update #301 2020-04-14 15:49:30 +02:00
Sebastian Gniazdowski f5b303450a zinit: Better auto-disable-Turbo support 2020-04-13 19:06:44 +02:00
Sebastian Gniazdowski 51c963724e Travis: update 2020-04-13 18:16:21 +02:00
Sebastian Gniazdowski 05a34d80c8 Travis: Update 2020-04-13 16:55:25 +02:00
Sebastian Gniazdowski f7952e370b deploy_doc.sh: Update 2020-04-13 16:51:03 +02:00
Sebastian Gniazdowski 19693ef046 Travis: Reformat 2020-04-13 16:46:47 +02:00
Sebastian Gniazdowski f0db6c5c76 travis: New key 2020-04-13 16:44:30 +02:00
Sebastian Gniazdowski 119fdce8b1 New code documentation 2020-04-13 16:10:53 +02:00
Sebastian Gniazdowski 13b98aab20 install.sh: Improve installer 2020-04-13 15:32:07 +02:00
Sebastian Gniazdowski 3c990cadcb zinit: Fix the id-as'' ice 2020-04-12 20:07:21 +02:00
Sebastian Gniazdowski 215e8e44cb README.md 2020-04-12 20:00:58 +02:00
Sebastian Gniazdowski f32505d629 zinit: Feature: An empty id-as'' works like id-as'auto' 2020-04-12 19:56:20 +02:00
Sebastian Gniazdowski a46f97e8c3 *install: More clear condition 2020-04-12 19:55:57 +02:00
Sebastian Gniazdowski 9e683d2af0 *install: Unfunction *git-clone #300 2020-04-12 19:50:23 +02:00
Sebastian Gniazdowski fdcd13b903 *install: Better messages #300 2020-04-12 19:49:16 +02:00
Sebastian Gniazdowski 13661ee555 *install: Remove code duplication #300 2020-04-12 19:36:40 +02:00
Sebastian Gniazdowski ef83c60c58 *install: Try to workaround a possible problem with Git #300 2020-04-12 19:33:20 +02:00
Sebastian Gniazdowski b6c82a0be0 README.md 2020-04-12 17:10:21 +02:00
Sebastian Gniazdowski 872be10400 *install,*autoload: Don't run compinit in parallel update but after it
Issue #284
2020-04-10 19:27:37 +02:00
Sebastian Gniazdowski ad4ba39b44 *install: Make the file compile 2020-04-10 18:44:12 +02:00
Sebastian Gniazdowski 0599a8590b *install: Extends #299 2020-04-10 18:37:13 +02:00
Sebastian Gniazdowski db3e810088 *install: Fixes #299 2020-04-10 15:45:27 +02:00
Sebastian Gniazdowski 2fa0d665a8 *process-output: Mute tput when no $TERM #298 2020-04-09 15:17:11 +02:00
Sebastian Gniazdowski 1553e50443 zinit: Remove unneded setopt 2020-04-08 19:42:01 +02:00
Sebastian Gniazdowski ba51c3e102 zinit: Improve bindmap'' handling #271 2020-04-08 17:13:03 +02:00
Sebastian Gniazdowski 7c142130e5 zinit: Rename functions 2020-04-08 16:12:16 +02:00
Sebastian Gniazdowski 2d0f81dcec zinit,*autoload: Rearrange functions 2020-04-08 16:11:18 +02:00
Sebastian Gniazdowski 1e0443e4d6 *process-output: Suppress progress bar #297 2020-04-07 19:55:46 +02:00
Sebastian Gniazdowski 4883ab6a91 zinit: Ensure a source 2020-04-07 19:53:58 +02:00
Sebastian Gniazdowski 560c437782 *process-output: Suppress when no $TERM #297 2020-04-07 16:44:40 +02:00
Sebastian Gniazdowski c4f74ca439 zinit,*install,*autoload: A more safe sourcing of the side sources 2020-04-07 16:00:16 +02:00
Sebastian Gniazdowski 5fba601dbe zinit: Setup param'' earlier 2020-04-07 15:33:00 +02:00
Sebastian Gniazdowski d325f71d80 zinit: Remove uneeded flag 2020-04-06 18:43:00 +02:00
Sebastian Gniazdowski 6405bdb78d *install: Feature: support extracting of RPMs 2020-04-06 17:42:59 +02:00
Sebastian Gniazdowski 81ac5db27f rpm2cpio.zsh 2020-04-06 17:42:44 +02:00
Sebastian Gniazdowski 9a60b7e6fa *install: Support different sha sums 2020-04-05 18:12:28 +02:00
Sebastian Gniazdowski d8fd9340f9 zinit: Check param'' first 2020-04-05 18:10:42 +02:00
Sebastian Gniazdowski 8023b04688 zinit: Optimized param'' handling 2020-04-05 18:09:50 +02:00
Sebastian Gniazdowski ecc065a2af *install: Feature: from"gh-r", extract'', ziextract support DEB packages 2020-04-05 14:08:27 +02:00
Sebastian Gniazdowski f847a47a89 *install: Check and inform about missing unpacking programs 2020-04-05 14:07:45 +02:00
Sebastian Gniazdowski 4fb7c568dc README.md 2020-04-04 19:10:30 +02:00
Sebastian Gniazdowski 055e076f55 README.md 2020-04-04 18:02:11 +02:00
Sebastian Gniazdowski a8928a47f2 *install: A small fix for a message 2020-04-04 17:33:45 +02:00
Sebastian Gniazdowski dfc95c5f9a zinit: Optimized param'' handling 2020-04-04 16:33:42 +02:00
Sebastian Gniazdowski 01ac879bcb zinit: Optimize ices loading 2020-04-03 20:51:07 +02:00
Sebastian Gniazdowski 76b28209ed README.md 2020-04-02 18:51:10 +02:00
Sebastian Gniazdowski 49398d485d README.md 2020-04-02 18:49:27 +02:00
Sebastian Gniazdowski 4255470cff README.md 2020-04-02 18:46:07 +02:00
Sebastian Gniazdowski 405deda55a README.md 2020-04-02 18:44:25 +02:00
Sebastian Gniazdowski a8c93d588d *install: Improve a message 2020-04-02 17:02:03 +02:00
Sebastian Gniazdowski ff976daf72 *install: Support as-monitor `require' 2020-04-02 16:56:16 +02:00
Sebastian Gniazdowski 6d0d843f20 *install: Correctly detect errors from unpacking 2020-04-02 16:51:26 +02:00
Sebastian Gniazdowski caa3df96b1 *install: Improve a message 2020-04-02 16:40:05 +02:00
Sebastian Gniazdowski 15ec0870cc README.md 2020-04-01 20:16:59 +02:00
Sebastian Gniazdowski bfb9186d49 *install: Prevent error messages 2020-04-01 19:54:47 +02:00
Sebastian Gniazdowski 1b1cba1c1c *install: Improve zpextract's --move option 2020-04-01 19:35:43 +02:00
Sebastian Gniazdowski fa3ad1036e *install: Remove unneeded braces 2020-04-01 19:22:06 +02:00
Sebastian Gniazdowski 9ba306f6f5 *install: Inform about the $INSTALLED_EXECS array 2020-04-01 19:10:45 +02:00
Sebastian Gniazdowski 60fb3ceb59 *install,*autoload: Keep unpacked executables in $INSTALLED_EXECS array 2020-04-01 19:07:35 +02:00
Sebastian Gniazdowski 1b66664909 *install: Rename :zinit* → →zinit* 2020-04-01 18:29:46 +02:00
Sebastian Gniazdowski 0c639b5217 *install: `ziextract' – correctly handle --norm and --move 2020-04-01 18:28:19 +02:00
Sebastian Gniazdowski b61706d03e zinit: A defensive code in *load-ices 2020-03-24 20:45:06 +01:00
Sebastian Gniazdowski e4c092fc60 zinit: Handle POSIX_ARG_ZERO 2020-03-24 20:44:33 +01:00
Sebastian Gniazdowski 55e253bf76 zplugin*: Explicitly support loading via relative path 2020-03-24 20:35:56 +01:00
Sebastian Gniazdowski 3073804b97 zinit: Improve *get-object-path 2020-03-24 20:32:20 +01:00
Sebastian Gniazdowski c0f2a8fbd5 zinit: Store aliases option state 2020-03-22 14:30:28 +01:00
Sebastian Gniazdowski 7806356df4 *install: Fix gh-r version handling 2020-03-20 10:16:09 +01:00
Sebastian Gniazdowski d9645fdf6f *install,*autoload: Rename a function 2020-03-20 10:15:26 +01:00
Sebastian Gniazdowski bd61130880 *install: Output current gh-r version 2020-03-20 10:05:39 +01:00
Sebastian Gniazdowski 5ddb033342 zinit: Allow empty colors in *message 2020-03-20 07:08:26 +01:00
Sebastian Gniazdowski 1658cf0f75 zinit: Use *message 2020-03-20 07:05:22 +01:00
Sebastian Gniazdowski aeab7d7347 zinit: Make *message output unchanged text if given color not found 2020-03-20 07:03:59 +01:00
Sebastian Gniazdowski 2b21ff2a38 Merge /home/sg/zinit 2020-03-20 06:29:49 +01:00
Sebastian Gniazdowski 98f0087647 zinit: Support for the standard's `functions' directory 2020-03-20 06:05:08 +01:00
Sebastian Gniazdowski f7085df488 zinit: Use emulate in *shadow-autoload 2020-03-20 06:02:52 +01:00
Sebastian Gniazdowski e7d464de74 zinit: Improve the initialization code 2020-03-19 19:29:51 +01:00
x1a0 bc49c050e6 Filter out .sha256 urls 2020-03-19 11:21:07 +01:00
Sebastian Gniazdowski 2524d20b0a *install: Fix `update' to not react on existing plugin directory
Issue #281
2020-03-19 11:14:46 +01:00
Sebastian Gniazdowski e4101367e4 Revert "zinit,*install: Rename functions"
This reverts commit 52eb588495.
2020-03-13 15:35:18 +01:00
Sebastian Gniazdowski 52eb588495 zinit,*install: Rename functions 2020-03-13 15:34:25 +01:00
Sebastian Gniazdowski 5eb48e65df zinit: Move a function 2020-03-13 12:46:45 +01:00
Sebastian Gniazdowski 6826ca9fee Fix accidental commit 2020-03-13 12:35:31 +01:00
Sebastian Gniazdowski 1f08e3249d Revert "all: Cleanup"
This reverts commit f811bf36f1.
2020-03-13 12:34:18 +01:00
Sebastian Gniazdowski 3522eb9e98 zinit: Alternate syntax in a few places 2020-03-13 12:31:32 +01:00
Sebastian Gniazdowski cbe46cde22 zinit: Remove unused options 2020-03-13 12:15:41 +01:00
Sebastian Gniazdowski 6a86ad36fd zinit: Use *message instead of print 2020-03-12 04:33:49 +01:00
Sebastian Gniazdowski 3eabf8c7d0 zinit: Simplify *setup-params 2020-03-12 04:08:49 +01:00
Sebastian Gniazdowski 90d5ecb9e2 zinit: Uplift *substitute 2020-03-12 04:05:11 +01:00
Sebastian Gniazdowski 40c8319efd zinit,*side,*autoload: nval ices in single place 2020-03-12 03:50:07 +01:00
Sebastian Gniazdowski af81cedd9c *autoload: Use emulate in *recall 2020-03-12 03:44:08 +01:00
Sebastian Gniazdowski 48a1eb3087 *autoload: Uplift *recall 2020-03-12 03:43:11 +01:00
Sebastian Gniazdowski 37918cf5fb zinit,*side,*autoload: Use the single, global ice-list everywhere 2020-03-12 03:39:48 +01:00
Sebastian Gniazdowski 3b443ed53b zinit: Cleanup of *setup-params 2020-03-12 03:31:02 +01:00
Sebastian Gniazdowski 004a3096d0 zinit: Use extendedglob in *setup-params 2020-03-12 00:38:02 +01:00
Sebastian Gniazdowski 8be528b13a zinit: emulate instead of setopt 2020-03-12 00:13:16 +01:00
Sebastian Gniazdowski 59a0f74fca zinit: emulate instead of setopt 2020-03-12 00:12:09 +01:00
Sebastian Gniazdowski e0ad20cce4 zinit: Small uplift 2020-03-12 00:10:53 +01:00
Sebastian Gniazdowski 1767f30109 zinit: param'' ice allows to define parameters that are to be created 2020-03-12 00:10:06 +01:00
Sebastian Gniazdowski 0f1bf918fa zinit: Uplift the emulation ices handling 2020-03-12 00:06:43 +01:00
Sebastian Gniazdowski ad64d4089a zinit: Set option via emulate 2020-03-11 19:59:18 +01:00
Sebastian Gniazdowski 80711e350f zinit: Cleanup 2020-03-11 19:58:31 +01:00
Sebastian Gniazdowski ed9d2381a5 zinit: Use the *message function 2020-03-11 19:45:38 +01:00
Sebastian Gniazdowski 70996bf5ab *autoload: Use the *message function in one place 2020-03-11 19:45:22 +01:00
Sebastian Gniazdowski eec282852a zinit: Replace `print' with the *message function 2020-03-11 19:42:45 +01:00
Sebastian Gniazdowski b6422eb8ff *autoload: Remember module build time 2020-03-11 19:41:32 +01:00
Sebastian Gniazdowski 7cf349ef15 zinit: Rename the *message function 2020-03-11 19:39:18 +01:00
Sebastian Gniazdowski d6e707da4f zinit: A new function *message 2020-03-11 18:06:10 +01:00
Sebastian Gniazdowski ae1f571f0c zinit: Improve a message 2020-03-11 16:41:24 +01:00
Sebastian Gniazdowski 0056a7fcac zinit: Extend error message 2020-03-11 16:38:29 +01:00
Sebastian Gniazdowski 1962e394cc zinit: Improve a message 2020-03-11 16:37:25 +01:00
Sebastian Gniazdowski 3e8d1edc40 zinit: Warn if a suspected overlap of plugin and an ice occurs 2020-03-11 16:35:08 +01:00
Sebastian Gniazdowski b057c53c89 zinit: Alternate syntax in a few places 2020-03-11 15:52:59 +01:00
Sebastian Gniazdowski 81b9d3a53a zinit: Create a global ice-list 2020-03-11 15:51:24 +01:00
Sebastian Gniazdowski f811bf36f1 all: Cleanup 2020-03-06 11:26:23 +01:00
Sebastian Gniazdowski d70b07b8f7 *install: Fix a *get-object-path call 2020-03-06 10:01:29 +01:00
Sebastian Gniazdowski 488039ef8e *install: Alternate syntax in few places 2020-03-06 07:26:29 +01:00
Sebastian Gniazdowski 9c9db19092 *install: Fix a message in *setup-plugin-dir 2020-03-06 07:16:26 +01:00
Sebastian Gniazdowski 8cd6c0796a *install: Unify two cases in *setup-plugin-dir 2020-03-06 07:13:43 +01:00
Sebastian Gniazdowski 2d14c8b9e8 *install: Alternate syntax in few places 2020-03-06 06:53:19 +01:00
Sebastian Gniazdowski ea339b53cf zinit: Feature - atinit'!…' will be tracked by Zinit 2020-03-06 04:41:23 +01:00
gammafn 0fc5e44c51 shadow-autoload breaks under rcexpandparam 2020-03-06 02:33:09 +01:00
Sebastian Gniazdowski 81a676304f *autoload: Allow to influence the parallel update via $ZINIT[DEBUG_MODE] 2020-03-03 19:51:27 +01:00
Sebastian Gniazdowski 442bedceb1 *autoload: Improve safety and messages of *delete 2020-03-03 19:46:21 +01:00
Sebastian Gniazdowski 04daa17c7c *autoload: Localize $match, …, $MATCH, … parameters in *delete 2020-03-03 19:43:39 +01:00
Sebastian Gniazdowski eeb9f94481 *autoload: Use emulate instead of setopt in *delete 2020-03-03 19:43:10 +01:00
Sebastian Gniazdowski 8a26f58760 *autoload: Use emulate instead of setopt in *show-times 2020-03-03 19:42:15 +01:00
wzy f399defbae Rename zplugin.1 to zinit.1
modify the error when `zinit man` return no file named zinit.1
2020-03-03 19:16:34 +01:00
Sebastian Gniazdowski 31ab63be5e *autoload: More safety improvements to `reset' and -r/--reset 2020-03-03 13:38:23 +01:00
Sebastian Gniazdowski 8e0751d184 *autoload: Better protected -r/--reset option (for `update') and the ice 2020-03-03 13:17:39 +01:00
Sebastian Gniazdowski 00ad29a6a3 install.sh: A general uplift and presentation of a few important changes 2020-03-02 20:27:49 +01:00
Sebastian Gniazdowski 18c45eda10 install.sh: Propose adding a few useful annexes to the zshrc 2020-03-02 14:08:44 +01:00
Sebastian Gniazdowski c4d7a05138 install.sh: add %b to print -P messages 2020-03-02 14:06:28 +01:00
Sebastian Gniazdowski 96aa7ab04c install.zsh: Better chmod 2020-03-02 14:04:42 +01:00
Sebastian Gniazdowski 41eae36882 install.zsh: A more reasonable chmod 2020-03-02 13:23:46 +01:00
Sebastian Gniazdowski 3ae28681e8 *install: Compile the plugin with `emulate zsh' set
Issue #273
2020-03-02 12:24:50 +01:00
Sebastian Gniazdowski 9c94debeb6 README.md 2020-03-02 02:59:26 +01:00
Sebastian Gniazdowski 451e7139e0 zinit: Fix the object-recognition snippet 2020-03-02 02:50:40 +01:00
Sebastian Gniazdowski 941fcc0e14 zinit: Fix a typo 2020-03-02 02:48:07 +01:00
Sebastian Gniazdowski 0f1bed97f3 zinit: Fix potential plugin/snippet loading problem 2020-03-02 02:45:49 +01:00
Sebastian Gniazdowski e361f97000 zinit: Fixed snippet-recognition (this time for sure) for passing both…
a snippet and a plugin in the same for-syntax command.
Issue #272
2020-03-02 02:24:44 +01:00
Sebastian Gniazdowski 985c57f6e5 zinit: Fix passing github url to load/light #184 2020-03-01 17:11:18 +01:00
Sebastian Gniazdowski dbd749f28c zinit: A fixed version of the nicer object-type -recognition snippet 2020-03-01 00:16:43 +01:00
Sebastian Gniazdowski de249d96a4 zinit: Properly allow the last one in zle-F-series to start new series 2020-02-29 23:39:41 +01:00
Sebastian Gniazdowski ceaa435355 Revert "zinit: Allow the last one of the zle-F-series to create a new series"
This reverts commit 823e3cd3f8.
2020-02-29 23:38:22 +01:00
Sebastian Gniazdowski b5e092fd13 *autoload: Extend parallel-update message with type of updated objects
Issue #184
2020-02-29 23:33:59 +01:00
Sebastian Gniazdowski ff385cc690 *autoload: Resign of extra newline after plugin update in non-quiet mode 2020-02-29 23:26:32 +01:00
Sebastian Gniazdowski 62409fc141 README.md 2020-02-29 20:20:57 +01:00
Sebastian Gniazdowski 32cd3aa21a Revert "zinit: More compact and nicer object-type recognition code"
This reverts commit b8515056e7.
2020-02-29 20:10:41 +01:00
Sebastian Gniazdowski 928cbbded9 README.md 2020-02-29 00:12:44 +01:00
Sebastian Gniazdowski 823e3cd3f8 zinit: Allow the last one of the zle-F-series to create a new series 2020-02-28 23:27:03 +01:00
Sebastian Gniazdowski 660e67abfb README.md 2020-02-28 23:23:01 +01:00
Sebastian Gniazdowski b8515056e7 zinit: More compact and nicer object-type recognition code 2020-02-28 20:20:58 +01:00
Sebastian Gniazdowski 06880c9b43 zinit: Make *get-object-path respect id-as'' 2020-02-28 20:00:44 +01:00
Sebastian Gniazdowski d2b195e715 README.md 2020-02-28 18:20:55 +01:00
Sebastian Gniazdowski 494fc9ade3 README.md 2020-02-28 18:18:25 +01:00
Sebastian Gniazdowski 501bca7c8a README.md 2020-02-28 18:07:15 +01:00
Sebastian Gniazdowski 125f57b544 README.md 2020-02-28 18:01:40 +01:00
Sebastian Gniazdowski c77cb37071 README.md 2020-02-28 17:31:56 +01:00
Sebastian Gniazdowski e036174400 *autoload: Correct conditions for some messages 2020-02-28 13:58:04 +01:00
Sebastian Gniazdowski a3cd138ccf zinit: typeset ZINIT_TMP 2020-02-28 13:47:56 +01:00
Sebastian Gniazdowski 5dd920fd2f zinit: Correctly recognize empty wait ice for the non-Turbo installation 2020-02-28 05:10:31 +01:00
Sebastian Gniazdowski 46a03bf311 zinit: Resign of overcautiousness for more performance in scheduler 2020-02-28 05:01:44 +01:00
Sebastian Gniazdowski 9915a6dd2b zinit: OPTIMIZATION – scheduler performs the hard work only when needed.
This should give +20 ms gain per any Turbo object, for a high number
of the objects, like 20.
2020-02-27 23:23:56 +01:00
Sebastian Gniazdowski 6022fa05c4 README.md 2020-02-27 22:25:56 +01:00
Sebastian Gniazdowski a1f5ae9e1f README.md 2020-02-27 22:24:14 +01:00
Sebastian Gniazdowski e2bcc8d581 README.md 2020-02-27 22:18:52 +01:00
Sebastian Gniazdowski 0053e309e9 zinit: !!FIX!! – restore Turbo-mode for the non-for syntax 2020-02-27 22:14:46 +01:00
Sebastian Gniazdowski 779ecb5423 zinit: Zsh's greedy matching is non-exhaustive 2020-02-27 20:41:51 +01:00
Sebastian Gniazdowski 909fd69246 zinit: Check for existence of object only, when there's Turbo-like ice 2020-02-27 18:32:45 +01:00
Sebastian Gniazdowski 4a79f8547a zinit: Uplift scheduler code 2020-02-27 16:31:52 +01:00
Sebastian Gniazdowski bb02c30829 README.md 2020-02-26 21:52:57 +01:00
Sebastian Gniazdowski 1c5fdda600 *install: Use correct variable name `ZINIT_ICE'
See: a305bf81ac (commitcomment-37499776)
2020-02-26 21:43:22 +01:00
Sebastian Gniazdowski 21bdde4d94 README.md 2020-02-26 14:35:28 +01:00
Sebastian Gniazdowski 68dfde8578 README.md 2020-02-26 14:04:34 +01:00
Sebastian Gniazdowski d803b7e103 *autoload: Restart also the update function (on Zinit reload) 2020-02-26 12:52:48 +01:00
Sebastian Gniazdowski ddc554f8f4 zinit,*autoload: FEATURE - update' will detect a self-update' done in
another session and automatically *reload* Zinit right before updating.

Issue #270
2020-02-26 12:42:12 +01:00
Sebastian Gniazdowski 0c728966d0 *install: *update-snippet verifies if the snippet exists
Issue #270
2020-02-26 10:58:02 +01:00
Sebastian Gniazdowski 9af32d853d zinit: Use alternate syntax for the module-recompilation block 2020-02-26 10:31:44 +01:00
Sebastian Gniazdowski 281a644d3f zinit,*autoload: Add support for reloading Zinit after self-update
Issue #270
2020-02-26 10:30:45 +01:00
Sebastian Gniazdowski 693d9027f5 *autoload: Remove unneeded quoting and braces from *self-update 2020-02-26 10:29:51 +01:00
Sebastian Gniazdowski 68e6130916 *autoload: Emulate in *self-update 2020-02-26 10:26:37 +01:00
Sebastian Gniazdowski 2306c015b1 *autoload: Fix a problem of the ices not resetting when no binary found 2020-02-26 09:39:46 +01:00
Sebastian Gniazdowski a9b2874e5e *install,*autoload: Provide ZINIT_ICE for *gh-r-version → no $ice refs 2020-02-26 09:32:11 +01:00
Sebastian Gniazdowski 27bdc46685 *install: Sophisticated message from *gh-r-version that adapts to bpick 2020-02-26 09:22:49 +01:00
Sebastian Gniazdowski e7bed9f49e zinit: A lighter blue for col-file 2020-02-26 09:22:00 +01:00
Sebastian Gniazdowski 2a0f4daf78 *autoload: Compare the URLs exactly, without wrapping *…* 2020-02-26 09:05:34 +01:00
Sebastian Gniazdowski b3afd76061 zinit: A lighter orange for col-msg2 2020-02-26 09:04:49 +01:00
Sebastian Gniazdowski faf758474d *install: *gh-r-version is made additionally testable 2020-02-26 09:03:25 +01:00
Sebastian Gniazdowski 3dec15b1ba *install: KSH_ARRAYS is disabled (emulate zsh) → no need for braces 2020-02-26 09:02:32 +01:00
Sebastian Gniazdowski eaea70043e *install: A nice message with print -P and ZINIT[col-*] in *gh-r-version 2020-02-26 09:01:21 +01:00
Sebastian Gniazdowski 286896bda1 *install: Always reset REPLY in *gh-r-version 2020-02-26 09:00:35 +01:00
Sebastian Gniazdowski a305bf81ac *install: Uplift *gh-r-version, a cleanup 2020-02-26 08:59:23 +01:00
Sebastian Gniazdowski 5ad9d1b175 *install: emulate instead of setopt in *gh-r-version 2020-02-26 08:57:29 +01:00
Sebastian Gniazdowski 5f587d1d31 *install,*autoload: Abort when there's no suitable binary file found 2020-02-26 08:56:25 +01:00
NICHOLAS85 44ebbf566f *install,*autoload: Consolidate gh-r version logic 2020-02-26 08:32:54 +01:00
Sebastian Gniazdowski b46acc35ca README.md 2020-02-26 06:09:03 +01:00
Sebastian Gniazdowski 23bcb30ff5 README.md 2020-02-26 06:05:16 +01:00
Sebastian Gniazdowski 5302fe45a6 README.md 2020-02-26 05:52:32 +01:00
Sebastian Gniazdowski 11859c7122 zinit: Output message, don't just return when no zsh/util, zsh/parameter 2020-02-26 05:38:08 +01:00
Sebastian Gniazdowski a958509219 *install: Better / better separated pack''-related messages 2020-02-26 05:18:20 +01:00
Sebastian Gniazdowski 9bcf61427d README.md 2020-02-26 04:28:11 +01:00
Sebastian Gniazdowski f7155a4f27 README.md 2020-02-26 04:22:45 +01:00
Sebastian Gniazdowski 0cd2c64765 *autoload: A better header message for `times -m' 2020-02-26 04:16:36 +01:00
Sebastian Gniazdowski bd93a6e942 zinit: FEATURE – Turbo is now disabled if the plugin isn't installed
first. This makes the plugins and snippets be installed without Turbo
mode – i.e.: immediately during the reading of Zshrc and not after
showing the prompt. Use ZINIT[OPTIMIZE_OUT_DISK_ACCESSES]=1 to disable
this feature – this gives ~10 ms out of ~150 ms, e.g.: 144 ms instead
of 154 ms (the time of `zsh -ic exit').
2020-02-26 03:24:44 +01:00
Sebastian Gniazdowski 1ee8ca94d5 zinit: Uplift *load-ices → use of *get-object-path 2020-02-26 00:40:42 +01:00
Sebastian Gniazdowski 96e0d4b67a *install: Uplift ↑ of *update-snippet → use of *get-object-path 2020-02-26 00:29:20 +01:00
Sebastian Gniazdowski a4b7df9920 *side: Uplift ↑ of *two-paths – no redundancy → call to *get-object-path 2020-02-26 00:11:55 +01:00
Sebastian Gniazdowski 3fb9803fcb *side: emulate in *two-paths 2020-02-26 00:10:43 +01:00
Sebastian Gniazdowski cfe7566e7f *side: Reformat code 2020-02-26 00:09:33 +01:00
Sebastian Gniazdowski aa9b4880ed *autoload: `times' verifies if zsh/datetime module is available 2020-02-25 22:49:51 +01:00
Sebastian Gniazdowski 08e65c73c4 zinit: Care for the error messages also when loading a snippet 2020-02-25 22:21:06 +01:00
Sebastian Gniazdowski 07fa09b533 zinit: Uplift ↑ *load-plugin + atload'!…' fix 2020-02-25 22:14:31 +01:00
Sebastian Gniazdowski e73749b0b4 zinit: Call *other-matches instead of running an own globbing 2020-02-25 21:44:28 +01:00
Sebastian Gniazdowski f21e7a43eb zinit: *other-matches uplift: a) testable, b) does uniquify, c) lib.zsh,
d) nicer quoting and no unneeded braces.
2020-02-25 21:38:23 +01:00
Sebastian Gniazdowski 5c6d25d471 zinit: Make *get-object-path testable: true/false ↔ directory exists/not 2020-02-25 20:50:33 +01:00
Sebastian Gniazdowski aeac5e2053 zinit: `run' to use the *get-object-path function 2020-02-25 20:49:04 +01:00
Sebastian Gniazdowski 4c23cf2f85 zinit: A new function to get path to the object, plugin or snippet 2020-02-25 20:09:48 +01:00
Sebastian Gniazdowski a268905a9a zinit,*side,*install: Better snippet paths for domain-only URLs 2020-02-25 19:50:55 +01:00
Sebastian Gniazdowski 25e161109a zinit: Fix snippet-path computing in `run' 2020-02-25 19:47:28 +01:00
Sebastian Gniazdowski 43b0562745 zinit: Alternate syntax in one place 2020-02-25 19:43:11 +01:00
Sebastian Gniazdowski 51745d7da1 zinit: Always set $ZSH for OMZ snippets, not only for `svn' mode 2020-02-25 18:57:51 +01:00
Sebastian Gniazdowski e93ea2832e *install: A small cleanup in *update snippet
Issue #184
2020-02-25 18:56:53 +01:00
Sebastian Gniazdowski 9193f062bf zinit: Further cleanup in *load-snippet 2020-02-25 18:55:45 +01:00
Sebastian Gniazdowski c4f0c48fcb zinit: Remove superfluous update-related code from *load-snippet
Issue #184
2020-02-25 17:15:30 +01:00
Sebastian Gniazdowski b00f361825 Revert "Revert "Revert "zinit: Use zselect for a more predictable sleep time"""
This reverts commit f8479165e7.
2020-02-25 14:48:31 +01:00
Sebastian Gniazdowski ed41ae76b6 *autoload: `create' now sets up also the diff regex for Markdown files 2020-02-25 12:39:53 +01:00
Sebastian Gniazdowski 92f0a3df32 README.md 2020-02-22 18:37:22 +01:00
Sebastian Gniazdowski ed46ffc3c0 README.md 2020-02-22 18:35:23 +01:00
Sebastian Gniazdowski e1ec27cb1b README.md 2020-02-22 18:34:14 +01:00
Sebastian Gniazdowski 5b070a0d53 README.md 2020-02-22 18:33:03 +01:00
Sebastian Gniazdowski aabb6f35fd README.md (logo) 2020-02-22 18:30:51 +01:00
Sebastian Gniazdowski b7f3784b94 *autoload: Add missing ices to the help message 2020-02-21 21:04:15 +01:00
Sebastian Gniazdowski ff75e5ab48 zinit: Better formating for a snippet of code 2020-02-21 21:03:37 +01:00
Sebastian Gniazdowski 7ec8eef41d zinit,*side: Support the --- separated IDs deeper 2020-02-21 19:13:41 +01:00
Sebastian Gniazdowski 210c541e35 *side: *colorify* to support --- separated IDs 2020-02-21 19:06:45 +01:00
Sebastian Gniazdowski f8479165e7 Revert "Revert "zinit: Use zselect for a more predictable sleep time""
This reverts commit c404dffe56.

Issue #267
2020-02-21 18:29:36 +01:00
Sebastian Gniazdowski ad97d51eb9 zinit,*install,*autoload: Protect against word-split and spaces-BIN_DIR 2020-02-21 18:26:15 +01:00
Sebastian Gniazdowski 709c59c63f zinit: Correctly recognize annex subcommands 2020-02-21 15:38:53 +01:00
Sebastian Gniazdowski f4c7a41942 zinit: Fix (#i) comparison 2020-02-21 14:58:55 +01:00
Sebastian Gniazdowski 756728b855 zinit.zsh: Use emulate in *service 2020-02-21 14:57:48 +01:00
Sebastian Gniazdowski c404dffe56 Revert "zinit: Use zselect for a more predictable sleep time"
This reverts commit f6145dff24.

Issue #267
2020-02-20 19:35:30 +01:00
Sebastian Gniazdowski 7e0455a565 README.md 2020-02-20 19:32:57 +01:00
Sebastian Gniazdowski c4cd4dff90 README.md 2020-02-20 19:20:03 +01:00
Sebastian Gniazdowski 4400d85851 *install: `ziextract' checks if the argument was given 2020-02-20 18:50:58 +01:00
Sebastian Gniazdowski 5190d9a18e *install: `extract' now skips doing backup also when 2 or more archives
will be detected in the auto mode
2020-02-20 18:24:36 +01:00
Sebastian Gniazdowski 26dc46fd7c README.md 2020-02-20 15:42:42 +01:00
Sebastian Gniazdowski e4296dd838 zinit: Fine-grained FEATURE – an empty pick'' ice will result in
automatic setting of it to the $id_as:t – i.e.: to the last component of
the ID string. This works only for as"command". Example:
    zinit as=command pick for paulirish/git-open
being equivalent to:
    zinit as=command pick=git-open for paulirish/git-open
2020-02-20 15:17:41 +01:00
Sebastian Gniazdowski c49cee655f *install: Allow un-quieting of a single update operation (snippets only) 2020-02-20 08:09:36 +01:00
Sebastian Gniazdowski 598763dfd1 *install: Skip copying message for /dev/null snippet 2020-02-20 07:42:31 +01:00
Sebastian Gniazdowski 2e6fc2ab90 zinit: ZINIT_CUR_PLUGIN → ZINIT[CUR_PLUGIN] 2020-02-20 07:31:24 +01:00
Sebastian Gniazdowski 8b28282345 README.md 2020-02-20 07:05:14 +01:00
Sebastian Gniazdowski b9c93f26a6 README.md 2020-02-20 05:29:42 +01:00
Sebastian Gniazdowski a3841a9b18 *autoload: Be cautious to not loose track of the plugins #184 2020-02-20 04:49:51 +01:00
Sebastian Gniazdowski 97ad98ccc5 *autoload: Don't set nullglob 2020-02-20 04:47:19 +01:00
Sebastian Gniazdowski a519e7dd72 *autoload: Further cleanup #184 2020-02-20 04:42:13 +01:00
Sebastian Gniazdowski cb083d2693 *install: Remove unneeded quotes in one place 2020-02-20 04:40:03 +01:00
Sebastian Gniazdowski 26fe941816 *autoload: Cleanup
Issue #184
2020-02-20 04:39:32 +01:00
Sebastian Gniazdowski 1bb3940cee *autoload: Remove code duplication by adding a function
Issue #184
2020-02-20 04:38:35 +01:00
Sebastian Gniazdowski 542ec4fcd0 *autoload: Remove debug message, update one other message 2020-02-20 04:33:34 +01:00
Sebastian Gniazdowski c70d737051 *autoload: Remove debug messages 2020-02-20 04:31:56 +01:00
Sebastian Gniazdowski cb673688e5 zinit,*autoload: FEATURE – PARALLEL UPDATE – pass -p/--parallel to
`update' to activate. Runs sets of 15 concurrent jobs – to customize,
pass the number, e.g.: zi update -p 20
2020-02-20 04:28:24 +01:00
Sebastian Gniazdowski 17fb390646 *autoload: More concise update messages
Issue #184
2020-02-20 03:31:11 +01:00
Sebastian Gniazdowski aa7800dc72 *install: Use -f with `ln' 2020-02-20 02:48:25 +01:00
Sebastian Gniazdowski c82422f1be *install,*autoload: Exclude *.ri files (Ruby) from completions patterns 2020-02-19 23:11:15 +01:00
Sebastian Gniazdowski 668c064103 git-process-output.zsh: Shorter message 2020-02-19 06:19:15 +01:00
Sebastian Gniazdowski 3724e0889b README.md 2020-02-19 05:45:37 +01:00
Sebastian Gniazdowski 407fe3aca7 README.md 2020-02-19 05:44:50 +01:00
Sebastian Gniazdowski 0f4a3125c2 *autoload: Remove unneeded quoting from *recently 2020-02-19 00:01:25 +01:00
Sebastian Gniazdowski a630b33378 *autoload: emulate in *recently 2020-02-18 23:59:11 +01:00
Sebastian Gniazdowski 3c36a8a23a *autoload: More compact update logs 2020-02-18 23:58:31 +01:00
Sebastian Gniazdowski 431bd2b906 *install: Set the multi-flag to 2 when installing an object (p/s) 2020-02-18 03:44:27 +01:00
Sebastian Gniazdowski 6ec3c08b00 *install: Remove unneeded quoting from *download-snippet
Issue #184
2020-02-18 03:37:02 +01:00
Sebastian Gniazdowski ef41a5c159 *install: No warncreateglobal in ziextract in case someone wants to use
it outside Zinit.
2020-02-18 02:34:58 +01:00
Sebastian Gniazdowski 79c689f52d *install: Don't disable noshortloops to allow Prezto modules to compile
Issue #263
2020-02-13 21:06:11 +01:00
Sebastian Gniazdowski 6301871d43 zinit,*install: Two assigns in one line 2020-02-13 04:59:48 +01:00
Sebastian Gniazdowski f4601a0aa1 *autoload: *update-or-status-all – use emulate & remove unneeded quoting
Issue #184
2020-02-13 04:55:35 +01:00
Sebastian Gniazdowski 9b769c6f31 *autoload: Remove unneeded quoting from *update-or-status
Issue #184
2020-02-13 04:46:38 +01:00
Sebastian Gniazdowski 7547e3018f *autoload: Remove unneded quoting from *get-path 2020-02-13 04:37:17 +01:00
Sebastian Gniazdowski 0db31d7107 *autoload: A fix for local plugins and ice overriding at update 2020-02-13 04:34:52 +01:00
Sebastian Gniazdowski 6a72ced371 *install: A better message print 2020-02-13 04:11:56 +01:00
Sebastian Gniazdowski 1017376f42 zinit,*install,*autoload: Cleanup in snippet-update code
Issue #184
2020-02-13 04:10:35 +01:00
Sebastian Gniazdowski 13fc722ab0 *install: Remove unneeded quoting from 2 places 2020-02-13 04:07:47 +01:00
Sebastian Gniazdowski fd960f2efe *autoload: (old)Feature – after recall' appending only update' to the
`zinit' command is sufficient – no need to enter the ID. Fix this for
snippets.
2020-02-13 03:19:11 +01:00
Sebastian Gniazdowski ef43ab1bb0 *autoload: An update message to respect -q/--quiet 2020-02-12 11:08:45 +01:00
Sebastian Gniazdowski 4a161add10 *install: Make extract' respect the -q/--quiet option of update' 2020-02-11 23:25:15 +01:00
Sebastian Gniazdowski 54d938a0ee *autoload: More concise update message 2020-02-11 23:22:25 +01:00
Sebastian Gniazdowski 0b666a53ed *autoload: FEATURE: `create' now sets up a .gitattributes file and a Zsh
diff regex, that will properly match Zsh function names in the diffs
2020-02-11 19:05:36 +01:00
Sebastian Gniazdowski 16a207ef03 .gitattributes with diff=zsh 2020-02-11 18:47:55 +01:00
Sebastian Gniazdowski 943cd68588 *autoload: Nicer code in one place 2020-02-11 17:20:14 +01:00
Sebastian Gniazdowski 342e1e6061 *autoload: Limit the cases when the hooks are being run during update 2020-02-11 17:13:58 +01:00
Sebastian Gniazdowski 8eb1a159e1 *autoload: Update of snippet is testable 2020-02-11 01:46:45 +01:00
Sebastian Gniazdowski dc7e2f2722 *install: Reformat a long message 2020-02-11 01:36:44 +01:00
Sebastian Gniazdowski 59b14359f8 *autoload: If there are plugin and snippet of same name – update both 2020-02-11 01:27:13 +01:00
Sebastian Gniazdowski 85ef4d7527 *autoload: Fix updating if there's a snippet of same name as plugin 2020-02-11 01:24:13 +01:00
Sebastian Gniazdowski 3aca065cac *install: Don't remove the single-file snippet before copying 2020-02-10 18:45:26 +01:00
Sebastian Gniazdowski 0bccd8d86f *install: Fix the file-snippet hook running 2020-02-10 18:44:56 +01:00
Sebastian Gniazdowski df16d33e1f *install: Improve a message and some code 2020-02-10 17:24:07 +01:00
Sebastian Gniazdowski 8ce36e9d8e *install: Don't deliberately resign from Zsh <= 5.0.0 compatibility 2020-02-10 01:17:49 +01:00
Sebastian Gniazdowski 04dab88fba *install: Further improve an old code 2020-02-10 01:14:54 +01:00
Sebastian Gniazdowski 8619a0e02e *install: Improve an old code 2020-02-10 01:13:03 +01:00
Sebastian Gniazdowski 2e7749cc38 *install: A better way to prevent the message 2020-02-10 01:11:39 +01:00
Sebastian Gniazdowski a1b4243a61 *install: Fix an error message appearing 2020-02-10 01:09:08 +01:00
Sebastian Gniazdowski b9d6e4c195 README.md 2020-02-10 00:52:11 +01:00
Sebastian Gniazdowski c2bf00c7a2 *autoload: Fix the ^M appearing in update messages 2020-02-10 00:39:34 +01:00
Sebastian Gniazdowski 94eebbac9e *install: Fix handling of non-empty and multi-valued `extract' ice 2020-02-10 00:07:30 +01:00
Sebastian Gniazdowski ccd539495b README.md 2020-02-09 23:34:39 +01:00
Sebastian Gniazdowski 3bf2bee132 *install: Issue warning only when no binaries have been found (`extract')
Fixes #230
2020-02-09 04:02:48 +01:00
Sebastian Gniazdowski 53746af4cb zinit: Remove unneeded braces 2020-02-09 03:57:28 +01:00
Sebastian Gniazdowski 78dafd14e9 *install: No warning message when as"null" 2020-02-09 03:56:48 +01:00
Sebastian Gniazdowski d1d4e6da49 *install,*autoload: Exclude YAML files from the completions 2020-02-09 03:56:00 +01:00
Sebastian Gniazdowski f64b9c0f7a *install: FIX – fully empty `extract' ice works 2020-02-07 19:59:46 +01:00
Sebastian Gniazdowski 67356249c1 README.md 2020-02-07 17:00:21 +01:00
Sebastian Gniazdowski af46ca5658 *install: extract correctly handles multiple files, e.g.: extract='a.zip
b.tar.gz'. The file can have spaces with in – just use the non-breaking
space (RAlt+Space).
2020-02-07 16:36:15 +01:00
Sebastian Gniazdowski a99851d589 *install: `ziextract' – new option --nobkp prevents creating backup 2020-02-07 16:35:10 +01:00
Sebastian Gniazdowski f0c85f05be *install: Remove an ellipsis from a message 2020-02-07 16:09:53 +01:00
Sebastian Gniazdowski fc89753421 *install: All instalation messages end with period 2020-02-07 16:06:39 +01:00
Sebastian Gniazdowski fc716fafce *install: Fix a few bugs with return values 2020-02-07 16:02:07 +01:00
Sebastian Gniazdowski a661f93afa *install: Don't move .svn, .hg directories when doing backup (`extract') 2020-02-07 15:43:49 +01:00
Sebastian Gniazdowski fccd35a7b7 all: FEATURE – New ice `extract' which extracts: a) files with known
extensions, b) extension-less files of known file types (checked with
the `file' command), c) or the listed files. extract'!' will move the
files up one directory level. extract'-' will prevent the archive
removal (upon unpacking). Can be combined, e.g.: extract'-!'.
2020-02-07 15:40:22 +01:00
Sebastian Gniazdowski a21d62e1d6 *install: No blank line during installation of packages 2020-02-07 15:33:59 +01:00
Sebastian Gniazdowski 1f8f697289 *install: Rename the file back from an *.out file so that the remote
timestamp checking can work
2020-02-07 14:26:20 +01:00
Sebastian Gniazdowski b38a34b185 *install: `ziextract' – if a file gets processed at stage 2 of unpacking
then skip possible processing of it at stage 1
2020-02-07 14:01:03 +01:00
Sebastian Gniazdowski 2d7d55902c *install: Uniquify arrays used by `ziextract' 2020-02-07 12:45:23 +01:00
Sebastian Gniazdowski 8e6595aa58 *install: %f → %f%b 2020-02-07 11:43:02 +01:00
Sebastian Gniazdowski 894815867c *install: Drop ZINIT[col-rst] in favor of %f 2020-02-07 11:20:22 +01:00
Sebastian Gniazdowski 055a1e9444 *install: Don't leak a helper function 2020-02-07 09:39:48 +01:00
Sebastian Gniazdowski 825bcf0292 *install: `ziextract' works with IRreGuLaR capitalization of extensions 2020-02-07 09:34:55 +01:00
Sebastian Gniazdowski 95987f742f *install: `zpextract' – --auto doesn't match files that are 2-level deep
This is to prevent extracting of some internal files, some small helper
archives, etc.
2020-02-07 09:31:56 +01:00
Sebastian Gniazdowski ba7720f79e *autoload: Return on unsuccessful `cd' 2020-02-07 09:29:50 +01:00
Sebastian Gniazdowski 659aa64945 *install: Fix a bug with hook-running for gh-r plugins 2020-02-07 05:28:01 +01:00
Sebastian Gniazdowski 802d43351e *install,*autoload: Nicer flag-checking code – less quoting and braces 2020-02-07 04:41:23 +01:00
Sebastian Gniazdowski 26dbb38626 *autoload: Remove annoying newline from the `update' messages 2020-02-07 04:35:20 +01:00
Sebastian Gniazdowski 7ece4767eb *autoload: Add a missing update message 2020-02-07 04:33:27 +01:00
Sebastian Gniazdowski b7708a5b47 *autoload: No newline before 1st plugin in quiet update 2020-02-07 04:25:05 +01:00
Sebastian Gniazdowski 34e6b744bc *autoload: Better update-messages logic 2020-02-07 04:03:19 +01:00
Sebastian Gniazdowski 7d30af80ac *install,*autoload: A flag ZINIT[annex-multi-flag:pull-active] that
informs annexes if any new commits are (to be) downloaded
2020-02-07 02:17:16 +01:00
Sebastian Gniazdowski c4f340fec7 *install: `zpextract' – workaround gzip limitations 2020-02-06 23:52:18 +01:00
Sebastian Gniazdowski d1cb96d929 *install: Compare the correct parameter (`zpextract') 2020-02-06 23:51:41 +01:00
Sebastian Gniazdowski b92aad01a9 *install: Correctly handle gzip files and also filenames with colons
(`zpextract')
2020-02-06 23:50:19 +01:00
Sebastian Gniazdowski 4a03fc11b4 *install: Remove a debug print 2020-02-06 21:57:17 +01:00
Sebastian Gniazdowski 6cb642f412 *install: zpextract' – better --auto' multi-stage unpacking 2020-02-06 21:45:39 +01:00
Sebastian Gniazdowski b120d64d3c *install: Unpack plain 7z files (`zpextract') 2020-02-06 21:42:39 +01:00
Sebastian Gniazdowski a3ec8a627f *install: Recognize .7z and .tar.7z files in --auto extension searching 2020-02-06 21:41:33 +01:00
Sebastian Gniazdowski ebdcefb8c4 *install: `zpextract' – avoid double extracting the archives; look for
one more file name
2020-02-06 21:12:00 +01:00
Sebastian Gniazdowski 06a916c14f *install: Work around an xz limitation 2020-02-06 21:04:31 +01:00
Sebastian Gniazdowski 722191695f *install: Recognize also xz and 7zip in --auto (`zpextract') 2020-02-06 21:03:35 +01:00
Sebastian Gniazdowski db39711e94 *install: Better atclone'' ice testing (for value) 2020-02-06 21:00:37 +01:00
Sebastian Gniazdowski 47aa19ecf8 *install: FEATURE: zpextract's --auto mode now also uses the `file' tool
to search for the archives – no extension is needed! Use this e.g.: with
an id-as=a-word snippets to have the target file (i.e.: `a-word`)
correctly extracted.
2020-02-06 20:28:26 +01:00
Sebastian Gniazdowski 760108c8fa *install: Support bz2 and xz archives (`ziextract') 2020-02-06 20:24:47 +01:00
Sebastian Gniazdowski d05897c0b2 *install: zpextract' to recognize gzip' type, not only `gz' 2020-02-06 20:23:15 +01:00
Sebastian Gniazdowski 0b870c0fa9 *install: Fix a bug in ziextract' related to its --move' option 2020-02-06 20:06:33 +01:00
Sebastian Gniazdowski 10ad2ca8e9 *install: `ziextract' to detect also *.tar files 2020-02-06 19:42:47 +01:00
Sebastian Gniazdowski 643dcd9696 *install: FEATURE – ziextract' now has --auto' option → searches for
the file to extract on its own, by extension! Just invoke: ziextract
--auto in an atclone/atpull handler.
2020-02-06 18:42:57 +01:00
Sebastian Gniazdowski 5c0888e185 README.md 2020-02-06 16:51:55 +01:00
Sebastian Gniazdowski 6441c7c4b3 README.md,CHANGELOG.md: Move the entries, prune trailing history 2020-02-06 16:38:21 +01:00
Sebastian Gniazdowski 47b1dd357b *install: Not all messages should be unsilenced 2020-02-03 20:25:34 +01:00
Sebastian Gniazdowski 28af08cf1f *install,*autoload: Further no -q/--quiet silencing + color for message 2020-02-03 17:22:57 +01:00
Sebastian Gniazdowski 07a2c7883f *autoload: `update' – no -q/--quiet for -r/--reset message 2020-02-03 17:16:58 +01:00
Sebastian Gniazdowski b210cc884f *autoload: `create' – use the alternate syntax 2020-02-01 23:03:33 +01:00
Sebastian Gniazdowski 899d4e5da4 *autoload: `create' – make the Plugins[] assignment quoted 2020-02-01 22:56:55 +01:00
Sebastian Gniazdowski c1ac0cdca0 zinit: Improve the module recompilation message 2020-02-01 21:46:01 +01:00
Sebastian Gniazdowski 3510f6e30f zinit: A more accurate message on the module rebuild 2020-02-01 21:32:49 +01:00
Sebastian Gniazdowski deb9204723 zmodules/RECOMPILE_REQUEST 2020-02-01 21:29:07 +01:00
Sebastian Gniazdowski 13eec039f6 zinit: Full module rebuild on recompile request 2020-02-01 21:28:22 +01:00
Sebastian Gniazdowski 946e7b9aa1 zinit: Run make distclean before recompiling the module 2020-02-01 21:21:59 +01:00
Sebastian Gniazdowski 5e0abb7dce zinit: Fix the PMSPEC assignment 2020-01-29 20:48:27 +01:00
Sebastian Gniazdowski 610ddbab73 zinit: Support new standard's feature: PMSPEC param describing the p-m
see: http://zdharma.org/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html#pmspec
2020-01-29 18:06:27 +01:00
Sebastian Gniazdowski 7d22e1b14e README.md 2020-01-29 15:27:39 +01:00
Sebastian Gniazdowski 7971999eff README.md 2020-01-29 15:16:55 +01:00
Sebastian Gniazdowski f6145dff24 zinit: Use zselect for a more predictable sleep time 2020-01-29 14:20:37 +01:00
Sebastian Gniazdowski f7d3ca8cf1 README.md 2020-01-28 14:33:36 +01:00
Sebastian Gniazdowski 7658383c53 *-output.zsh: Safer option setting 2020-01-28 10:53:55 +01:00
Sebastian Gniazdowski d035bbec07 *install,*autoload: Exclude markdown files from the completions glob 2020-01-27 17:31:52 +01:00
Sebastian Gniazdowski 9013e6372b _zinit: Better glob for completions 2020-01-27 17:30:44 +01:00
Sebastian Gniazdowski 416aa47e6c *install: Fix the completion installation 2020-01-27 13:36:45 +01:00
Sebastian Gniazdowski 82869268c7 install.sh: Check also for an old zplugin-block before altering zshrc
Issue #259
2020-01-27 13:22:20 +01:00
Sebastian Gniazdowski 23a04b7725 *install: Skip the completions message if no completions were detected 2020-01-26 13:38:18 +01:00
Sebastian Gniazdowski 03a52f3e07 *install: FEATURE: No more messages for each installed completion
– count of the files is shown and they are put into INSTALLED_COMPS
array
2020-01-26 13:08:21 +01:00
Sebastian Gniazdowski 6581f2d8da *autoload: Remove a debug print 2020-01-25 04:37:21 +01:00
Sebastian Gniazdowski 824c4568b2 *autoload: Support variables in the widget-chaining code 2020-01-25 04:33:17 +01:00
Sebastian Gniazdowski c93a56f38c *autoload: Widget chaining based on bindkey data 2020-01-25 04:32:53 +01:00
Sebastian Gniazdowski 614a342943 *autoload: Nicer messages about restoring bindkeys 2020-01-25 03:49:08 +01:00
Sebastian Gniazdowski a0c1c090e1 *autoload: Correct original-widget search in chain restoring 2020-01-25 03:34:30 +01:00
Sebastian Gniazdowski e30ae99278 *autoload: Fix the widget-restoration at unloading 2020-01-25 02:19:38 +01:00
Sebastian Gniazdowski 5c9efaabba *autoload: Properly handle late-readonlyness of variable (p10k-yielded) 2020-01-25 01:31:40 +01:00
Sebastian Gniazdowski a7ee58741e *autoload: Remove unneeded quotings and add a comment 2020-01-25 01:31:01 +01:00
Sebastian Gniazdowski d84c99199c README.md: Fix the Gitter badges (fixes #254) 2020-01-23 16:42:25 +01:00
David O'Trakoun 21c862000c add chmod command if directory needed creation
for auto-installed zinit, the homedir needs group perms off or else compaudit will complain at every step
also add quotes in case a naughty user uses spaces
2020-01-23 05:10:53 +01:00
Alexandros Kozak 1c579ba3ed On Windows, the BusyBox executable can be busybox.exe 2020-01-23 05:05:09 +01:00
Sebastian Gniazdowski e10d6894da zinit: Improve compatibility with ignore_braces; fix a minor bug 2020-01-22 07:47:29 +01:00
Sebastian Gniazdowski 9f7d292b2a *autoload: The module isn't renamed yet 2020-01-22 03:32:35 +01:00
Sebastian Gniazdowski 9dde5f9907 all: Switch the vim marks to more safe [[[ and ]]] 2020-01-22 03:17:48 +01:00
Sebastian Gniazdowski 504eeeb6f0 example-script: Set vim marks to [[[ and ]]] to avoid confusion with
nested substitutions
2020-01-22 03:14:10 +01:00
Sebastian Gniazdowski f897a3185f *autoload: `create' – set alternate vim marks to [[[ and ]]] 2020-01-22 03:13:33 +01:00
Sebastian Gniazdowski cf52d94298 install.sh: Use `git describe --tags' as the source of the version 2020-01-22 01:37:53 +01:00
Sebastian Gniazdowski 3fe11a6452 zmodules/RECOMPILE_REQUEST: Request recompilation of the module 2020-01-22 01:33:35 +01:00
Sebastian Gniazdowski 8b112f7602 *autoload: Call the proper function name @zinit-substitute 2020-01-22 01:26:09 +01:00
Sebastian Gniazdowski df91f499aa *install: Support the Patch-Dl annex as requirement in the packages 2020-01-22 00:23:48 +01:00
Sebastian Gniazdowski b609e272bb README.md 2020-01-22 00:00:25 +01:00
Sebastian Gniazdowski a4420dcc94 zinit: No warncreateglobal in *shadow-zstyle to mute unneeded warnings 2020-01-21 23:44:48 +01:00
Sebastian Gniazdowski 0b1c4578ca *autoload: Fix a message on the module build and also a bug 2020-01-21 22:31:41 +01:00
Sebastian Gniazdowski 3c31b0aa0b README.md 2020-01-21 21:57:48 +01:00
Sebastian Gniazdowski 24673d0c9e zinit: Fix a minor snippet problem investigating the major problem #247
and #248
2020-01-21 15:44:30 +01:00
Sebastian Gniazdowski 89f90ea8c5 zinit: Fix a comment 2020-01-21 15:44:30 +01:00
romkatv 72a5317077 fix formatting in the installation status messages
'%F' is equivalent to '%0F'. It turns on black foreground. Replace
it with '%f', which is likely what was meant.
2020-01-21 14:24:13 +01:00
Sebastian Gniazdowski df9b0638d5 example-script: Set the options earlier so that no quoting is needed 2020-01-20 10:33:19 +01:00
Sebastian Gniazdowski 6f22a7ac8a example-script,*autoload: Introduce `Plugins' hash – to not pollute
the namespace
2020-01-20 10:30:21 +01:00
Sebastian Gniazdowski c20547cd2d *autoload: Bump the default year in `create' 2020-01-20 10:22:58 +01:00
Sebastian Gniazdowski 905ef877bb all: Bump the year in copyright notice 2020-01-20 10:22:18 +01:00
Sebastian Gniazdowski 8e8f4efdf9 zinit: Improve bindmap'' handling 2020-01-20 06:56:44 +01:00
Sebastian Gniazdowski 930ad24d0a zinit: Feature: if a bindmap'' starts with !, then the rhs is a widget
i.e.: bindmap'!"^ " -> magic-space' changes the widget bound, while
bindmap'^R -> ^T" changes the combination bound.
2020-01-20 06:49:42 +01:00
Sebastian Gniazdowski 51dc23108d zinit: Improve bindmap handling 2020-01-20 06:42:29 +01:00
Sebastian Gniazdowski 9c87258f77 _zinit: Mute a warncreateglobal 2020-01-20 06:31:24 +01:00
Sebastian Gniazdowski a6d3d6c0f4 zinit: Improve bindmap'' handling 2020-01-20 06:28:51 +01:00
Sebastian Gniazdowski ae0b374ea9 Add empty files to suppress error messages from self-update 2020-01-19 17:02:07 +01:00
Sebastian Gniazdowski c9d9379731 zinit: Temporarily disable the use of the module to suppress the error
messages after the name change
2020-01-19 16:58:40 +01:00
Sebastian Gniazdowski aef3c9107e README.md 2020-01-19 06:33:59 +01:00
Sebastian Gniazdowski 268ab3b082 README.md 2020-01-19 06:31:05 +01:00
Sebastian Gniazdowski 70c575c91d README.md 2020-01-19 06:29:08 +01:00
Sebastian Gniazdowski 41c7b785aa README.md 2020-01-18 13:20:13 +01:00
Sebastian Gniazdowski 9894836e43 zinit: Properly initialize ZINIT hash 2020-01-18 13:11:30 +01:00
Sebastian Gniazdowski 47a257e9b7 zinit: Remove a debug print
https://github.com/zinit-zsh/z-a-bin-gem-node/issues/5
2020-01-18 13:08:58 +01:00
Sebastian Gniazdowski 26faf12997 PROJECT RENAME Zplugin → Zinit. Hold your thumbs that everything will
work seamlessly.
2020-01-18 13:02:24 +01:00
Sebastian Gniazdowski f7786298ee PROJECT RENAME Zplugin → Zinit. Hold your thumbs that everything will
work seamlessly.
2020-01-18 12:57:48 +01:00
Sebastian Gniazdowski f6c2a4d3da Recompile request for the module 2020-01-18 12:51:08 +01:00
Sebastian Gniazdowski bbc7e02c5e README.md 2020-01-18 11:54:05 +01:00
Sebastian Gniazdowski 86ce8af92f zinit: Ensure that zinit completion is properly installed 2020-01-18 11:40:02 +01:00
Sebastian Gniazdowski b68458cf38 zinit: Guard that rm -rf will not delete unwanted files 2020-01-18 11:24:22 +01:00
Sebastian Gniazdowski 6989afc9b2 zinit: Update a comment 2020-01-18 11:23:58 +01:00
Sebastian Gniazdowski 1ca8f6856c PROJECT RENAME Zplugin → Zinit. Hold your thumbs that everything will
work seamlessly.
2020-01-18 10:02:05 +01:00
Sebastian Gniazdowski a80e2a58d8 *install,*autoload: Show the gh-r version on update 2020-01-17 04:30:37 +01:00
Sebastian Gniazdowski 41e85f9e8d zplugin: Fix the teleid handling for packages 2020-01-17 04:29:18 +01:00
Sebastian Gniazdowski 4201a98162 zplugin,*install: Feature: -f/--force `update' option that by-passes the
out-of-date check for single-file snippets.
2020-01-15 21:32:32 +01:00
Sebastian Gniazdowski c145f54ede README.md 2020-01-15 21:16:05 +01:00
Sebastian Gniazdowski 5c546f154d README.md 2020-01-15 21:04:45 +01:00
Sebastian Gniazdowski 2e00de370a *install: Correct deciding on whether to re-download the snippet 2020-01-15 07:22:16 +01:00
Sebastian Gniazdowski 88dfe3fe35 *install: FEATURE: snippets now check remote-file modification time
before deciding whether to re-download. Doesn't work for GitHub files.
2020-01-15 07:16:31 +01:00
Sebastian Gniazdowski dc5fced1c6 *install: zpextract supports --norm option preventing archive removal 2020-01-15 06:58:16 +01:00
Sebastian Gniazdowski f0c86e9efd README.md 2020-01-15 05:45:40 +01:00
Sebastian Gniazdowski a8aea93d64 README.md 2020-01-15 05:11:34 +01:00
Sebastian Gniazdowski df37d1945d *install: *-mtime – redirect stderr 2020-01-14 10:35:13 +01:00
Sebastian Gniazdowski b734ed84df *install: *-mtime – don't return the time in future 2020-01-14 10:34:32 +01:00
Sebastian Gniazdowski a16f1cddbf *install: *-mtime – pass -L to curl to follow redirects 2020-01-14 10:33:44 +01:00
Sebastian Gniazdowski 2e6adddfcc *autoload: Perform param'' substitutions in the atpull, atclone ices 2020-01-14 10:02:55 +01:00
Sebastian Gniazdowski c7a433b231 *install: -zplg-eval forwards the return value 2020-01-14 10:01:58 +01:00
Sebastian Gniazdowski d9475197a7 *install: Fix a bug that prevented the snippet atpulls from running 2020-01-14 10:00:56 +01:00
Sebastian Gniazdowski b6bda8c30c *install: Add countdown-ice handling to two places 2020-01-14 09:43:57 +01:00
Sebastian Gniazdowski 9e7629cb7b *install: Remove backslash from \!${… 2020-01-14 09:43:06 +01:00
Sebastian Gniazdowski fd64ae797b *install: -zplg-get-url-mtime 2020-01-14 09:14:57 +01:00
Sebastian Gniazdowski 80e291de04 *autoload: Improve update messages 2020-01-13 04:24:03 +01:00
Sebastian Gniazdowski 1d519a6812 *autoload: Improve indentation 2020-01-13 04:23:39 +01:00
Sebastian Gniazdowski feb65b8a7a *autoload: Improve the update messages 2020-01-13 04:11:57 +01:00
Sebastian Gniazdowski 93c9b6418b *autoload: Improve an update message 2020-01-13 04:05:59 +01:00
Sebastian Gniazdowski be57fe26bc *autoload: No blank lines between messages during `zplugin update --all' 2020-01-13 04:04:09 +01:00
Sebastian Gniazdowski 1c7e85e7f1 module: Don't compile /dev/null and ./
Fixes #241
2020-01-12 06:22:43 +01:00
Sebastian Gniazdowski c8b56e60de module: Extend logs
Issue #241
2020-01-12 06:21:58 +01:00
Sebastian Gniazdowski 76b8cd9d34 Update code documentation 2020-01-11 13:58:55 +01:00
Sebastian Gniazdowski 719a7d68dd *install,*autoload: Make the mv'' and cp'' ices respect -q/--quiet 2020-01-11 10:54:06 +01:00
Sebastian Gniazdowski 3b59a8b6db *install: -q/--quiet mutes completion-installation messages 2020-01-11 05:22:29 +01:00
Sebastian Gniazdowski 7b97002e28 *install: Mute file-snippet messages when -q/--quiet' given to update' 2020-01-11 05:18:45 +01:00
Sebastian Gniazdowski fe81f481a7 *install,*autoload: -q/--quiet mutes @plugin-run-on-update messages 2020-01-11 05:16:02 +01:00
Sebastian Gniazdowski b375a70c8b *install: zpextract' respects -q/--quiet' option of `update' 2020-01-11 04:55:55 +01:00
Sebastian Gniazdowski 35dc3b1a76 *autoload: Fix the -q/--quiet' option of update' 2020-01-11 04:51:30 +01:00
Sebastian Gniazdowski 1ae2d458cd *autoload: Hide the "Already up to date." message 2020-01-11 04:38:12 +01:00
Sebastian Gniazdowski 2b125e011e *autoload: Correctly skip pull when needed 2020-01-11 04:37:34 +01:00
Sebastian Gniazdowski 99a1d9595e doc/install.sh: Make the installer-added snippet download Zplugin 2020-01-08 03:39:03 +01:00
Sebastian Gniazdowski 6662b0ffe6 zplugin: Quote ices with backslashes 2020-01-07 22:31:11 +01:00
Sebastian Gniazdowski dec6502c33 *side,*autoload: Add param'' to the ices lists. Please reinstall
any-node and any-node plugins – to make `zplg update' work.
2020-01-07 22:20:34 +01:00
Sebastian Gniazdowski a8eff1b932 *install: Mark a place needing improvement 2020-01-05 07:23:25 +01:00
Sebastian Gniazdowski ae3a7945c8 *autoload: Call preinit hooks at update of plugins 2020-01-04 05:34:39 +01:00
Sebastian Gniazdowski 9fa921aeb2 *autoload: emulate -LR zsh to one of functions 2020-01-04 05:33:37 +01:00
Sebastian Gniazdowski c435d4e954 *install: `zpextract' – extend a message 2020-01-04 01:07:05 +01:00
Sebastian Gniazdowski 9bdbdeafde *install: `zpextract' – extend an error message 2020-01-04 00:56:21 +01:00
Sebastian Gniazdowski c793069c3e Remove GALLERY.md 2019-12-31 21:32:12 +01:00
Sebastian Gniazdowski 54b1825e1b zplugin: Set noaliases in *shadow-off
Issue #7
2019-12-29 03:50:39 +01:00
Sebastian Gniazdowski b09d9d35ec *install: A better message 2019-12-29 03:49:53 +01:00
Sebastian Gniazdowski e78810f0ba *install,*autoload: Remove a message when updating a gh-r plugin 2019-12-25 22:20:14 +01:00
Sebastian Gniazdowski 48bce17b91 *install: Consistent messages 2019-12-24 21:41:23 +01:00
Sebastian Gniazdowski c09182ed67 zplugin,*install,*autoload: Better snippet-update support 2019-12-24 21:40:29 +01:00
Sebastian Gniazdowski a3cd1f1c4a *install: `zpextract' – unzip overwrites files 2019-12-24 19:26:02 +01:00
Sebastian Gniazdowski 9bd099c91a *install: Unable to compile a snippet doesn't stop hooks from running 2019-12-24 18:40:15 +01:00
Sebastian Gniazdowski fd74708e01 zplugin: Make the `run' subcommand work for snippets 2019-12-21 14:35:29 +01:00
Aloxaf dbd791ea9d module: fix auto compile 2019-12-20 21:25:26 +01:00
Sebastian Gniazdowski 97fd90f668 *install: `zpextract' – optional 2nd arg with the file type (extension) 2019-12-19 20:27:50 +01:00
Sebastian Gniazdowski c87f0e3d84 *install: `zpextract' – support same name of archive and contained file 2019-12-19 20:25:56 +01:00
Sebastian Gniazdowski 962fc3293a *install: Return the correct path from `zpextract' if --move was used 2019-12-19 19:18:50 +01:00
Sebastian Gniazdowski a1265fcf0a *install: Improve a message 2019-12-19 19:06:58 +01:00
Sebastian Gniazdowski 923eb44088 *install: A warning message when a package uses dl'' ice and no patch-dl
annex is being loaded.
2019-12-19 19:03:56 +01:00
Sebastian Gniazdowski 1240e893e7 zplugin: A new color 2019-12-19 17:54:05 +01:00
Sebastian Gniazdowski caff3b4f05 *install: `zpextract' – strip preceding path from the files in a message 2019-12-19 17:46:11 +01:00
Sebastian Gniazdowski ab7f07eb7c *install: `zpextract' – protect against the containing directory holding
a file of the same name (when using --move).
2019-12-19 17:39:31 +01:00
Sebastian Gniazdowski ba6ea4e655 *install: Fix param'' substituting in atclone'' contents for snippets 2019-12-19 17:31:35 +01:00
Sebastian Gniazdowski 7482fd572e zplugin: Fix atload'!…' ice if used in conjunction with nocd 2019-12-19 17:23:36 +01:00
Sebastian Gniazdowski 0876826f50 zplugin: New automatic params: %OS%, %CPU%, %MACH%, %VENDOR%, %HOST%,
%UID% and %GID%
2019-12-19 17:16:02 +01:00
Sebastian Gniazdowski 109e9cd838 *install: Feature: `zpextract' supports extracting dmg images on OS X 2019-12-19 16:29:11 +01:00
Sebastian Gniazdowski b0ba346eb4 *install: Fine tune a message 2019-12-19 16:27:45 +01:00
Sebastian Gniazdowski 1074b30773 zplugin: Change a color 2019-12-19 16:27:00 +01:00
Sebastian Gniazdowski a3c5b615f1 *install: `zpextract' – uniform option setting 2019-12-19 14:16:09 +01:00
Sebastian Gniazdowski fd6dc65185 *install: `zpextract' – additional check if the file exists 2019-12-19 14:14:25 +01:00
Sebastian Gniazdowski e9ac79310d *install: `zpextract' – improve messages 2019-12-19 14:13:54 +01:00
Sebastian Gniazdowski e72f05c2a4 zplugin: A new color 2019-12-19 14:10:27 +01:00
Sebastian Gniazdowski 9b68157030 *install: Improve `zpextract' messages 2019-12-19 14:01:35 +01:00
Sebastian Gniazdowski 8a30bf6e15 zplugin: A new color for messages 2019-12-19 13:42:11 +01:00
Sebastian Gniazdowski eca069ae05 *install: Better messages `zpextract' 2019-12-19 13:36:41 +01:00
Sebastian Gniazdowski 4a296d5880 zplugin: New colors from the 256 color palette 2019-12-19 13:36:00 +01:00
Sebastian Gniazdowski 391c26e3dc zplugin: Fix handling of packages like `firefox-dev' → snippet based 2019-12-19 13:13:41 +01:00
Sebastian Gniazdowski 75d65ecbf4 *install: zpextract' – check if any file exists before calling file' 2019-12-19 12:53:43 +01:00
Sebastian Gniazdowski 5da759243e *install: `zpextract' emits warning message if did not recognize archive 2019-12-19 12:52:17 +01:00
Sebastian Gniazdowski 08955794ca *install: Allow arbitrary position of the --move option (of `zpextract') 2019-12-19 12:42:30 +01:00
Sebastian Gniazdowski 33a5ce077c *install: `zpextract' removes archive only upon a successful extraction 2019-12-19 12:28:56 +01:00
Sebastian Gniazdowski 0366a36c5d *install: FEATURE: A function `zpextract' available during installation.
Extracts any given archive file. --move causes: mv */* . to remove one directory level.
2019-12-19 12:20:21 +01:00
Sebastian Gniazdowski c29c63f5e6 *autoload: Mute a warncreateglobal 2019-12-18 21:29:03 +01:00
Sebastian Gniazdowski e986ddb2e4 zplugin: Call the preinit hooks also for update 2019-12-18 20:57:06 +01:00
Sebastian Gniazdowski 41c4e286ce zplugin: Compress some assignment lines 2019-12-18 20:51:19 +01:00
Sebastian Gniazdowski 25afa4d997 zplugin: Allow atinit-hooks to interrupt the loading of plugin/snippet 2019-12-18 19:42:59 +01:00
Sebastian Gniazdowski 74405dcd82 zplugin: New hook type for annexes: preinit, run before cloning object 2019-12-18 19:41:24 +01:00
Sebastian Gniazdowski 49c3d79d99 zplugin: Use a better condition 2019-12-18 19:01:56 +01:00
Sebastian Gniazdowski 153730e37c zplugin: Fix !-preceded wait'' behevior for explicit times 2019-12-18 18:57:16 +01:00
Sebastian Gniazdowski e3095a6793 zplugin: Strip 1K of the main source file by removing unneeded quoting 2019-12-18 17:31:55 +01:00
Sebastian Gniazdowski 296d1fd0c7 zplugin: Fix !atinit hook calling 2019-12-18 16:44:09 +01:00
Sebastian Gniazdowski c11cae2925 *install: Additional message when the profile for pack isn't found 2019-12-18 16:42:08 +01:00
Sebastian Gniazdowski ff5db46475 *autoload: *create: Set text-width vim option to 80 in the created file 2019-12-18 16:05:26 +01:00
Sebastian Gniazdowski d0c27b947f doc/example-script: Set the vim text-width option to 80 and reformat 2019-12-18 16:03:39 +01:00
Sebastian Gniazdowski 703382a436 doc/example-script: The -R emulate option implies noautopushd, remove it 2019-12-18 14:51:18 +01:00
Sebastian Gniazdowski 61a5ca74ec *install: Additional message during pack installation 2019-12-18 13:48:43 +01:00
Sebastian Gniazdowski d92f23e4eb *install: Correctly handle the required/requires fields in json 2019-12-18 13:34:32 +01:00
Sebastian Gniazdowski 84c136e7a7 zplugin: Fix Turbo with pack'' loadings 2019-12-16 01:51:08 +01:00
Vahid Hallaji 804fac6250 Update ohmyzsh remote url 2019-12-16 01:24:42 +01:00
Sebastian Gniazdowski 3864e5f3ca README.md 2019-12-15 23:15:24 +01:00
Sebastian Gniazdowski 0a2e4a506b README.md 2019-12-15 23:14:52 +01:00
Sebastian Gniazdowski b3e593802e README.md 2019-12-15 23:13:53 +01:00
Sebastian Gniazdowski 9d9f2bc743 README.md 2019-12-15 23:12:40 +01:00
Sebastian Gniazdowski b0f9f6d15a *install,*autoload: Feature: mv'' and cp'' ices can now have Unicode →
as separator, or no separator at all, i.e.: cp'README.md readme.md'.
2019-12-15 22:13:41 +01:00
Sebastian Gniazdowski a6e8a6042e *install: Silence a possible error message that's unimportant 2019-12-15 21:39:30 +01:00
Sebastian Gniazdowski 9051e6f5cd *install: Add quoting 2019-12-13 20:57:14 +01:00
Sebastian Gniazdowski 67b8833fff *autoload: Make `cuinstall' accept local absolute paths 2019-12-13 20:56:37 +01:00
Sebastian Gniazdowski b57067e213 *autoload: Better options for *get-path 2019-12-13 20:56:09 +01:00
Sebastian Gniazdowski 1e345c6a0e *autoload: A better message for cuninstall 2019-12-13 20:55:35 +01:00
Sebastian Gniazdowski dcb5c154f0 zplugin,*install: Correctly implement the ice-append feature 2019-12-13 19:08:34 +01:00
Sebastian Gniazdowski 33cee7c2f8 zplugin: Feature: allow to append to package's ice by prepending the new
ice with +, e.g.: zplugin pack atload+"print Hi!" for dircolors-material
2019-12-13 18:53:07 +01:00
Sebastian Gniazdowski 1977d4632d README.md 2019-12-13 15:47:45 +01:00
Sebastian Gniazdowski 054939db4c README.md 2019-12-13 15:45:29 +01:00
Sebastian Gniazdowski 329bf795ca Updated README.md 2019-12-13 15:43:00 +01:00
Sebastian Gniazdowski 726eb66af9 *install: Disconnect the packages from NPM registry, use GitHub directly 2019-12-13 12:58:23 +01:00
Sebastian Gniazdowski 78ad0dde6f *install: Allow for the any-node package to work 2019-12-12 07:19:40 +01:00
Sebastian Gniazdowski a052acf79f zplugin: Correct the -zplgm-substitute param'' handling 2019-12-12 03:29:56 +01:00
Sebastian Gniazdowski bed2d06e4e zplugin: Pass "$@" to anonymous function needing it 2019-12-12 02:12:03 +01:00
Sebastian Gniazdowski ad1073f866 zplugin: Quote assignments 2019-12-12 02:09:57 +01:00
Sebastian Gniazdowski 32dbc77d5b zplugin: Correct id_as-overriding code 2019-12-12 02:08:12 +01:00
Sebastian Gniazdowski d26f85ccd7 zplugin: Set extendedglob in -zplg-substitute 2019-12-12 02:01:13 +01:00
Sebastian Gniazdowski ad12c6bc9f zplugin: Localize (#m) parameters 2019-12-12 01:59:17 +01:00
Sebastian Gniazdowski d24dad5ac6 zplugin,*install: Move -zplg-substitute to zplugin.zsh 2019-12-12 01:54:10 +01:00
Sebastian Gniazdowski 8ddde66c1d zplugin: FEATURE: param'name → val' that'll substitute %name% with "val"
in installation-time ice-mods like atclone'', make'', atpull'', etc.
2019-12-12 01:44:32 +01:00
Sebastian Gniazdowski 8b15703c84 zplugin,*install: Allow for an NPM package to override id-as 2019-12-12 01:43:17 +01:00
Sebastian Gniazdowski bcd131afca *install: Substitute any %string%, not only the defined ones 2019-12-12 01:41:08 +01:00
Sebastian Gniazdowski 57e86118da *install: Support for param'NAME -> VALUE' to replace %NAME% in ice-mods 2019-12-12 01:39:03 +01:00
Sebastian Gniazdowski bdea78fea3 zplugin,*install: Allow binary from'gh-r' profiles in NPM packages 2019-12-11 19:00:57 +01:00
Sebastian Gniazdowski b03a57e3fa *install: Dequote the \" manually 2019-12-11 17:52:28 +01:00
Sebastian Gniazdowski 27b8fe5763 Revert "*install: Dequote json keys / fields"
This reverts commit 3ba3c53fa1.
2019-12-11 17:49:31 +01:00
Sebastian Gniazdowski 4b9e18e275 README.md 2019-12-11 14:36:54 +01:00
Sebastian Gniazdowski bea81696b7 *install: Correctly mute command -v 2019-12-09 22:01:15 +01:00
Sebastian Gniazdowski 447bcc11e6 *install: Add requires' alias for required' field in json 2019-12-09 22:00:35 +01:00
Sebastian Gniazdowski 583eb7c4bb *install: Support the `required' field in package.json 2019-12-09 21:56:00 +01:00
Sebastian Gniazdowski 573c18f223 *install: Feature: atclone,atpull,make,mv,cp ices can use %ID%, %USER%,
%PLUGIN%, %DIR% keywords – they'll be substituted.
2019-12-09 21:14:57 +01:00
Sebastian Gniazdowski aa1375dc1f *install: Consistently set options 2019-12-09 20:12:54 +01:00
Sebastian Gniazdowski 3ba3c53fa1 *install: Dequote json keys / fields 2019-12-09 17:36:09 +01:00
Sebastian Gniazdowski 36894ec109 *install: Additional message when installing a NPM package 2019-12-09 17:06:44 +01:00
Sebastian Gniazdowski bf99159466 *install: Post-process ices obtained from package.json 2019-12-09 17:05:47 +01:00
Sebastian Gniazdowski b175125171 *install: Allow to use local package.json 2019-12-09 08:55:26 +01:00
Sebastian Gniazdowski 4569980f09 *install: Don't parse ( and ) in *parse-json 2019-12-09 08:17:11 +01:00
Sebastian Gniazdowski 4939bed94b *install: Display the package version and message 2019-12-09 05:26:02 +01:00
Sebastian Gniazdowski 8f7107ad30 *install: Fix an error in condition 2019-12-09 05:25:31 +01:00
Sebastian Gniazdowski b98ae45e73 zplugin,*install: Feature: snippet packages. Try with `zplugin pack for
ecs-cli', it'll install latest amazon-ecs-cli binary :)
2019-12-09 05:08:38 +01:00
Sebastian Gniazdowski 45bb7c3351 *install: Protect against unsuccessful mkdir 2019-12-08 08:07:01 +01:00
Sebastian Gniazdowski 86c4651a89 zplugin,*install: Move a code block in *get-package 2019-12-08 08:06:21 +01:00
Sebastian Gniazdowski c5aff05951 zplugin,*install: Change the input of *get-package 2019-12-08 07:46:46 +01:00
Sebastian Gniazdowski c3875d845f zplugin: Correctly load ices from disk 2019-12-08 07:43:40 +01:00
Sebastian Gniazdowski efb50adbc7 zplugin: Allow wait-like ices to be specified in NPM package 2019-12-08 02:48:33 +01:00
Sebastian Gniazdowski 536ea289ee zplugin: Post-process ices loaded from disk 2019-12-08 02:48:07 +01:00
Sebastian Gniazdowski 70f49cb97f zplugin,*side,*autoload: Add missing ices to the ices lists 2019-12-08 02:46:51 +01:00
Alexandros Kozak 72f7578498 Workaround for BusyBox less 2019-12-07 22:28:33 +01:00
Sebastian Gniazdowski 0c30c5da9a *install: Truly allow overriding of npm-ices 2019-12-07 01:49:19 +01:00
Sebastian Gniazdowski ed49e1b255 *install: Feature: Allow `$ZPFX' to appear in make'' (literally) 2019-12-06 22:49:58 +01:00
Sebastian Gniazdowski e7c90f61f9 *install.zsh: Suppress a message for npm package install 2019-12-06 22:47:06 +01:00
Sebastian Gniazdowski b54673b67c *install: Correctly parse package.json 2019-12-06 22:15:03 +01:00
Sebastian Gniazdowski 7aaf46eb8e *install.zsh: Optimize *parse-json 2019-12-06 22:14:08 +01:00
Sebastian Gniazdowski abaec037c2 *install: Download the latest package version available 2019-12-06 19:27:36 +01:00
Sebastian Gniazdowski 82389c2530 *install: Add color to a message 2019-12-06 19:23:57 +01:00
Sebastian Gniazdowski 4b7d7957f7 zplugin,*side,*autoload: Add new ices pack'',git,verbose to ices lists 2019-12-06 19:20:54 +01:00
Sebastian Gniazdowski 034952186b *install: Operation status messages for npm package handling 2019-12-06 19:13:20 +01:00
Sebastian Gniazdowski d0afa450b0 zplugin,*install: FEATURE: Support for npm packages. Try it by issuing:
zplugin pack for fzy OR zplugin pack git for fzy OR zplugin pack"bgn" for fzy, etc.
2019-12-06 19:02:13 +01:00
Sebastian Gniazdowski 9d19a43889 *install: Use alternate syntax in *setup-plugin-dir 2019-12-06 19:00:06 +01:00
Sebastian Gniazdowski f37f3a73d8 *install: Remove unnecessary quoting from *setup-plugin-dir 2019-12-06 18:47:13 +01:00
Sebastian Gniazdowski 5f7cd3be03 *install: Use emulate -LR zsh in *setup-plugin-dir 2019-12-06 18:37:30 +01:00
Sebastian Gniazdowski d3750405cd *install: Support for a tarball npm package 2019-12-06 17:12:56 +01:00
Sebastian Gniazdowski c39203b79e *install: Support for moving the files out of subdir in gh-r 2019-12-06 17:11:03 +01:00
Sebastian Gniazdowski f29888742d *install: Better exec detection in the gh-r code 2019-12-06 17:10:06 +01:00
Sebastian Gniazdowski 6f536946c3 *install: Support subdirectory github releases 2019-12-06 17:09:17 +01:00
Sebastian Gniazdowski e28cab88c9 zplugin: Run scheduler from chpwd hook to aid load'[[ $PWD = … ]]' setups 2019-12-06 09:06:29 +01:00
Sebastian Gniazdowski e8c9b2a243 zplugin: Set the unset option in remaining functions 2019-12-06 07:37:30 +01:00
Sebastian Gniazdowski 099601667b zplugin: Make the unload/load ices to look at id-as 2019-12-06 07:31:52 +01:00
Sebastian Gniazdowski 8243958433 zplugin: Remove unneeded (@) 2019-12-06 07:30:47 +01:00
Sebastian Gniazdowski 53a6f99c5b zplugin: Set the unset option in *shadow-autoload 2019-12-06 07:30:14 +01:00
Sebastian Gniazdowski 116dcaa71f zplugin,*autoload: Move -zplg-unregister-plugin to *autoload.zsh 2019-12-05 13:15:48 +01:00
Sebastian Gniazdowski 5946db26fa zplugin: Register plugins under original names in $zsh_loaded_plugins,
and not under id-as''. That's required by the standard.
2019-12-05 12:45:45 +01:00
Sebastian Gniazdowski e838257f12 zplugin,*side,*autoload: FEATURE: atdelete'' ice – execute code when the
plugin or snippet is being removed with `zplugin delete …`.

Issue #216
2019-12-05 00:52:14 +01:00
Sebastian Gniazdowski eb06d2d47b *autoload: Advanced widget-unloading: recognize (match) more functions 2019-12-02 04:02:52 +01:00
Sebastian Gniazdowski 96cfd6230e *autoload: `create' – correct *_DIR parameter name 2019-12-02 03:52:03 +01:00
Sebastian Gniazdowski 73c5759210 *autoload: Set options in *create 2019-12-02 03:51:25 +01:00
Sebastian Gniazdowski 9999eefabf Updated README.md 2019-12-02 00:29:10 +01:00
Sebastian Gniazdowski 7e31cc3f30 zplugin: Update comment 2019-12-01 23:57:16 +01:00
Sebastian Gniazdowski 5f8bc8bd06 zplugin: Keep old ZSH_CACHE_DIR value if it's not empty
Issue #220
2019-12-01 21:47:29 +01:00
Sebastian Gniazdowski 6fc03f5f83 *autoload,example-script: `create': Emacs,Vim mode lines, copyright note 2019-11-26 21:22:11 +01:00
Sebastian Gniazdowski 22c6052c4a doc/example-script: Correct grammar 2019-11-26 20:56:29 +01:00
Sebastian Gniazdowski ea15c48cce all: More detailed mode lines and copyright notice 2019-11-26 20:53:58 +01:00
Alexandros Kozak 420185cc2a Check to make sure aliases exist before unaliasing 2019-11-26 20:46:19 +01:00
NICHOLAS85 4636b320ce zplugin: Move id-as back to before trigger-laod 2019-11-26 20:10:06 +01:00
NICHOLAS85 047da15964 zplugin: Process trigger-load ice before others 2019-11-26 20:10:06 +01:00
Sebastian Gniazdowski 726413e38b doc/example-script: Correct grammar 2019-11-25 17:08:24 +01:00
Sebastian Gniazdowski 4aaf34b8f6 doc/example-script: Reformat comments 2019-11-25 17:01:36 +01:00
Sebastian Gniazdowski b270c1cb7a doc/example-script: Quote the values before the emulation is being set 2019-11-25 16:46:43 +01:00
Sebastian Gniazdowski 8720ffad3f doc/example-script: Extend 2019-11-25 16:42:35 +01:00
Sebastian Gniazdowski 85f6cd11a0 Updated README.md 2019-11-25 15:58:18 +01:00
Sebastian Gniazdowski bc213056a9 README,*autoload: Document the new `run' subcommand from 31.10.2019 2019-11-25 15:08:04 +01:00
Sebastian Gniazdowski b25370942b doc: Move the test scripts into a subdirectory 2019-11-25 13:59:59 +01:00
Sebastian Gniazdowski b1a5afd4f9 Delete doc/db 2019-11-25 13:58:54 +01:00
Sebastian Gniazdowski 63f678d60f doc: Remove the asciidoc documents (they're available at the wiki) 2019-11-25 13:55:59 +01:00
Sebastian Gniazdowski 74602d912e *autoload: `create': set up the global parameter with $0:h 2019-11-25 13:52:28 +01:00
Sebastian Gniazdowski edda298407 *autoload: Feature: `create' includes an example script/function 2019-11-25 13:33:33 +01:00
Sebastian Gniazdowski 84d1578e0c doc/example-script: An example type-agnostic script/function for create 2019-11-25 13:31:25 +01:00
Sebastian Gniazdowski f2043f6e4e Squashed commit of the following:
commit 279ca1ca192cb4c7565a0169b6997b80aa98e83d
Author: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Date:   Sun Nov 24 12:18:21 2019 +0100

    Revert "*autoload: Fix updating plugins with ver-ice Issue #210"

    This reverts commit 1b4dd4b071.

commit 7ba87da02e2b484a8fe6c6b586be774ed663246f
Author: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Date:   Sun Nov 24 12:18:00 2019 +0100

    Revert "*autoload: Fix small formatting error"

    This reverts commit 86b6fae1d1.

commit c799f3de6bdd20183efa4acd768b6dfa3eda2745
Author: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Date:   Sun Nov 24 12:17:59 2019 +0100

    Revert "autoload*: Actually fix formatting error"

    This reverts commit d821cbeae3.

commit 04e67021796dbb6f7341a7367cbe3a3b0e0a0f39
Author: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Date:   Sun Nov 24 12:17:56 2019 +0100

    Revert "*autoload: Log up to ver'' if present, else FETCH_HEAD"

    This reverts commit 8e73dc6b93.

commit c3cc552ceabae367000d12e3c91405af4f156579
Author: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Date:   Sun Nov 24 12:17:34 2019 +0100

    Revert "*autoload: Condense git merge/pull command with ver"

    This reverts commit 9d27854fac.

commit 9e9de6041ca74fdcbccb0a00d48bcc987e76881a
Author: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Date:   Sun Nov 24 12:16:27 2019 +0100

    Revert "*autoload: Respect -q/--quiet for up-to-date msg"

    This reverts commit f8eb9be427.

commit 30784f4130dec1c0ff5dc4b3cee43804c7dfcbdc
Author: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Date:   Sun Nov 24 12:16:25 2019 +0100

    Revert "*install: Fix updating gh-releases with ver-ice"

    This reverts commit 3e951c742d.

commit 8f747fa08a55195df883279917e7d4c17a7085e9
Author: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Date:   Sun Nov 24 12:16:23 2019 +0100

    Revert "*autoload: Fix up-to-date message"

    This reverts commit 45e4a1fa83.

commit cb8b0d7e3ba6fb94d8d8e1c520600e40f669d091
Author: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Date:   Sun Nov 24 12:15:35 2019 +0100

    Revert "*install: Hide extra up-to-date msg for releases"

    This reverts commit 1895af4c28.
2019-11-24 12:31:01 +01:00
Sebastian Gniazdowski cd2325a493 *autoload: Remove duplicate message
Issue #211
2019-11-24 11:53:52 +01:00
Sebastian Gniazdowski c4490eefdf *autoload: Fix the ver test 2019-11-24 11:52:55 +01:00
Sebastian Gniazdowski 4e0e48736f *autoload: `create' adds unquoted, not quoted 0=… snippet 2019-11-24 06:52:01 +01:00
Sebastian Gniazdowski a0dee2849b *autoload: Feature: `create' adds the $fpath-extending snippet
to the created plugin.zsh
2019-11-24 06:49:21 +01:00
Sebastian Gniazdowski 7cff945438 *install: Improve json parsing 2019-11-24 06:38:04 +01:00
Sebastian Gniazdowski acdee51cfe *autoload: Silence the create's curl invocation 2019-11-24 06:34:17 +01:00
Sebastian Gniazdowski af545bc89d *install: Improve the json parsing 2019-11-24 03:36:40 +01:00
Sebastian Gniazdowski e4115e0a49 install: Improve the json parsing. Get the main object from it 2019-11-24 02:38:28 +01:00
Sebastian Gniazdowski 025639317f *install: Retrieve the desired profile from json, output error message 2019-11-24 02:03:26 +01:00
Sebastian Gniazdowski d75de03c71 *install: Use the downloaded package.json 2019-11-24 02:02:59 +01:00
Sebastian Gniazdowski d02d386b10 *install: Mute stderr of the package.json download 2019-11-24 01:59:47 +01:00
Sebastian Gniazdowski c8da479f2e *install: Download the package.json in a separate command 2019-11-24 01:36:33 +01:00
Sebastian Gniazdowski 7583e92686 *autoload: Ensure that the fix in #164 is preserved after #211 2019-11-24 00:00:16 +01:00
Sebastian Gniazdowski e102002734 Travis: Try to run tests from the test directory 2019-11-23 23:57:04 +01:00
Sebastian Gniazdowski e51fa433c1 Revert "*autoload: Investigate tests"
This reverts commit be59e5ba1b.
2019-11-23 22:59:40 +01:00
Sebastian Gniazdowski f853706158 Revert "*autoload: Investigate tests"
This reverts commit f1f0293b64.
2019-11-23 22:59:38 +01:00
Sebastian Gniazdowski bc276b648e Revert "*autoload: Investigate tests"
This reverts commit f5c84b8546.
2019-11-23 22:59:34 +01:00
Sebastian Gniazdowski f5c84b8546 *autoload: Investigate tests 2019-11-23 22:30:26 +01:00
Sebastian Gniazdowski f1f0293b64 *autoload: Investigate tests 2019-11-23 22:04:19 +01:00
Sebastian Gniazdowski be59e5ba1b *autoload: Investigate tests 2019-11-23 21:59:05 +01:00
Sebastian Gniazdowski 8945613be8 *install: Use recent JSON parser 2019-11-23 20:33:32 +01:00
Sebastian Gniazdowski 7b653d5785 zplugin: Make the `subscribe' ice not be always created 2019-11-23 20:31:53 +01:00
NICHOLAS85 1895af4c28 *install: Hide extra up-to-date msg for releases 2019-11-23 20:26:17 +01:00
NICHOLAS85 45e4a1fa83 *autoload: Fix up-to-date message 2019-11-23 20:26:17 +01:00
NICHOLAS85 3e951c742d *install: Fix updating gh-releases with ver-ice 2019-11-23 20:26:17 +01:00
NICHOLAS85 f8eb9be427 *autoload: Respect -q/--quiet for up-to-date msg 2019-11-23 20:26:17 +01:00
NICHOLAS85 9d27854fac *autoload: Condense git merge/pull command with ver 2019-11-23 20:26:17 +01:00
NICHOLAS85 8e73dc6b93 *autoload: Log up to ver'' if present, else FETCH_HEAD 2019-11-23 20:26:17 +01:00
NICHOLAS85 d821cbeae3 autoload*: Actually fix formatting error 2019-11-23 20:26:17 +01:00
NICHOLAS85 86b6fae1d1 *autoload: Fix small formatting error 2019-11-23 20:26:17 +01:00
NICHOLAS85 1b4dd4b071 *autoload: Fix updating plugins with ver-ice Issue #210 2019-11-23 20:26:17 +01:00
Sebastian Gniazdowski 428bf62a0a *install: Support for private repositories for binary release plugins,
as described in http://zdharma.org/zplugin/wiki/Private-Repositories/, via from'user:password@gh-r'.

Issue #209
2019-11-23 19:27:05 +01:00
Sebastian Gniazdowski 697420bd31 *autoload: Remove unneeded quoting 2019-11-21 01:04:42 +01:00
Sebastian Gniazdowski 26da5a9f2a *autoload: `times' recognizes as"null" plugins 2019-11-21 01:03:43 +01:00
Alexandros Kozák 45107777c3 ${~ZPFX}/bin should be added to PATH only once (#213)
* ${~ZPFX}/bin should be added to PATH only once

* Protect against KSH_ARRAYS

* KSH_ARRAYS and SH_WORD_SPLIT
2019-11-18 18:44:00 +01:00
Sebastian Gniazdowski 30c5d99fbd zplugin: A ksharrays-compatible code 2019-11-18 18:08:22 +01:00
Sebastian Gniazdowski c740684632 zplugin: Protect agains the noclobber option 2019-11-18 18:07:29 +01:00
Sebastian Gniazdowski c15e9e772b zplugin: Remove a test condition. Thanks, @agkozak!
Fixes #214.
2019-11-18 16:55:01 +01:00
Sebastian Gniazdowski 60094e8fb5 *autoload: Restore the update --all for snippets. Thanks @NICHOLAS85!
Issue #212
2019-11-17 09:51:38 +01:00
Sebastian Gniazdowski 5b30a454f5 *autoload: CD into the correct directory after `create' 2019-11-17 06:48:11 +01:00
Sebastian Gniazdowski e5c7249f6e *autoload: Feature: `create' copies a .gitignore file to the repository 2019-11-17 06:01:47 +01:00
Sebastian Gniazdowski 31a2e4cfff *autoload: Feature: `create' can create repositories under organizations 2019-11-17 05:56:13 +01:00
Sebastian Gniazdowski b9182bafce doc/Zsh.gitignore 2019-11-17 05:33:20 +01:00
Sebastian Gniazdowski 855f11259a zplugin,*install: Npm packages support: JSON parsing / getting ice-lists 2019-11-16 22:09:06 +01:00
Sebastian Gniazdowski fc2df01ec1 zplugin: Intermediate code - loading of disk ices for the npm packages 2019-11-16 04:24:28 +01:00
Sebastian Gniazdowski 37dbe96965 zplugin: Speed-up scheduler more, c.a.: 200 ms gain after 10 plugins 2019-11-16 04:15:11 +01:00
Sebastian Gniazdowski ba3d99db3d *side,*autoload: Uniquify the extension ices 2019-11-16 03:54:44 +01:00
Sebastian Gniazdowski 87dd8a8c3b zplugin: Withdrawn the slash ice syntax – it collides with e.g.:
pick"/root/script.zsh"
2019-11-16 03:48:49 +01:00
Sebastian Gniazdowski 7a33751908 *side: Remove the exceptions from *compute-ice 2019-11-16 01:17:38 +01:00
Sebastian Gniazdowski d8907ef538 *side: Extend function comment, slight code reformat 2019-11-16 00:56:51 +01:00
Sebastian Gniazdowski 1b1233b30e *side: Quote variable to make it more obvious shwordsplit-safe 2019-11-16 00:52:00 +01:00
Sebastian Gniazdowski 8e7ff98c00 *side: Use if instead of the unsafe && / || "ternary" 2019-11-16 00:51:08 +01:00
Sebastian Gniazdowski 1c46ec88d1 *side: Don't store empty file for a non-existent ice 2019-11-16 00:50:22 +01:00
Sebastian Gniazdowski 0b0d91bbb2 *autoload: Grasp the quotation done on FPATH/PATH tracking
PR #208
2019-11-15 18:26:56 +01:00
Sebastian Gniazdowski 639063f4ad doc/install.sh: Replace the rarely supported by fonts ❯❯❯' with ▓▒░' 2019-11-15 18:06:03 +01:00
Sebastian Gniazdowski 5dba906985 _zplugin: Feature: complete parameter names for the env-whitelist subcmd 2019-11-15 17:29:32 +01:00
Sebastian Gniazdowski b2dacaefab zplugin: Fix no-arg detection
Issue #207
2019-11-10 22:19:39 +01:00
Sebastian Gniazdowski 90b08d92a8 zplugin: Automatically precede the plugin name with `@'
Issue #207
2019-11-10 20:20:21 +01:00
Sebastian Gniazdowski 1ac27be82f zplugin: FEATURE: Support a new ice syntaxes: --wait=3 and wait/3, etc. 2019-11-09 02:58:51 +01:00
Sebastian Gniazdowski f090574f64 zplugin: Fix the is-snippet ice
See https://github.com/zdharma/zplugin/commit/a45edcf2#commitcomment-35854893
2019-11-08 00:20:05 +01:00
Sebastian Gniazdowski f8a8141e97 zplugin,*autoload: Two other places to have the option-parsing update 2019-11-08 00:14:42 +01:00
Sebastian Gniazdowski 8eeaf38c73 zplugin: Make the option-parsing match only separate strings
Issue #204
2019-11-08 00:04:20 +01:00
Sebastian Gniazdowski 93530a3b67 *side,*autoload: Fully add ices to the ices lists 2019-11-07 20:15:20 +01:00
Sebastian Gniazdowski a20f99f50a Updated README.md 2019-11-07 20:15:00 +01:00
Sebastian Gniazdowski e2ddb3c687 Updated README.md 2019-11-07 18:47:23 +01:00
Sebastian Gniazdowski 4a61511b88 zplugin: Allow multiple options to be passed to snippet when using Turbo 2019-11-07 18:10:47 +01:00
Sebastian Gniazdowski f408790aa8 zplugin: FEATURE: prefix for plugins/snippets `@': distinguish from ices
in the for-syntax, e.g.: sharkdp/fd needs this (collides with `sh'-ice).
2019-11-07 18:05:51 +01:00
Sebastian Gniazdowski 8ce7269dc6 Updated README.md 2019-11-07 16:23:42 +01:00
Sebastian Gniazdowski 935c613b2e zplugin,*side,*autoload: Add `is-snippet' ice, for use with for-syntax 2019-11-07 13:47:25 +01:00
Sebastian Gniazdowski fef75a0d29 zplugin.zsh: Update the merged trigger-load / for-support code
PR #202
2019-11-07 13:25:08 +01:00
NICHOLAS85 02226f5f08 zplugin:Allow trigger-load ice to work in for-syntax (#202)
* zplugin:Allow trigger-load ice to work in `for`-syntax

* zplugin:Remove duplicate code
2019-11-07 13:22:54 +01:00
Sebastian Gniazdowski ae4024af95 zplugin: Fix mistake after 83925475
See 8392547590 (commitcomment-35843456)
2019-11-07 13:14:48 +01:00
Sebastian Gniazdowski a45edcf21f zplugin: Restore the via github-url loading of plugins
Issue #203
2019-11-07 13:09:58 +01:00
Sebastian Gniazdowski 6b81fcde7f zplugin,*install,*autoload: Prevent shword-splitting
Issue https://github.com/zplugin/z-a-bin-gem-node/issues/1
2019-11-07 12:59:49 +01:00
Sebastian Gniazdowski 0af234d348 Updated README.md 2019-11-07 06:38:40 +01:00
Sebastian Gniazdowski 8392547590 zplugin: Restore the `subscribe' ice (for syntax) 2019-11-07 06:29:15 +01:00
Sebastian Gniazdowski 8922e5ab08 Updated README.md 2019-11-06 20:38:57 +01:00
Sebastian Gniazdowski b6c50a29c7 zplugin: Remove code duplication – run classic syntax through for-syntax
code. Issue #198, and also #199.
2019-11-06 20:33:36 +01:00
Sebastian Gniazdowski 91c9f5161b
Update FUNDING.yml 2019-11-06 19:55:20 +01:00
Sebastian Gniazdowski 55f14987c4 zplugin,*side,*autoload: Rename the light' ice to light-mode' 2019-11-06 19:44:38 +01:00
Sebastian Gniazdowski 752f70500e zplugin: Always append to the zsh_loaded_plugins array 2019-11-06 19:34:38 +01:00
Sebastian Gniazdowski 91e6816af2 zplugin: Add the missing Turbo support for the new `for'-syntax 2019-11-05 17:01:33 +01:00
Sebastian Gniazdowski 82290f72c4 zplugin: Use the service's ice value in the zpty name 2019-11-05 16:59:54 +01:00
Sebastian Gniazdowski 8c32fd03a9 *install,*autoload: Remove shwordsplit-problems detected by tests
Issue #200
2019-11-05 13:33:54 +01:00
Sebastian Gniazdowski c16fd73fe8 zplugin: Make scheduler fully shwordsplit immune
Issue #200. See also #193.
2019-11-05 12:44:04 +01:00
Sebastian Gniazdowski efab1d9049 *side,*autoload: Add the new `light' ice to the ices lists 2019-11-05 03:16:23 +01:00
Sebastian Gniazdowski 7f9aa6caa8 zplugin: FEATURE: Completely new syntax. No subcommands + default ices!
Example:
zplugin as"program" atload"print Hi\!" for \
    atinit"print First\!" zdharma/null \
    atinit"print Second\!" svn OMZ::plugins/git

The output:
First!
Hi!
Second!
Hi!

And also:
% print -rl $path | egrep -i '(/git|null)'
/root/.zplugin/snippets/OMZ::plugins/git
/root/.zplugin/plugins/zdharma---null

Issue #198
2019-11-05 03:13:14 +01:00
Sebastian Gniazdowski bf3d1299f3 Updated README.md 2019-11-03 10:31:22 +01:00
Sebastian Gniazdowski 229e5ee178 Updated README.md 2019-11-03 10:28:18 +01:00
Sebastian Gniazdowski 0d2abcb985 zplugin: Less quoting in a few places 2019-11-03 10:12:26 +01:00
Sebastian Gniazdowski b61ec20636 zplugin: Fix a typo-bug 2019-11-03 10:12:01 +01:00
Sebastian Gniazdowski d95387af4f Updated README.md 2019-11-03 10:11:38 +01:00
Sebastian Gniazdowski 77fb29eaff zplugin,*install: FEATURE: as"null" – a shorthand for pick'/dev/null' &
nocompletions ices.
2019-11-03 08:17:45 +01:00
Sebastian Gniazdowski 8f93c3e772 Updated README.md 2019-11-03 06:50:18 +01:00
Sebastian Gniazdowski f1e3d4798e *-output.zsh: Display various progress-spinners side to the progress bar 2019-11-02 21:01:26 +01:00
Sebastian Gniazdowski 2cb91da460 _zplugin: Complete normal plugins before absolute-path ones 2019-11-02 21:00:34 +01:00
Sebastian Gniazdowski 66156aa089 _zplugin: More distinctive descriptions when completing + small fixes 2019-11-01 15:08:48 +01:00
Sebastian Gniazdowski 5126c2ac3a Updated README.md 2019-11-01 14:03:01 +01:00
Sebastian Gniazdowski dadaac9d27 Updated README.md 2019-11-01 13:58:26 +01:00
Sebastian Gniazdowski c6461107cf _zplugin: Change the order of completing dirs and plugins 2019-11-01 13:56:36 +01:00
Sebastian Gniazdowski 90d53d53cc _zplugin: Small reformat and cleanup 2019-11-01 13:55:16 +01:00
Sebastian Gniazdowski ee7d57902b _zplugin: Add completion for run,fpath/add-fpath 2019-11-01 13:53:55 +01:00
Sebastian Gniazdowski 458a8601e6 _zplugin: Don't use emulate 2019-11-01 13:52:33 +01:00
Sebastian Gniazdowski 26aa6e206e Updated README.md 2019-11-01 13:41:24 +01:00
Sebastian Gniazdowski a49a47a82b zplugin: FEATURE: run [-l|--last] [plugin] {command} – runs code inside
the plugin (not yet snippet) folder. -l/--last: use last one.
2019-10-31 16:11:59 +01:00
Sebastian Gniazdowski 64145065c5 zplugin: Make add-fpath KSH_ARRAYS compatible 2019-10-31 16:11:17 +01:00
Sebastian Gniazdowski 4b215bad7c *autoload: Add add-fpath subcommand to the help 2019-10-31 15:30:04 +01:00
Sebastian Gniazdowski af22b17c90 Updated README.md 2019-10-31 15:29:46 +01:00
Sebastian Gniazdowski 41ae848cfa zplugin: FEATURE: fpath|add-fpath subcommand – it adds plugin (not yet
snippet) directory to the fpath, either appending or prepending it.
If an additional argument is given, it's appended to the directory.
2019-10-31 15:00:06 +01:00
Sebastian Gniazdowski ed9d4ebf54 zplugin: Pass correct path to atinit hooks for absolute-path plugins 2019-10-31 14:48:58 +01:00
Sebastian Gniazdowski 0b97874fff zplugin: Fix trigger-load
See https://github.com/zdharma/zplugin/commit/3deffd6#commitcomment-35737490
2019-10-30 22:52:35 +01:00
Sebastian Gniazdowski 3deffd690a zplugin: Make trigger-load'' work without extendedglob set in the shell
See discussion at https://github.com/zdharma/zplugin/commit/625fdee
2019-10-30 22:33:53 +01:00
Sebastian Gniazdowski 9de26e9a5b *install: Silence errors from compinit 2019-10-30 22:26:12 +01:00
Sebastian Gniazdowski 669d5a382e zplugin: FIX: for Zsh < 5.0.8, make autoloading work again after 2c345ab
See #127
2019-10-30 22:12:06 +01:00
Sebastian Gniazdowski 1600895f47 zplugin: Solve the conflict between printexitvalue / $_ / $? handling
Issue #193
2019-10-30 19:46:03 +01:00
Sebastian Gniazdowski 6b9c2f08da zplugin: Ensure that Turbo plugins are unloaded first & loaded second 2019-10-30 19:21:33 +01:00
Sebastian Gniazdowski 870ce252e4 zplugin: Shorten each scheduler run by 30-40ms – this much less delay
between plugins
2019-10-30 18:47:27 +01:00
Sebastian Gniazdowski 1367fa7397 Updated README.md 2019-10-30 17:05:19 +01:00
Sebastian Gniazdowski 8b2ee9421a zplugin: Allow multiple trigger-loaders – separate with ; 2019-10-30 16:04:54 +01:00
Sebastian Gniazdowski bc89c69619 Updated README.md 2019-10-30 14:29:04 +01:00
Sebastian Gniazdowski 5fcf0a995a *side,*autoload: Add `trigger-load' to the ice lists 2019-10-30 14:28:17 +01:00
Sebastian Gniazdowski 24d31192e9 Updated README.md 2019-10-30 14:23:54 +01:00
Sebastian Gniazdowski 625fdee41c zplugin: FEATURE: trigger-load'' ice – create a function that loads the
plugin/snippet, with an option to automatically forward the call afterwards.
2019-10-30 14:16:46 +01:00
Sebastian Gniazdowski c70cdde2f5 *autoload: Format a code 2019-10-30 14:14:43 +01:00
Sebastian Gniazdowski dc3ad4a7a5 *side: Correctly handle no* ices 2019-10-27 19:02:22 +01:00
Sebastian Gniazdowski 258842c2ef *side: Correctly handle no* ices 2019-10-27 18:46:33 +01:00
Sebastian Gniazdowski 2e0556aecb zplugin: Allow no* prefix for ices 2019-10-27 18:35:25 +01:00
Sebastian Gniazdowski 8cbf5b40d5 zplugin: Fix the cclear command 2019-10-27 17:10:34 +01:00
Sebastian Gniazdowski 93b8a12a62 zplugin: Detect improper commands again 2019-10-27 14:28:32 +01:00
Sebastian Gniazdowski 2c345abcd6 zplugin: Use $fpath not $FPATH to allow colons in the paths
Issue #192
Also see:
https://github.com/zdharma/zplugin/commit/ecf0bf3e59
https://github.com/zdharma/zplugin/commit/ea9302b509
Issue #127
2019-10-24 20:53:17 +02:00
Sebastian Gniazdowski 6e4a29d46f *autoload: Follow the Standard – on-unload code ran in plugin directory 2019-10-24 14:51:46 +02:00
Sebastian Gniazdowski 4b7e68eef4 *install,*autoload: CD to plugin/snippet dir when running on-update code 2019-10-24 14:38:12 +02:00
Sebastian Gniazdowski 4dce4e79ed *install: Correct execution of the on-update code 2019-10-24 14:36:16 +02:00
Sebastian Gniazdowski 8b4480379b all: Implement Plugin Standard @zsh-plugin-run-on-update function - it
registers code to be run on update of the plugin.
2019-10-23 22:39:39 +02:00
Sebastian Gniazdowski e99b8fa77b *side: *compute-ice takes true static ice precedence 2019-10-23 22:38:29 +02:00
Sebastian Gniazdowski ce13375767 *side,*autoload: Include ps-on-unload Plugin Standard implementation ice 2019-10-23 22:36:24 +02:00
Sebastian Gniazdowski 5fb79c47ae zplugin,*autoload: New Plugin Standard mechanism: @zsh-plugin-on-unload
function: it registers code to run when unloading the plugin.
2019-10-23 22:06:06 +02:00
Sebastian Gniazdowski 76ba9711f3 _zplugin: Silence a warncreateglobal 2019-10-23 21:57:13 +02:00
Sebastian Gniazdowski 161d535645 _zplugin: Remove unused hash 2019-10-23 21:56:58 +02:00
Sebastian Gniazdowski e8f343369f *autoload: Correct vim folds around a function 2019-10-23 21:43:35 +02:00
Sebastian Gniazdowski a6c1a5ca26 *autoload: Glob dotted directories at `delete --all'
Issue #190
2019-10-23 13:38:13 +02:00
Sebastian Gniazdowski 7bddbfa0d8 Updated README.md 2019-10-22 22:07:31 +02:00
Sebastian Gniazdowski 2e9f0dca2a *autoload: Correct detection if atpull'' given 2019-10-22 21:53:26 +02:00
Sebastian Gniazdowski 572740c99e *install,*autoload: The countdown is activated also for `make' ice 2019-10-22 21:43:31 +02:00
Sebastian Gniazdowski fae4919b2e *install: The message about downloading a snippet enumerates curl first 2019-10-22 21:40:06 +02:00
Sebastian Gniazdowski 2f94722d99 *install: Correctly detect if atpull'' given 2019-10-22 21:37:39 +02:00
Sebastian Gniazdowski 57dc145c17 Updated README.md 2019-10-22 21:24:02 +02:00
Sebastian Gniazdowski db60fa82aa *autoload,README: Document the `countdown' ice. 2019-10-22 21:22:00 +02:00
Sebastian Gniazdowski 12d26c2684 all: FEATURE: New ice `countdown' – countdown before atclone,atpull ices
It'll display 5…4…3…2…1…0 countdown before running the atclone, atpull ices.
2019-10-22 21:16:44 +02:00
Sebastian Gniazdowski 95d2e738b3 zplugin: Provide compdef shadowing for as"command" plugins
Issue #188
2019-10-22 14:13:39 +02:00
Sebastian Gniazdowski 5846d3601f _zplugin: setopt autopushd, for sake of set of developed common options 2019-10-21 20:20:28 +02:00
Sebastian Gniazdowski 765206c737 zplugin: Measure the loading moments of times -m from the prompt time 2019-10-21 12:35:34 +02:00
Sebastian Gniazdowski 3cf996b7b2 _zplugin: Separate downloaded snippets and already loaded snippets 2019-10-21 12:29:49 +02:00
Sebastian Gniazdowski 4ac535e4dc zplugin: Shorter sleep time before reschedule 2019-10-21 12:26:29 +02:00
Sebastian Gniazdowski 7d8076c6be *autoload,README: Information on the new `times' option 2019-10-21 12:21:43 +02:00
Sebastian Gniazdowski dc1fc5897b zplugin,*autoload: FEATURE: plugin loading *moments* with `zpl times -m' 2019-10-21 12:15:33 +02:00
Sebastian Gniazdowski 284b42ffb0 zplugin: Separate files & dirs from plugins & snippets in completion 2019-10-21 11:36:39 +02:00
Sebastian Gniazdowski 752719d3ce Performance status 10/20/2019
zsh-5.7.1-dev-0, make testp2

-zplg-compinit:28: compinit: function definition file not found

num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1) 2800        4315.80     1.54   63.43%   3787.39     1.35   55.66%  --zplg-shadow-bindkey
 2)  200        6659.73    33.30   97.88%    453.63     2.27    6.67%  -zplg-load-plugin
 3) 2800         445.50     0.16    6.55%    445.50     0.16    6.55%  is-at-least
 4)  400         323.05     0.81    4.75%    323.05     0.81    4.75%  -zplg-diff-parameter
 5) 2000         375.35     0.19    5.52%    317.47     0.16    4.67%  --zplg-shadow-zle
 6) 10400         295.94     0.03    4.35%    295.94     0.03    4.35%  -zplg-add-report
 7)  600         263.16     0.44    3.87%    202.17     0.34    2.97%  --zplg-shadow-alias
 8) 1000         240.64     0.24    3.54%    191.27     0.19    2.81%  --zplg-shadow-autoload
 9) 1400         210.76     0.15    3.10%    171.54     0.12    2.52%  --zplg-shadow-zstyle
10) 2800        4410.70     1.58   64.82%     94.89     0.03    1.39%  bindkey
11)  400          58.61     0.15    0.86%     58.61     0.15    0.86%  -zplg-diff-functions
12)  200        6761.51    33.81   99.37%     57.94     0.29    0.85%  -zplg-load
13)  400         494.94     1.24    7.27%     44.78     0.11    0.66%  -zplg-diff
14) 2000         419.23     0.21    6.16%     43.88     0.02    0.64%  zle
15)  200        6798.63    33.99   99.92%     37.12     0.19    0.55%  zplugin
16)  400          36.96     0.09    0.54%     36.96     0.09    0.54%  -zplg-diff-options
17)  400          31.54     0.08    0.46%     31.54     0.08    0.46%  -zplg-diff-env
18) 1400         240.97     0.17    3.54%     30.21     0.02    0.44%  zstyle
19)  200         152.76     0.76    2.25%     27.63     0.14    0.41%  select-word-style
20)  200          27.28     0.14    0.40%     27.28     0.14    0.40%  -zplg-register-plugin
21)  200          67.89     0.34    1.00%     25.73     0.13    0.38%  add-zsh-hook
22)  200          23.05     0.12    0.34%     23.05     0.12    0.34%  -zplg-shadow-on
23) 1000         263.05     0.26    3.87%     22.41     0.02    0.33%  autoload
24)  200          18.66     0.09    0.27%     18.66     0.09    0.27%  -zplg-shadow-off
25)  600         276.59     0.46    4.06%     13.44     0.02    0.20%  alias
26)  200           8.35     0.04    0.12%      8.35     0.04    0.12%  -zplg-pack-ice
27)  200           8.21     0.04    0.12%      8.21     0.04    0.12%  -zplg-any-to-user-plugin
28)    1        6804.26  6804.26  100.00%      5.63     5.63    0.08%  (anon)

Measured time: 6.804

A rare result, most were ~7.08–7.12

zsh-5.7.1-dev-0, make testp2

num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1)  200         481.75     2.41   82.59%    232.15     1.16   39.80%  -zplg-load-plugin
 2) 1000         176.38     0.18   30.24%    140.80     0.14   24.14%  --zplg-shadow-autoload
 3)  200         555.14     2.78   95.17%     40.80     0.20    6.99%  -zplg-load
 4) 2000          39.77     0.02    6.82%     39.77     0.02    6.82%  -zplg-add-report
 5)  200         580.46     2.90   99.52%     25.32     0.13    4.34%  zplugin
 6)  200          20.12     0.10    3.45%     20.12     0.10    3.45%  -zplg-register-plugin
 7)  200          48.49     0.24    8.31%     18.77     0.09    3.22%  add-zsh-hook
 8) 1000         193.44     0.19   33.16%     17.06     0.02    2.92%  autoload
 9)  200          14.42     0.07    2.47%     14.42     0.07    2.47%  select-word-style
10)  200           9.67     0.05    1.66%      9.67     0.05    1.66%  -zplg-shadow-on
11)  200           9.10     0.05    1.56%      9.10     0.05    1.56%  -zplg-shadow-off
12)  200           6.31     0.03    1.08%      6.31     0.03    1.08%  -zplg-pack-ice
13)  200           6.16     0.03    1.06%      6.16     0.03    1.06%  -zplg-any-to-user-plugin
14)    1         583.28   583.28  100.00%      2.83     2.83    0.48%  (anon)

-----------------------------------------------------------------------------------

14)    1         583.28   583.28  100.00%      2.83     2.83    0.48%  (anon)
     200/200     580.46     2.90   99.52%     25.32     0.13             zplugin [5]

Measured time: 0.583
2019-10-20 22:48:36 +02:00
Sebastian Gniazdowski 8cc89191ca Updated README.md 2019-10-20 22:42:14 +02:00
Sebastian Gniazdowski 356e1ae469 zplugin: FEATURE: the subcommand `ice' can now be skipped – just pass
the ices, e.g.: zplugin blockf atload"zpcompinit"; zplugin load zsh-users/zsh-completions
2019-10-20 22:37:59 +02:00
Sebastian Gniazdowski 2dc85223df zplugin: Further simplify the ice-related code 2019-10-20 22:37:27 +02:00
Sebastian Gniazdowski c12ed5f5e9 zplugin: Remove unnecessary ice-related code complexity 2019-10-20 22:22:28 +02:00
Sebastian Gniazdowski 3ec8ade712 Updated README.md 2019-10-20 21:56:47 +02:00
Sebastian Gniazdowski 8b1d1518ac zplugin: A feature: plugins using $fpath to subdirs can be now blockf-ed 2019-10-20 21:38:47 +02:00
Sebastian Gniazdowski 58146d450a zplugin: Missing changes for the previous commit 2019-10-20 21:38:01 +02:00
Sebastian Gniazdowski 2587955beb zplugin: Provide correct fpath for autoload -w and +X calls 2019-10-20 21:37:19 +02:00
Sebastian Gniazdowski 830d459be7 *side,*install,*autoload: Move -zplg-compute-ice into zplugin-side.zsh 2019-10-20 19:19:37 +02:00
Sebastian Gniazdowski d996585c2a *install: Ensure that -zplg-compute-ice exists 2019-10-20 19:14:08 +02:00
Sebastian Gniazdowski 4dd82e3605 *install: FEATURE: `zplugin compile' supports compiling snippets 2019-10-20 19:03:31 +02:00
Sebastian Gniazdowski c48ca9c0fc *install: Snippets to respect nocompile ice 2019-10-20 19:02:11 +02:00
Sebastian Gniazdowski f8a80151e3 *autoload: FEATURE: `edit' now supports also editing snippets 2019-10-20 17:05:41 +02:00
Sebastian Gniazdowski 1c5beb6c22 _zplugin: Silence a warncreateglobal 2019-10-20 16:41:19 +02:00
Sebastian Gniazdowski f2b1b857e7 _zplugin: FEATURE: delete, recall, cd, etc. have also snippets completed 2019-10-20 16:32:14 +02:00
Sebastian Gniazdowski 67f4f58b9f _zplugin: FEATURE: completion for `snippet' command completes snippets 2019-10-20 16:21:05 +02:00
Sebastian Gniazdowski cd0cb54c21 *install,*autoload: Reject .js files as possible completions 2019-10-19 19:08:52 +02:00
Sebastian Gniazdowski 354bd5e4dd *install: No additional new line after "Symlinking completion …" message 2019-10-18 22:13:11 +02:00
Sebastian Gniazdowski 1b4ba71ecd *autoload: Make `zplugin bindkeys' work again 2019-10-18 20:47:41 +02:00
Sebastian Gniazdowski 2080925dfa _zplugin: Declare local curcontext and don't localize context 2019-10-18 20:18:39 +02:00
Sebastian Gniazdowski 7693af0862 zplugin: Remove stray whitespace 2019-10-18 17:55:45 +02:00
Sebastian Gniazdowski 015ab5fb4b zplugin: Mention in the report that atload! ice is being executed 2019-10-18 17:55:06 +02:00
Sebastian Gniazdowski 7921d769f3 zplugin: Correctly invoke !atload hooks 2019-10-18 17:54:08 +02:00
Sebastian Gniazdowski 60fb797ff5 *install,*autoload: Don't treat some popular extensions as completions 2019-10-17 04:13:55 +02:00
Sebastian Gniazdowski e3bae96ebc Revert "zplugin: Return 0 from scheduler if printexitvalue is set"
This reverts commit 7a2338ab8a.

PR #185
2019-10-17 00:50:24 +02:00
Sebastian Gniazdowski 86aa5ec71f *autoload: Mute a warncreateglobal warning 2019-10-16 23:36:01 +02:00
Sebastian Gniazdowski 5875131bea zplugin: Add $ZPFX/bin to $PATH 2019-10-16 23:29:33 +02:00
Sebastian Gniazdowski cdcc76a375 Remove accidentally commited file, thanks @b0o!
ca4764fe97
2019-10-16 23:23:42 +02:00
Sebastian Gniazdowski 9e2c112ca1 zplugin: Make the keyboard activation in-between plugins more certain
https://www.reddit.com/r/zsh/comments/dhqw2c/does_zplugin_turbo_mode_reduce_zsh_startup_time/f3tq9ri/?context=3
2019-10-15 16:59:40 +02:00
Sebastian Gniazdowski c0d14e5768 *autoload: Use print' instead of echo' 2019-10-15 16:57:18 +02:00
Sebastian Gniazdowski a52b569e87 zplugin: Use print' instead of echo' 2019-10-15 16:55:42 +02:00
Sebastian Gniazdowski a1a6673e19 *autoload: FEATURE – more in-depth ouput in `times' – mention sbin'' ice
and fbin'' (z-a-bin-gem-node annex), pick'/dev/null' && make, etc.
2019-10-15 16:18:26 +02:00
Sebastian Gniazdowski 54118ff71b zplugin: Do reschedule after every plugin/snippet 2019-10-15 13:00:20 +02:00
Sebastian Gniazdowski 9ac7ab373b zplugin: FEATURE: Make the Turbo mode more in-background – keyboards is
being activated in between of plugins IN THE SAME time-slot.

https://www.reddit.com/r/zsh/comments/dhqw2c/does_zplugin_turbo_mode_reduce_zsh_startup_time/
2019-10-15 12:13:15 +02:00
Sebastian Gniazdowski d0300d0343 *install,*autoload: Call -zplg-compinit on cinstall and cuninstall 2019-10-14 14:36:01 +02:00
Sebastian Gniazdowski f7caba32e1 *install,*autoload: Move -zplg-compinit to *install.zsh 2019-10-14 14:35:07 +02:00
Sebastian Gniazdowski 9fc9d26db1 *install,*autoload: Accept dots in completion file names
https://www.reddit.com/r/zsh/comments/dhow17/loading_dotdrop_completions_with_zplugin/
2019-10-14 14:33:39 +02:00
Sebastian Gniazdowski 382c3e6617 doc/zplugin.1: A new man=page for `zplugin man' rendered with remark-man 2019-10-13 14:33:18 +02:00
Sebastian Gniazdowski 82dbecd0da zplugin: Use Zsh 5.0.2 compliant syntax
Issue #182
2019-10-13 12:30:00 +02:00
Sebastian Gniazdowski d8d8837e55 doc/install.sh: Use unexpanded $HOME in the zshrc code block
Fixes #179
2019-10-13 11:00:30 +02:00
Sebastian Gniazdowski 10b37c293a Updated README.md 2019-10-12 09:05:44 +02:00
Sebastian Gniazdowski 0066daddeb zplugin: FEATURE: id-as"auto" – sets plugin/snippet ID at last component
of the spec, e.g. hlissner/zsh-autopair will become `zsh-autopair'
2019-10-12 08:59:59 +02:00
Sebastian Gniazdowski bed7025eb0 zplugin: Improve snippet loading 2019-10-12 08:59:36 +02:00
Sebastian Gniazdowski db11628801 *install: Better format code 2019-10-12 08:58:33 +02:00
Sebastian Gniazdowski 4c10ff5ba7 *install,*autoload: Uplift – compact output of `compinit' subcommand 2019-10-11 15:15:37 +02:00
Sebastian Gniazdowski 2ea6b0926b zplugin: Shorter autoload stub 2019-10-07 18:32:35 +02:00
Sebastian Gniazdowski 3445be2266 *autoload: Uplift plugin unloading 2019-10-07 18:22:22 +02:00
Sebastian Gniazdowski fe04aa64a6 *autoload: Better detection of snippets on delete, cd, etc.
Issue #178
2019-10-07 08:14:56 +02:00
Sebastian Gniazdowski 967da93597 *install: Don't compile pick"/dev/null" 2019-10-07 07:04:34 +02:00
Sebastian Gniazdowski c6dfe4463c zplugin: Better handling of pick"/dev/null" 2019-10-07 07:01:17 +02:00
Sebastian Gniazdowski be0690329d *install: Silence a zcompile 2019-10-07 06:55:35 +02:00
Sebastian Gniazdowski 8c7735bc5a *install: Use of alternate syntax 2019-10-07 06:55:09 +02:00
Sebastian Gniazdowski 82b28af298 *install: Better compilation of snippets 2019-10-07 06:54:32 +02:00
Sebastian Gniazdowski dbef150401 zplugin: Simplify *load-plugin code 2019-10-06 07:25:54 +02:00
Sebastian Gniazdowski e8f9b98ac6 *autoload: Uniquify a file list 2019-10-06 07:19:39 +02:00
Sebastian Gniazdowski 28884e53fc zplugin: Don't cd into the snippet's directory when multisrc'' given
Issue #176
2019-10-05 11:09:12 +02:00
Sebastian Gniazdowski 121cee43f4 zplugin: Feature: CD into plugin/snippet dir before matching multisrc''
Issue #176
2019-10-05 10:50:31 +02:00
Sebastian Gniazdowski 150a6651cb zplugin: Detect all scripts when loading snippets
Issue #176
2019-10-05 10:37:13 +02:00
Sebastian Gniazdowski 839483b8ad zplugin: Explicitly detect init.zsh 2019-10-05 10:33:24 +02:00
Sebastian Gniazdowski 4b45e65125 zplugin,*autoload: `delete' supports -y/--yes options to prevent asking 2019-10-05 09:05:10 +02:00
Sebastian Gniazdowski 028b1e1d6d zplugin: Make options passed to snippet survive in turbo mode
Issue #175
2019-10-04 09:56:06 +02:00
Sebastian Gniazdowski 07ed026cfa zplugin: Allow to run `update' without args if id-as'' or teleid'' given 2019-10-03 14:21:13 +02:00
Sebastian Gniazdowski c72327d627 zplugin: Ensure that ZSH_CACHE_DIR exists
Issue #174
2019-10-03 05:31:44 +02:00
Sebastian Gniazdowski 0c8d20885e zplugin: Support OMZ's ZSH_CACHE_DIR on which OMZ kubctl plugin relies
Issue #174
2019-10-03 05:26:16 +02:00
Sebastian Gniazdowski 823669c525 *install: More globbing of dotted files 2019-10-01 21:02:14 +00:00
Sebastian Gniazdowski 3107711e01 zplugin: Use the workaround after exec 2019-10-01 05:34:11 +00:00
Sebastian Gniazdowski 7610a06fe1 *autoload: A fix for a message 2019-10-01 05:33:12 +00:00
Sebastian Gniazdowski 6f0c9f2913 all: Glob dotted files
Issue #173
2019-10-01 05:23:04 +00:00
Sebastian Gniazdowski 941cef9963 zplugin: Change to annexes: !atload means: run during tracking enabled,
which also means to run it before the atload'' ice (no change in this).
2019-09-29 21:34:06 +02:00
Sebastian Gniazdowski 0932f3e85d *install: Make *file-stdout more reliable 2019-09-28 10:52:17 +02:00
Sebastian Gniazdowski 7d15be5865 *install: Rearrange a snippet message 2019-09-28 07:54:29 +02:00
Sebastian Gniazdowski 02ad6019ac *install: A message easier on eyes 2019-09-28 02:57:50 +02:00
Sebastian Gniazdowski a34de87faf doc/mod-install.sh: Use --without-tcsetpgrp with configure 2019-09-27 11:21:26 +02:00
Sebastian Gniazdowski d5aa57a998 doc/install.sh: Output the version of installed Zplugin 2019-09-27 11:11:11 +02:00
Sebastian Gniazdowski 4bf788814a *autoload: Build module with --without-tcsetpgrp 2019-09-27 10:40:38 +02:00
Sebastian Gniazdowski 7a2338ab8a zplugin: Return 0 from scheduler if printexitvalue is set
Issue #172
2019-09-26 23:49:26 +02:00
Gwon Seonggwang 3a2e8e8dbf *install: Support tar archives (from"gh-r") 2019-09-21 19:13:00 +02:00
Sebastian Gniazdowski ca4764fe97 zplugin: Add ZPFX/bin to PATH 2019-09-20 01:12:59 +02:00
Sebastian Gniazdowski b980e06a93 *autoload: -zplg-delete – also list regular files 2019-09-18 13:47:09 +02:00
Sebastian Gniazdowski c8a811a960 *autoload: -zplg-delete – list files also for plugins and svn snippets 2019-09-18 13:40:17 +02:00
Sebastian Gniazdowski a657e7c8eb *autoload: Pass teleid to atdelete hooks 2019-09-18 13:36:15 +02:00
Sebastian Gniazdowski af137d6840 *autoload: Reorganize -zplg-delete 2019-09-18 13:33:04 +02:00
Sebastian Gniazdowski 33da83ac8b *autoload: Missing *to-uspl2 call 2019-09-18 13:28:43 +02:00
Sebastian Gniazdowski 9ef685596e *autoload: Set up a fallback teleid 2019-09-18 13:27:58 +02:00
Sebastian Gniazdowski 5f73cfeab1 *autoload: Filter-out .svn and .git directories in -zplg-delete 2019-09-18 13:13:44 +02:00
Sebastian Gniazdowski 5a65b1f30a *autoload: Use `if' in -zplg-delete 2019-09-18 13:13:24 +02:00
Sebastian Gniazdowski 870e7ac6df *autoload: Output a "y/n" string in -zplg-confirm 2019-09-18 13:04:47 +02:00
Sebastian Gniazdowski 27a826da7d *autoload: Load ices in -zplg-delete; general uplift 2019-09-18 13:03:39 +02:00
Sebastian Gniazdowski ff633fea5e *autoload: Resolve warncreateglobal warnings induced by *compute-ice 2019-09-18 11:38:22 +02:00
Sebastian Gniazdowski b06654f4d8 *autoload: *compute-ice returns is-snippet bool in a given variable 2019-09-18 11:26:41 +02:00
Sebastian Gniazdowski 70794c72b6 *autoload: Ensure the `zplugin recall …' text is syntax-highlighted 2019-09-18 07:24:44 +02:00
Sebastian Gniazdowski 95d2b89323 zplugin: Fix all problems with *deploy-message 2019-09-18 07:23:32 +02:00
Sebastian Gniazdowski 57eff33bde zplugin: Fix problems with deploy-message on non-OS X systems 2019-09-18 05:31:41 +02:00
Sebastian Gniazdowski 965688752a *side,*autoload: svn ice must be last in the order array 2019-09-18 05:05:04 +02:00
Sebastian Gniazdowski b85655ea60 *autoload: New hook: atdelete 2019-09-16 15:04:46 +02:00
Sebastian Gniazdowski 45abf92bff zplugin,*install,*autoload: Pass hook type as last argument to handler 2019-09-15 08:55:37 +02:00
Sebastian Gniazdowski e667e960e8 Updated README.md 2019-09-15 08:08:59 +02:00
Sebastian Gniazdowski e927be43a2 *install: Fix bpick'' ice – should be prepended with */… to be intuitive
Issue #166
2019-09-14 12:38:37 +02:00
Sebastian Gniazdowski 463a15f8a7 *autoload: Update the help message 2019-09-13 18:11:46 +02:00
Sebastian Gniazdowski 29be43331c Updated README.md 2019-09-13 17:57:04 +02:00
Sebastian Gniazdowski 357551bb06 zplugin: Extend Bash emulation – options braceexpand, kshglob 2019-09-13 17:28:14 +02:00
Sebastian Gniazdowski fa112128dd New ice-mod – aliases 2019-09-13 17:09:21 +02:00
Sebastian Gniazdowski c7ec1af092 zplugin: Prevent double-report entries 2019-09-13 15:08:36 +02:00
Sebastian Gniazdowski fd8620525c zplugin: Add wrapping { and } 2019-09-13 14:14:24 +02:00
Sebastian Gniazdowski c9a9fbffbd zplugin: Remove a debug print 2019-09-12 12:39:20 +02:00
Sebastian Gniazdowski fe48c4b2b0 zplugin: Don't use a function wrapper to source files 2019-09-12 07:40:48 +02:00
Sebastian Gniazdowski 5b1c0c5a2a *side,*autoload: Add the new ice-mods sh, … into recognized-ices lists 2019-09-12 02:53:55 +02:00
Sebastian Gniazdowski 557b18900a Updated README.md 2019-09-12 02:35:27 +02:00
Sebastian Gniazdowski 75994307f7 zplugin: Bash emulation – no shglob option, to make regexes work 2019-09-12 01:05:39 +02:00
Sebastian Gniazdowski fb82730599 *install: Don't compile plugins that are loaded with an emulation 2019-09-12 00:37:55 +02:00
Sebastian Gniazdowski db341dd0ba zplugin: Support for sticky-emulation sourcing via ices: sh,bash,ksh,csh 2019-09-11 23:50:56 +02:00
Sebastian Gniazdowski cce7534eb1 zplugin: Optimize -zplg-ice a bit 2019-09-11 22:38:40 +02:00
Sebastian Gniazdowski 5799dd32bc *install: Fix running hooks for gh-r plugins 2019-09-11 21:11:38 +02:00
Sebastian Gniazdowski 8dbf5320d3 *autoload: Correct detection of the new version of the gh-r plugins 2019-09-11 20:24:47 +02:00
Sebastian Gniazdowski b1af892ccf zplugin: Don't use correct in scheduler 2019-09-10 22:39:43 +02:00
Sebastian Gniazdowski e7f0b2c738 Updated README.md 2019-09-10 07:47:09 +02:00
Sebastian Gniazdowski 600d856543 Updated README.md, CHANGELOG.md 2019-09-10 07:32:36 +02:00
Sebastian Gniazdowski 505c756ceb *install: Fallback to cat' in case there's no zsh' binary in PATH 2019-09-10 06:44:54 +02:00
Sebastian Gniazdowski ccde16c57a install.sh: Update a message 2019-09-10 06:40:18 +02:00
Sebastian Gniazdowski 639e176a4f install.sh: New variable ZPLG_BIN_DIR_NAME 2019-09-10 06:39:31 +02:00
Sebastian Gniazdowski 3469f96ed7 install.sh: Use progress bar, colors and a few unicode chars 2019-09-10 06:24:16 +02:00
Sebastian Gniazdowski a0c7322f4d zplugin,*install,*autoload: Rename z-plugins to annexes 2019-09-09 22:18:33 +02:00
Sebastian Gniazdowski f41e960e00 *autoload: Don't run reset'' ice for gh-r binaries when no actual update 2019-09-09 22:10:56 +02:00
Sebastian Gniazdowski a6f0544405 *install,*autoload: Separate update messages 2019-09-09 20:27:30 +02:00
Sebastian Gniazdowski e5cf3cb5c7 New ice mod reset'' which resets --hard the repository before git pull
It allows to have an atpull'' that modifies files.
2019-09-09 20:15:57 +02:00
Sebastian Gniazdowski 7e2156cfb1 *autoload: Glob for dot-files when globbing for -r/--reset 2019-09-09 20:12:52 +02:00
Sebastian Gniazdowski b4e3349648 *install,*autoload: Clarify when -r/--reset triggers the reset 2019-09-09 19:58:05 +02:00
Sebastian Gniazdowski 199160c886 *install: Use --recursive with svn revert 2019-09-09 17:38:55 +02:00
Sebastian Gniazdowski bca902775c *install,*autoload: Remove redundant code 2019-09-09 17:20:15 +02:00
Sebastian Gniazdowski ff51fcaae8 *autoload: Output message when skipping unset of a whitelisted parameter 2019-09-09 15:07:56 +02:00
Sebastian Gniazdowski 5d8c5f9575 *install: Run atpull ice once at snippet update & run-atpull ice 2019-09-08 09:26:17 +02:00
Sebastian Gniazdowski d42a9ba87e *install: Use lANG=C when calling svn 2019-09-08 08:23:31 +02:00
Sebastian Gniazdowski 761a1332d7 *autoload: Use alternate syntax in a few places and a globbing 2019-09-08 07:59:10 +02:00
Sebastian Gniazdowski 9a324b4f37 Update code documentation 2019-09-08 03:22:29 +02:00
Sebastian Gniazdowski 040cc89d4e *install: "gnu" substring can exist also with Windows binaries, fix it 2019-09-08 03:17:03 +02:00
Sebastian Gniazdowski b307215edf *autoload: Use pull --recurse-submodules instead of a git foreach
Fixes #164
2019-09-08 03:13:26 +02:00
Sebastian Gniazdowski 9b437982ce zplugin: Set options in shadowing functions 2019-09-04 05:49:30 +02:00
Sebastian Gniazdowski 68130dab4a Updated README.md (for the github/gitignore template addition) 2019-09-03 21:52:13 +02:00
Sebastian Gniazdowski ef9c55cdc3 zplugin: Update 2019-09-03 20:56:15 +02:00
Sebastian Gniazdowski 049a8a21ef *autoload: *create – use the $0-handling from the recent plugin standard 2019-08-30 15:55:14 +02:00
Sebastian Gniazdowski eb820f6d78 Updated README.md 2019-08-29 22:03:32 +02:00
Sebastian Gniazdowski 70f2817f73 *autoload: Update the messages for better interplay with s-h on the wiki 2019-08-29 21:49:26 +02:00
Sebastian Gniazdowski 2b8d592d2d zplugin: Fix the multiple-times usage of the same ice feature 2019-08-29 21:47:47 +02:00
Sebastian Gniazdowski 2337a2dc0e zplugin: Append values of ices used multiple times with ; as separator 2019-08-29 04:10:25 +02:00
Sebastian Gniazdowski 0ee3e88b25 Updated README.md from DundarGoc/zplugin_readme 2019-08-29 03:34:19 +02:00
Sebastian Gniazdowski a166d49a0c Updated code documentation 2019-08-29 03:30:28 +02:00
Sebastian Gniazdowski da307c3354 Updated README.md 2019-08-28 02:28:40 +02:00
Sebastian Gniazdowski f27cb760e9 Updated README.md from DundarGoc/zplugin_readme 2019-08-26 04:04:44 +02:00
Sebastian Gniazdowski f42ceea1ae zplugin: More often creation of $ZPFX/bin 2019-08-22 02:08:13 +02:00
Sebastian Gniazdowski 35d6e6a779 Updated README.md 2019-08-21 21:55:02 +02:00
Sebastian Gniazdowski f075dbd3e8 Updated README.md from DundarGoc/zplugin_readme 2019-08-21 21:52:52 +02:00
Sebastian Gniazdowski 88206f926d zplugin: Better code formatting in 2 places 2019-08-19 10:20:47 +02:00
Sebastian Gniazdowski 06211b3602 zplugin: Format a long line (+ fix an *errored* build) 2019-08-19 03:04:40 +02:00
Sebastian Gniazdowski 023b7d9dfa zplugin: Compatibility with the SHORT_LOOPS option disabled 2019-08-19 02:34:08 +02:00
Sebastian Gniazdowski 4beba42fec zplugin: Limit the amount of errors from dtrace when using module 2019-08-19 02:32:59 +02:00
Sebastian Gniazdowski 846cc0d767 zplugin: (q+) is a 5.3 addition 2019-08-16 01:52:09 +02:00
Sebastian Gniazdowski 4974c2cfa1 zplugin: Better quoting of bindkeys' key in reports 2019-08-16 01:47:52 +02:00
Sebastian Gniazdowski 489e3d374f Updated README.md from DundarGoc/zplugin_readme 2019-08-15 03:58:50 +02:00
Sebastian Gniazdowski e630842054 Updated README.md from DundarGoc/zplugin_readme 2019-08-15 03:48:06 +02:00
Sebastian Gniazdowski f2b022a7a9 zplugin: Support for autoloads in wrap-track'' 2019-08-14 04:33:50 +02:00
Sebastian Gniazdowski f0c77a9dd8 zplugin,*autoload: Restoration of bindkeys 2019-08-14 04:33:09 +02:00
Sebastian Gniazdowski 5cd3d857bb zplugin: Simplify & optimize *shadow-bindkey 2019-08-14 02:36:23 +02:00
Sebastian Gniazdowski a6627feef0 *autload: Remove duplicate `local k' 2019-08-13 20:56:02 +02:00
Sebastian Gniazdowski 5593ab785b *autoload: *unload – respect the -q option (add the guard to a message) 2019-08-13 20:54:53 +02:00
Sebastian Gniazdowski b8b549ace3 Updated README.md 2019-08-11 12:23:48 +02:00
Sebastian Gniazdowski 86e85dd077 Updated README.md 2019-08-11 12:09:52 +02:00
Sebastian Gniazdowski 05d55db941 Updated README.md from DundarGoc/zplugin_readme 2019-08-11 00:31:33 +02:00
Sebastian Gniazdowski 88186e451d *autoload: *unload – use localoptions 2019-08-10 18:21:40 +02:00
Sebastian Gniazdowski 49c467ec3f *autoload: Properly restore completion widgets 2019-08-10 18:20:45 +02:00
Sebastian Gniazdowski 28c0b21ffe *autoload: Use correct argument for zle -N 2019-08-10 18:19:49 +02:00
Sebastian Gniazdowski ffbab1f171 *autoload: Avoid chain-restoring with the same plugin 2019-08-10 18:17:11 +02:00
Sebastian Gniazdowski 789ae17066 *autoload: Add typesetsilent option to -zplg-unload() 2019-08-09 15:07:46 +02:00
Sebastian Gniazdowski 7048ecca90 Updated README.md 2019-08-09 13:40:32 +02:00
Sebastian Gniazdowski 04be05c86b *autoload: Setopt noksharrays 2019-08-09 11:52:24 +02:00
Sebastian Gniazdowski 6496b9cbb3 *autoload: Fix extendedglob issue 2019-08-09 11:25:31 +02:00
Sebastian Gniazdowski b6c9adb825 *autoload: *unload – use correct field 2019-08-09 00:22:35 +02:00
Sebastian Gniazdowski e47d48f62e zplugin,*autoload: Advanced unloading of Zle widgets 2019-08-09 00:13:53 +02:00
Sebastian Gniazdowski fb145d6e82 zplugin,*autoload: Chaining of the widgets to next plugin that uses it 2019-08-08 06:18:56 +02:00
Sebastian Gniazdowski 274e0ef6d3 zplugin: Better Note-message on creation of a new widget, in the report 2019-08-08 06:15:46 +02:00
Sebastian Gniazdowski f4608ade38 *autoload: *-unload – use i.a.: warncreateglobal; declare 2 missing vars 2019-08-08 04:41:19 +02:00
Sebastian Gniazdowski 2532ae83f8 *autoload: Output a short message with name of the plugin being unloaded 2019-08-08 04:08:52 +02:00
Sebastian Gniazdowski aac46e0255 zplugin: Make it easier to hack with Zplugin – remove spaces from eval 2019-08-08 00:17:20 +02:00
Sebastian Gniazdowski fedaeeb2b2 zplugin: Save overridden widgets under a more distinct name 2019-08-07 15:24:38 +02:00
Sebastian Gniazdowski 1353a3a4fa zplugin: Save the to-delete widgets when in dtrace 2019-08-07 15:24:00 +02:00
Sebastian Gniazdowski e74e537553 zplugin: Make a code path common to 2 cases 2019-08-07 15:22:21 +02:00
Sebastian Gniazdowski 2c246846fd .gitignore: Update 2019-08-07 12:18:29 +02:00
Sebastian Gniazdowski cf02de13eb *autoload: Use warncreateglobal with *update-or-status 2019-08-06 21:42:36 +02:00
Sebastian Gniazdowski af1df9c40c
Create FUNDING.yml 2019-08-06 21:12:36 +02:00
Sebastian Gniazdowski 6be522ecef *install: Use warncreateglobal in all functions 2019-08-05 12:12:04 +02:00
Sebastian Gniazdowski 2de29c9c3c deploy: Correctly handle the Makefile 2019-08-05 06:35:14 +02:00
Sebastian Gniazdowski 39d1b9dc94 deploy: Recognize Makefile 2019-08-05 06:26:02 +02:00
Sebastian Gniazdowski 69e4e6ce84 Travis: Manually install mailutils 2019-08-05 06:19:00 +02:00
Sebastian Gniazdowski e76bfcd454 *-output.zsh: Filled, regular progress bar, with colors 2019-08-05 06:11:20 +02:00
Sebastian Gniazdowski 2aa0dd2612 zplugin,*autoload: Remove most of the global variables 2019-08-04 19:30:11 +02:00
Sebastian Gniazdowski bbb067c9c0 *autoload: Don't pull submodules if there's no git repository 2019-08-04 16:02:24 +02:00
Sebastian Gniazdowski 5bbbf6b5c5 zplugin: Allow diffing multiple times 2019-08-04 11:38:49 +02:00
Sebastian Gniazdowski 69aca3a893 zplugin: -zplg-diff function 2019-08-04 11:35:28 +02:00
Sebastian Gniazdowski 980363f557 zplugin: Cleanup comments 2019-08-02 21:19:08 +02:00
Sebastian Gniazdowski 9c59996c3c zplugin: Prepend a banner message to the report of the tracked function 2019-08-02 21:11:37 +02:00
Sebastian Gniazdowski 8893c07950 zplugin: Prepend ((1)) before sources 2019-08-02 09:28:43 +02:00
Sebastian Gniazdowski 7695311d47 Updated README.md (vim example, restored the new `delete' options) 2019-08-01 20:46:33 +02:00
Sebastian Gniazdowski d76c337774 *autoload: Check if the function to be unset actually exists (to mute..) 2019-07-31 23:50:37 +02:00
Sebastian Gniazdowski 2baf4ffcb1 Updated README.md (/site/... -> /wiki/...) 2019-07-31 23:24:58 +02:00
Sebastian Gniazdowski 62bb0e4209 *autoload: Support the Plugin's Standard *_plugin_unload function 2019-07-31 13:53:11 +02:00
Sebastian Gniazdowski 77caa08e55 Revert "zplugin: Temporarily disable the use of binary module to clarify debug"
This reverts commit 1ddc4a2c69.
2019-07-31 02:02:02 +02:00
Sebastian Gniazdowski fe58dd3f02 zplugin: A local, temporary fix for an outside context setting errreturn 2019-07-31 01:59:58 +02:00
Sebastian Gniazdowski eaf11cb76a zplugin,*autoload: More polite message Warning: -> Note: in zle reports 2019-07-30 23:59:26 +02:00
Sebastian Gniazdowski 0c9be102de zplugin: Don't call `atinit' hooks when *updating* a snippet 2019-07-30 23:57:51 +02:00
Sebastian Gniazdowski c6ca237d35 zplugin,*side,*autoload: `wrap-track' ice: wraps functions with tracking 2019-07-30 23:46:34 +02:00
Sebastian Gniazdowski 778dcd2e8e zplugin: Improve the cooperation with the binary module (compdef shado.) 2019-07-30 22:14:38 +02:00
Sebastian Gniazdowski d47d897de6 zplugin: New method of applying ices, recursive zplugin calls possible 2019-07-30 21:08:13 +02:00
Sebastian Gniazdowski 774b9d2305 zplugin: A much nicer calling of the shadowed builtin 2019-07-30 20:04:38 +02:00
Sebastian Gniazdowski 1ddc4a2c69 zplugin: Temporarily disable the use of binary module to clarify debug 2019-07-30 18:51:24 +02:00
Sebastian Gniazdowski d61987d650 Travis: Use sudo with the apt-get command 2019-07-30 17:27:20 +02:00
Sebastian Gniazdowski b66222e0df Travis: Try manual installation of the zsh package 2019-07-30 17:20:55 +02:00
Sebastian Gniazdowski fd0df75f18 Travis: Try with an empty before_script to see if zsh will be installed 2019-07-30 16:52:07 +02:00
Sebastian Gniazdowski 8e38301493 Travis: Install zsh 2019-07-30 16:01:33 +02:00
Sebastian Gniazdowski c052b6d8aa Travis: Use the newest available distribution Bionic 18.04 2019-07-30 15:58:07 +02:00
Sebastian Gniazdowski ea64a72cc7 deploy: Change the `mail' invocation to not use the option -c 2019-07-30 15:52:01 +02:00
Robert Audi f0ec5f5939 Make the "News" section of the README collapsible 2019-07-30 15:47:41 +02:00
Sebastian Gniazdowski 5c5194e3cb *autoload,README: Information on --all & --clean `delete' options 2019-07-29 17:20:29 +02:00
Sebastian Gniazdowski 76fb147c2c deploy: Recognize the wiki/ directory 2019-07-28 22:52:36 +02:00
Sebastian Gniazdowski dba24b1e1a deploy: Recognize highlight/ directory 2019-07-28 22:31:39 +02:00
Sebastian Gniazdowski 6925150fd5 zplugin: Handle ksharrays after the command calling code changes 2019-07-28 19:36:03 +02:00
Sebastian Gniazdowski 28f0298373 Updated README.md 2019-07-28 18:45:08 +02:00
Sebastian Gniazdowski ab0bd48431 deploy: Send the confirmation email also to @zdharma.org 2019-07-28 17:48:52 +02:00
Sebastian Gniazdowski b1f1ecb93f Travis,deploy: Recognize .gitignore. Send a confirmation email 2019-07-28 17:46:36 +02:00
Sebastian Gniazdowski 41a1359a47 zplugin: Make the scheduler invocation to not change $_
Issue #155
2019-07-24 08:30:36 +02:00
Sebastian Gniazdowski 78892a8749 deploy_doc.sh: Add mkdocs site/ subdirectory to recognized ones 2019-07-22 07:10:29 +02:00
Sebastian Gniazdowski 2c9fc1577b img: update update.png 2019-07-21 17:20:02 +02:00
Sebastian Gniazdowski a7b270717d img: update.png 2019-07-21 17:14:49 +02:00
Sebastian Gniazdowski ef522982f1 Updated README.md from DundarGoc/zplugin_readme with slight changes 2019-07-20 22:57:24 +02:00
Sebastian Gniazdowski 41afa4e10e *autoload: Handle DL_EXT inconsistencies by copying zplugin.{so,bundle}
Issue #131
2019-07-20 15:37:46 +02:00
Sebastian Gniazdowski 589e458844 Updated GALLERY.md 2019-07-20 15:28:42 +02:00
Sebastian Gniazdowski c7236b052d zplugin: Use correct zstyle to inform Prezto about the compdef function 2019-07-20 15:24:47 +02:00
Sebastian Gniazdowski 7e13b8a572 zplugin: Inform Prezto that the compdef function is available 2019-07-20 15:18:16 +02:00
Sebastian Gniazdowski d75fc2bbed *autoload: Support updating submodules 2019-07-17 18:17:23 +02:00
Sebastian Gniazdowski 10568f6f07 Updated README.md 2019-07-15 08:04:19 +02:00
Sebastian Gniazdowski d3adb744d1 Updated README.md 2019-07-15 08:02:12 +02:00
Sebastian Gniazdowski 7afae27990 Updated README.md (from DundarGoc/zplugin_readme) 2019-07-15 05:46:33 +02:00
Sebastian Gniazdowski cf3689a8c2 zplugin,*autoload: Standard change: LOADED_PLUGINS -> zsh_loaded_plugins 2019-07-13 15:25:26 +02:00
Sebastian Gniazdowski a8ea52fbae module(*autoload); Trap INT so that Ctrl-C doesn't interrupt any script 2019-07-13 11:25:03 +02:00
Sebastian Gniazdowski bfe907cdaf zplugin: Handle empty wait'' ice at if-show "already registered" warn 2019-07-13 09:24:12 +02:00
Sebastian Gniazdowski c796378dda *install,*autoload: z-plugins – fix atpull & hooks cooperation 2019-07-13 06:56:33 +02:00
Sebastian Gniazdowski 9eff35b346 zplugin: read -u -> read -r -u in *deploy-message 2019-07-13 04:13:03 +02:00
Sebastian Gniazdowski 9340f150b5 Updated README.md from DundarGoc/zplugin_readme 2019-07-12 20:23:26 +02:00
Sebastian Gniazdowski 4222342ceb *autoload: `delete' gains --all & --clean options (plugin/snippet prune)
Issue #41
2019-07-12 13:03:49 +02:00
Sebastian Gniazdowski 7b9b67c49d zplugin: Store the resolved id-as not the url in the ZPLG_SNIPPETS hash 2019-07-12 13:01:52 +02:00
Sebastian Gniazdowski f0f1aad445 zplugin: Move option map above case and rename it to `opt_map'. New opts 2019-07-12 11:52:59 +02:00
Sebastian Gniazdowski 10cc1b7f95 zplugin: Store the URL not the filename in ZPLG_SNIPPETS 2019-07-12 11:48:05 +02:00
Sebastian Gniazdowski 3a33e72f45 *autoload: -zplg-confirm is now testable 2019-07-12 11:43:31 +02:00
Sebastian Gniazdowski d82ae29ecf *install: Fix bug where first load of snippet after downloading failed 2019-07-12 11:42:24 +02:00
Sebastian Gniazdowski d5bcf3c46d zplugin: Pass all $@ arguments to the *autoload.zsh functions 2019-07-12 09:47:10 +02:00
Sebastian Gniazdowski 82091b4214 module: No error message when script is unreadable unless *_MOD_DEBUG=1 2019-07-12 09:43:06 +02:00
Sebastian Gniazdowski d6b230d7da *-output.zsh: Simpler progress bar & shorter acronyms 2019-07-12 08:21:10 +02:00
Sebastian Gniazdowski f47b8cc75f zplugin: One line of initialization code less 2019-07-12 07:59:58 +02:00
Sebastian Gniazdowski b01ffffbb4 zplugin: Remove check for SERVICES_DIR, it has been there long enough 2019-07-11 00:50:52 +02:00
Sebastian Gniazdowski 50736548ef zplugin,*adoc: Update function comments and the code documentation 2019-07-11 00:49:55 +02:00
Sebastian Gniazdowski b2307397a4 Updated doc/INTRODUCTION.adoc 2019-07-10 22:12:06 +02:00
Ben Klein e74270ab5d Update README.md
Just updated the link since I changed the dockerfile awhile ago and didn't notice it got linked here.
2019-07-10 16:15:20 +02:00
Sebastian Gniazdowski 00b71bb86b Travis: deploy the PDFs before running the tests 2019-07-10 00:37:54 +02:00
Sebastian Gniazdowski 8536f22807 Update code documentation 2019-07-10 00:36:58 +02:00
Sebastian Gniazdowski 3dd5cc4ef6 Updated README.md 2019-07-10 00:28:00 +02:00
Sebastian Gniazdowski 1c7a207f33 Updated doc/INTRODUCTION.adoc 2019-07-10 00:27:33 +02:00
Sebastian Gniazdowski 1171a221bf Updated doc/INTRODUCTION.adoc 2019-07-10 00:24:27 +02:00
Sebastian Gniazdowski 0d8ddbf03d Updated doc/INTRODUCTION.adoc 2019-07-10 00:21:58 +02:00
Sebastian Gniazdowski af69499d8c Updated README.md (an uplift) 2019-07-09 23:47:09 +02:00
Sebastian Gniazdowski fe98efc148 Updated README.md 2019-07-09 23:28:07 +02:00
Sebastian Gniazdowski 803e8c54e4 Updated doc/Z-PLUGINS.adoc 2019-07-09 23:23:24 +02:00
Sebastian Gniazdowski 657fadb9dd Updated README.md (from DundarGoc/zplugin_readme) 2019-07-09 23:20:51 +02:00
Sebastian Gniazdowski afaec73bd8 *autoload: Use green not red for the "Note" message when update --all 2019-07-09 18:18:49 +02:00
Sebastian Gniazdowski 9f7100446d *autoload.zsh: Use word "Note" not "Warning" when update --all 2019-07-09 18:15:38 +02:00
Sebastian Gniazdowski ecc67ed572 *autoload: Remove zwc-s before compiling Zplugin (during self-update) 2019-07-09 15:30:08 +02:00
Sebastian Gniazdowski 9a0644957a Updated README.md 2019-07-09 07:32:46 +02:00
Sebastian Gniazdowski 179cb1c601 Updated doc/Z-PLUGINS.adoc 2019-07-09 07:18:09 +02:00
Sebastian Gniazdowski 1a73702e46 doc/Z-PLUGINS.adoc 2019-07-09 06:35:29 +02:00
Sebastian Gniazdowski 94431eb6f5 Revert "*install: A more general condition"
This reverts commit ec704029f9.
2019-07-09 05:44:30 +02:00
Sebastian Gniazdowski cbfd3e6f13 INSTALLATION.adoc: Update the document version so that it's correct 2019-07-09 05:11:10 +02:00
Sebastian Gniazdowski e1b58757fc *install,*autoload: z-plugins – a new hook %atpull – always ran atpull 2019-07-09 05:02:47 +02:00
Sebastian Gniazdowski f7e7043a91 *autoload: Set the ZPLG_ICE array before calling hooks 2019-07-09 03:28:21 +02:00
Sebastian Gniazdowski b07a6e1fcc zplugin,*install: Hooks now receive plugin/snippet path in last argument 2019-07-09 03:27:02 +02:00
Sebastian Gniazdowski f225ba74ff zplugin,*side,*autoload: z-plugins – ice'' <-> value-ice; new ice_order
ice_order arrays now hold the ice-mods from ZPLG_EXTS
2019-07-09 03:10:33 +02:00
Sebastian Gniazdowski de422382f8 Upadted README.md 2019-07-08 16:58:28 +02:00
Sebastian Gniazdowski 868cc07648 Updated README.md 2019-07-08 16:54:35 +02:00
Sebastian Gniazdowski c3b94940c1 zplugin: Update the message about a command needeing an argument 2019-07-08 16:51:38 +02:00
Sebastian Gniazdowski ddebeebec4 zplugin: `snippet' with no arguments now displays a warning message 2019-07-08 16:49:50 +02:00
Sebastian Gniazdowski 2cf21f8c5f zplugin; An empty wait'' ice, i.e. wait alone now works as wait'0' :)
The same for wait'!' -> wait'!0'.
2019-07-08 16:46:43 +02:00
Sebastian Gniazdowski 7fb843bcf2 *autoload: A better protection of rm -rf 2019-07-06 21:03:51 +02:00
Sebastian Gniazdowski 2d068644e6 Add CHANGELOG.md 2019-07-06 20:10:05 +02:00
Sebastian Gniazdowski 5151e7d96b Updated README.md from DundarGoc/zplugin_readme + small help text update 2019-07-06 15:26:44 +02:00
Sebastian Gniazdowski dd51c6e960 *autoload: z-plugins – support for atpull hooks in plugins 2019-07-05 22:22:47 +02:00
Sebastian Gniazdowski a05ba5a3af *autoload: Remove a debug message 2019-07-05 21:36:27 +02:00
Sebastian Gniazdowski 0697b2d6ed *autoload: Fix various bugs where ZPLG_ICE was being used instead of ice 2019-07-05 21:23:13 +02:00
Sebastian Gniazdowski 1cecd8c0f6 *install: z-plugins – atpull hooks for snippets & general atclone hooks 2019-07-05 20:27:45 +02:00
Sebastian Gniazdowski 9af0b61b33 *install: Fix 361e4b2 – current directory restoration to atpull/atclone
TODO: the plugin's atpull hooks aren't ran from the same subshell as
361e4b2 promises.
2019-07-05 18:48:32 +02:00
Sebastian Gniazdowski 1ace9ae243 zplugin,*autoload: z-plugins – hook:-type (atinit,atload); adding ices
Performance status (testp2): 1.091 sec -> 1.138 sec
2019-07-05 11:02:13 +02:00
Sebastian Gniazdowski bd9e663b6f zplugin: Add -n in an condition, for zsh-5.0.2 and earlier 2019-07-05 09:12:51 +02:00
Sebastian Gniazdowski 45ee1b2f38 zplugin,*autoload: z-plugins – use a new hash ZPLG_EXTS instead of ZPLGM 2019-07-05 08:15:51 +02:00
Sebastian Gniazdowski bca121bd01 zplugin,*autoload: Small uplift 2019-07-05 08:14:47 +02:00
Sebastian Gniazdowski 254eb46bb5 zplugin,*autoload: Second version of the z-plugins – gone bad design 2019-07-05 07:29:48 +02:00
Sebastian Gniazdowski 3374f4166d zplugin,*autoload: Initial version of the z-plugins – zplugin extensions 2019-07-05 06:54:27 +02:00
Sebastian Gniazdowski 8e8d7fc488 zplugin: Make the `zplugin' command/function testable. Shorten code 2019-07-05 06:07:42 +02:00
Sebastian Gniazdowski b7174a8dd7 Updated GALLERY.md 2019-07-05 02:55:36 +02:00
Sebastian Gniazdowski 615598557e Updated README.md from https://github.com/DundarGoc/zplugin_readme
Issue #88
2019-07-04 20:32:11 +02:00
Sebastian Gniazdowski 7fff6f3a1b zplugin: Better support for LOADED_PLUGINS array (the plugin standard) 2019-07-04 20:16:50 +02:00
Sebastian Gniazdowski 33180d5167 Updated README.md 2019-07-02 01:41:37 +02:00
Sebastian Gniazdowski af3270d4f1 zplugin: Register snippet after the cloneonly ice-mod has been evaluated 2019-07-02 01:37:19 +02:00
Sebastian Gniazdowski 9045bb70c0 Updated README.md 2019-07-02 01:35:57 +02:00
Sebastian Gniazdowski 61b4ff29a5 *autoload: Properly align a line in the help message 2019-07-01 14:26:59 +02:00
Sebastian Gniazdowski df88469ffb *install: Add support for cygwin to the from'gh-r' ice
Issue #138
2019-07-01 13:47:41 +02:00
Sebastian Gniazdowski a349c13c6c *install: More soophisticated auto-binary matching (for gh-r)
Issue #138
2019-07-01 13:43:24 +02:00
Sebastian Gniazdowski 05d66926ef Updated README.md 2019-07-01 12:43:53 +02:00
Sebastian Gniazdowski ec704029f9 *install: A more general condition 2019-07-01 12:41:10 +02:00
Sebastian Gniazdowski f3f322e19c *install: Protect against possible negative return value leak-out 2019-07-01 12:38:50 +02:00
Sebastian Gniazdowski 361e4b2688 *install: Run atclone'' & make'' within the same subshell 2019-07-01 12:36:11 +02:00
Sebastian Gniazdowski 278f5d3347 Updated GALLERY.md 2019-06-29 18:42:24 +02:00
Sebastian Gniazdowski a70af5326f *install: Output a newline before the "Downloading …" message 2019-06-27 07:49:25 +02:00
Sebastian Gniazdowski f8a57295e0 zplugin: make the services accept commands case-insensitively 2019-06-26 20:55:39 +02:00
Sebastian Gniazdowski 35645799f2 zplugin: notify'' gets evaluated, i.e. can contain active code like $() 2019-06-26 14:49:55 +02:00
Sebastian Gniazdowski 5488516186 *autoload: `create': output Zsh Plugin Standard URL and the $0 handling
Also copy MIT license and prefill README.md with a header.
2019-06-24 21:32:56 +02:00
Sebastian Gniazdowski 8afeacaa65 *autoload: `self-update' compiles also git-process-output.zsh 2019-06-24 17:04:52 +02:00
Sebastian Gniazdowski 53a1df1de7 Travis: on_failure irc-message -> on change 2019-06-24 12:51:52 +02:00
Sebastian Gniazdowski 8055eac076 Updated GALLERY.md 2019-06-24 12:45:23 +02:00
Sebastian Gniazdowski 41d061c6ed Updated README.md 2019-06-23 17:11:32 +02:00
Sebastian Gniazdowski 0b0bd193ff zplugin,README: Updated README.md, enabled subscribe for snippets 2019-06-23 17:09:45 +02:00
Sebastian Gniazdowski 1470f52e9e zplugin,*autoload,README: New ice mod on-update-of'/subscribe' 2019-06-23 16:47:39 +02:00
Sebastian Gniazdowski 84a90ebd0e zplugin: Reformat -zplg-ice – break the long line 2019-06-23 13:17:32 +02:00
NICHOLAS85 34d15a2970 Save username to git credentials on successful Github repository creation 2019-06-23 10:56:22 +02:00
Sebastian Gniazdowski d5025dd69e README,*autoload: Add `reset-prompt' to the help message 2019-06-23 01:21:35 +02:00
Sebastian Gniazdowski f79a60553b Updated README.md 2019-06-23 01:17:37 +02:00
Sebastian Gniazdowski c6e2e32194 zplugin,README: New ice-mod reset-prompt which resets the prompt after
loading the plugin/snippet. Useful for loading themes.
2019-06-23 01:10:21 +02:00
Sebastian Gniazdowski deb02859a4 Updated README.md 2019-06-23 00:05:11 +02:00
Sebastian Gniazdowski 7b67577574 Updated README.md 2019-06-23 00:01:45 +02:00
Sebastian Gniazdowski bdbdc5e918 zplugin: zpcdclear 2019-06-22 23:57:42 +02:00
Sebastian Gniazdowski 2c0f8d71e5 Updated README.md 2019-06-22 23:14:39 +02:00
Sebastian Gniazdowski 59c426f71b zplugin: Remove debug messages from -zplg-deploy-message 2019-06-22 19:09:54 +02:00
Sebastian Gniazdowski 682d05e4b2 zplugin: Immunize to widgets starting with a dash (-*) 2019-06-22 19:00:22 +02:00
Sebastian Gniazdowski 581910c9fe zplugin,*side,*autoload,README: New ice notify'' – it displays a message
or a warning under prompt after successful/unsuccessful plugin/snippet load.
2019-06-22 18:57:58 +02:00
Sebastian Gniazdowski 0630a405a7 zplugin,*autoload: Handle the update' case where ice' is preceding
You can always update ice-mods of a plugin/snippet this way.
2019-06-22 14:03:50 +02:00
Sebastian Gniazdowski 7dfceea108 zplugin,*autoload: Fix overall improper empty plugin / user handling 2019-06-22 12:31:21 +02:00
Sebastian Gniazdowski fa26e1c555 zplugin: Fix the scheduler (bug introduced after fixing #135) #143 2019-06-21 15:46:07 +02:00
Sebastian Gniazdowski 3406baca83 *autoload: Fix snippet-update with ice-mods not containing teleid 2019-06-20 14:06:02 +02:00
Sebastian Gniazdowski 2e9c7e1bbd *autoload: Correctly display absolute-path plugins in `zplg times' 2019-06-20 12:19:41 +02:00
Sebastian Gniazdowski 92a443e5cc zplugin,*autoload: `times' subcommand displays time in MILLISECONDS :) 2019-06-20 12:11:56 +02:00
Sebastian Gniazdowski aaadea26ec *install: Git clone – set (transfer|receive|fetch).fsckobjects to false 2019-06-20 12:00:17 +02:00
Sebastian Gniazdowski d1ad7a61de *autoload,README: Uplift the usage message 2019-06-20 10:54:05 +02:00
Sebastian Gniazdowski 7e209343fe _zplugin: Update the completion 2019-06-20 00:27:20 +02:00
Sebastian Gniazdowski f9eea91f21 *autoload: Restore the lost is_release pseudo ice-mod into processing
Issue #141
2019-06-19 23:23:02 +02:00
Sebastian Gniazdowski 8aef3d2807 zplugin,*side,*install,*autoload,README: New ice-mod `run-atpull'
which makes the atpull'' ice-mod to be always ran.

Issue #141
2019-06-19 22:52:11 +02:00
Sebastian Gniazdowski 9c66bc0a7c *side,*install,*autoload: Use $ice_order[@] everywhere. Update it
All tests will fail after this change.
2019-06-19 22:47:29 +02:00
Sebastian Gniazdowski 8b50d2a5b4 *install: More complex compile''-message – color on file extension and ,
(i.e. on the period that separates the listed files).
2019-06-19 02:24:15 +02:00
Sebastian Gniazdowski ca7bc04f53 *install: Output a message about compile''-chosen compiled files 2019-06-19 02:06:40 +02:00
Sebastian Gniazdowski 99047f1cee *install,*autoload: Fix make'!!' handling 2019-06-17 03:10:59 +02:00
Sebastian Gniazdowski c14e096a7b Updated README.md, GALLERY.md 2019-06-17 02:25:05 +02:00
Sebastian Gniazdowski c69534f201 zplugin,README: New ice-mod `cloneonly' 2019-06-09 19:01:52 +02:00
Sebastian Gniazdowski 5551ede84c Updated GALLERY.md 2019-06-09 18:57:14 +02:00
Sebastian Gniazdowski 9886cf1a71 *autoload: Final tweaks to the "Skipping local plugin" message 2019-06-09 18:56:54 +02:00
Sebastian Gniazdowski ece32a58b7 *autoload: Final tweaks to the "Skipping local plugin" message 2019-06-09 18:31:27 +02:00
Sebastian Gniazdowski 98d17954e9 *autoload: Emit specific "Skipping local plugin" for updating _local/*-s 2019-06-09 18:28:47 +02:00
Sebastian Gniazdowski 722055adb3 zplugin: Fix -zplg-load's return value on unsuccessful clone etc. 2019-06-09 18:11:17 +02:00
Sebastian Gniazdowski c8ec6f69e4 zplugin: from'gh-r' – also match "amd64" arch when OSTYPE is "x86_64"
Issue #138
2019-06-06 20:24:19 +02:00
Sebastian Gniazdowski 3d1ff6d951 zplugin: Instant wait'0' turbo-mode, i.e. no `sleep 0.01' 2019-06-06 17:53:27 +02:00
Sebastian Gniazdowski 20291a9f04 Updated READMe.md #102 2019-06-02 18:27:29 +02:00
Sebastian Gniazdowski af2972ec20 Updated README.md 2019-06-02 15:34:06 +02:00
Sebastian Gniazdowski ba2079207d Updated README.md 2019-06-02 00:57:40 +02:00
Sebastian Gniazdowski 07dc4c8c56 Updated README.md 2019-06-02 00:54:59 +02:00
Sebastian Gniazdowski 20146314b1 zplugin: Unify null-pick'' ice value – /dev/null also for snippets. Up
to this moment plugins used /dev/null, while snippets used empty-value.
2019-06-02 00:44:18 +02:00
Sebastian Gniazdowski 8488f48a34 module: Mute write warnings for zwc files, unless $ZPLG_MOD_DEBUG == 1
Issue #104, #118
2019-06-02 00:27:06 +02:00
Sebastian Gniazdowski 2c4ebce03a zplugin: Fix zpcompinit – use `-Uz' options for safety from aliases
Issue #7
2019-06-01 01:48:09 +02:00
Sebastian Gniazdowski 03740f94c9 zplugin: Fix the bug #135 – inability to use periods (,) within //-subst
The bug occurs on zsh <= 5.3.1. The bug is that use of the period (,) is
impossible inside ${parameter//$arr[$(( ... ))]}.
2019-05-31 23:16:34 +02:00
Sebastian Gniazdowski 18ca4ea225 zplugin: A second try to hunt down a bug #135 2019-05-31 07:53:44 +02:00
Sebastian Gniazdowski 7f85a6916e zplugin.zsh: A first try to hunt down a bug #135 2019-05-30 08:17:00 +02:00
Sebastian Gniazdowski e5e0a70ca7 Updated README.md
Issue #134.
2019-05-30 02:14:51 +02:00
Sebastian Gniazdowski e08656d08f zplugin: New feature: a, b or c suffix to wait'' argument denotes order
One can issue 2 zplugin commands, like:

zplugin ice as"command" pick"wd.sh" atinit"echo Fireing 1" wait"0b" lucid
zplugin light mfaerevaag/wd
zplugin ice as"command" pick"wd.sh" atinit"echo Fireing 2" wait"0a" lucid
zplugin light mfaerevaag/wd

and have the second one ran before the first one, all in slot 0.

Issue #134.
2019-05-29 16:38:26 +02:00
Sebastian Gniazdowski a7e9d81ca2 *-autoload: Remove Y1 globbing flag for older Zsh 2019-05-29 13:11:45 +02:00
Sebastian Gniazdowski 5ba17ea225 Travis: irc notifcations – skip_join -> true 2019-05-27 23:14:50 +02:00
Sebastian Gniazdowski 931d62f0b4 *-autoload,README: Mention the new ice-mod has''
Issue #122
2019-05-27 21:59:05 +02:00
Sebastian Gniazdowski 2dfe25f0d1 zplugin: New ice-mod has'' - works the same as if'(( $+commands[X] ))'
Issue #122
2019-05-27 21:51:56 +02:00
Sebastian Gniazdowski 6714ebc1a2 Updated README.md
Issue #134.
2019-05-26 19:11:44 +02:00
Sebastian Gniazdowski 50c1a2c566 zplugin: The wait'X' events from the same time slot X are now divided
into separate runs, the prompt will be active between them. Inspired
by #134.
2019-05-25 21:50:13 +02:00
Sebastian Gniazdowski 2aa5eb4dc1 Updated GALLERY.md: mfaerevaag/wd - mv _wd.sh -> _wd, atpull !git reset
--hard. Issue #126
2019-05-25 19:42:42 +02:00
Shayne Holmes 7a21d4eb9f Fix variable scoping around changing directories (#133)
Some of the changes in ef3f155ab1, adding `nocd`, resulted in incorrect
curly braces. Fix it by moving the closing brace to the end of the line.

Fixes #132.
2019-05-25 01:22:15 +02:00
Sebastian Gniazdowski ef750c194e Updated INTRODUCTION.adoc 2019-05-19 02:14:34 +02:00
Sebastian Gniazdowski 0fdfe4c383 Only show the unloaded snippets warning when it applies
Issue #125
2019-05-19 01:04:04 +02:00
Sebastian Gniazdowski 17fe760e4f zplugin: Fix an error where `local -a fpath' is used
Issue #127
2019-05-19 00:41:54 +02:00
Sebastian Gniazdowski 95a0a10596 Travis: Try a higher Ruby version 2.4 (instead of 2.2) 2019-05-18 23:55:05 +02:00
Sebastian Gniazdowski 89d61268d1 Revert "Travis: Install a stable asciidoctor version (I.e. remove --pre option)"
This reverts commit 19e03fd1e2.
2019-05-18 21:21:43 +02:00
Sebastian Gniazdowski 19e03fd1e2 Travis: Install a stable asciidoctor version (I.e. remove --pre option) 2019-05-18 21:18:40 +02:00
Sebastian Gniazdowski c3c7ee8b81 Updated README.md
Issue #116
2019-05-18 19:07:18 +02:00
Sebastian Gniazdowski ef3f155ab1 Ice-mod `nocd' to run atinit'',atload'',etc. without cd to plugins dir
Issue #116
2019-05-17 01:01:05 +02:00
Sebastian Gniazdowski 1861ff81ed Reddit: user wants to load OMZ::plugins/osx without a warning message
https://www.reddit.com/r/zplugin/comments/ahpddw/how_to_load_an_ohmyzsh_plugin_from_a_folder/

This commit changes the symlink to a relative one, so that tests can
work correctly
2019-04-20 16:51:18 +02:00
Gianluca Recchia 958150b8de Fix typo in README.md (#123) 2019-04-12 13:15:43 +02:00
Tobias Sette 7470869056 fix: typo (#121) 2019-04-04 12:55:22 +02:00
Ben Klein 42571576e0 GALLERY.md: P10K->ZINC (#117)
Renamed the project, added support for loading optional dependencies in turbo mode.
2019-03-19 16:36:54 +01:00
Sebastian Gniazdowski d5e0ac3a59 zplugin: Fix the ice-mods-breaking 34d13c3 commit
Issues #113, #114, #115
2019-03-19 02:28:46 +01:00
Sebastian Gniazdowski 5c8863191e The 2 commits above are for issue #89, not for #98 2019-03-18 07:34:53 +01:00
Sebastian Gniazdowski a78246538a *autoload: Regular git plugins + releases now support -r/--reset option
Issue #89
2019-03-18 07:29:30 +01:00
Sebastian Gniazdowski 137e70a255 Performance status 03/18/2019
zsh-5.7, make testp1
num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1) 2800        1023.19     0.37   24.27%    935.76     0.33   22.19%  --zplg-shadow-bindkey
 2)  200        4051.02    20.26   96.08%    716.11     3.58   16.99%  -zplg-load-plugin
 3) 2000         468.66     0.23   11.12%    404.70     0.20    9.60%  --zplg-shadow-zle
 4) 10400         331.88     0.03    7.87%    331.88     0.03    7.87%  -zplg-add-report
 5)  600         382.71     0.64    9.08%    310.14     0.52    7.36%  --zplg-shadow-alias
 6) 1400         349.19     0.25    8.28%    304.79     0.22    7.23%  --zplg-shadow-zstyle
 7)  400         256.43     0.64    6.08%    256.43     0.64    6.08%  -zplg-diff-parameter
 8) 1000         300.07     0.30    7.12%    243.01     0.24    5.76%  --zplg-shadow-autoload
 9) 2800        1113.84     0.40   26.42%     90.65     0.03    2.15%  bindkey
10)  200        4169.43    20.85   98.89%     65.21     0.33    1.55%  -zplg-load
11) 2000         533.55     0.27   12.65%     64.89     0.03    1.54%  zle
12)  400          62.64     0.16    1.49%     62.64     0.16    1.49%  -zplg-diff-functions
13) 1400         395.33     0.28    9.38%     46.14     0.03    1.09%  zstyle
14)  400          45.14     0.11    1.07%     45.14     0.11    1.07%  -zplg-diff-options
15)  200         247.90     1.24    5.88%     43.26     0.22    1.03%  select-word-style
16)  200        4210.76    21.05   99.87%     41.34     0.21    0.98%  zplugin
17)  200          91.64     0.46    2.17%     40.23     0.20    0.95%  add-zsh-hook
18)  400          39.96     0.10    0.95%     39.96     0.10    0.95%  -zplg-diff-env
19) 1000         333.51     0.33    7.91%     33.44     0.03    0.79%  autoload
20)  200          33.19     0.17    0.79%     33.19     0.17    0.79%  -zplg-shadow-on
21)  200          30.56     0.15    0.72%     30.56     0.15    0.72%  -zplg-register-plugin
22)  200          28.14     0.14    0.67%     28.14     0.14    0.67%  -zplg-shadow-off
23)  600         403.23     0.67    9.56%     20.52     0.03    0.49%  alias
24)  200          13.18     0.07    0.31%     13.18     0.07    0.31%  -zplg-any-to-user-plugin
25)  200           9.46     0.05    0.22%      9.46     0.05    0.22%  -zplg-pack-ice
26)    1        4216.16  4216.16  100.00%      5.39     5.39    0.13%  (anon)

-----------------------------------------------------------------------------------

Measured time: 4.216

zsh-5.7, make testp2
num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1)  200        1188.10     5.94   67.94%    687.20     3.44   39.30%  -zplg-load-plugin
 2)  200        1700.07     8.50   97.21%    458.79     2.29   26.23%  -zplg-load
 3) 1000         338.61     0.34   19.36%    273.24     0.27   15.62%  --zplg-shadow-autoload
 4) 2000          73.15     0.04    4.18%     73.15     0.04    4.18%  -zplg-add-report
 5)  200          99.29     0.50    5.68%     44.88     0.22    2.57%  add-zsh-hook
 6)  200        1743.27     8.72   99.68%     43.20     0.22    2.47%  zplugin
 7) 1000         374.41     0.37   21.41%     35.80     0.04    2.05%  autoload
 8)  200          34.22     0.17    1.96%     34.22     0.17    1.96%  select-word-style
 9)  200          30.14     0.15    1.72%     30.14     0.15    1.72%  -zplg-register-plugin
10)  200          19.96     0.10    1.14%     19.96     0.10    1.14%  -zplg-shadow-on
11)  200          19.65     0.10    1.12%     19.65     0.10    1.12%  -zplg-shadow-off
12)  200          13.42     0.07    0.77%     13.42     0.07    0.77%  -zplg-any-to-user-plugin
13)  200           9.62     0.05    0.55%      9.62     0.05    0.55%  -zplg-pack-ice
14)    1        1748.82  1748.82  100.00%      5.55     5.55    0.32%  (anon)

-----------------------------------------------------------------------------------

14)    1        1748.82  1748.82  100.00%      5.55     5.55    0.32%  (anon)
     200/200    1743.27     8.72   99.68%     43.20     0.22             zplugin [6]

Measured time: 1.749

zsh 5.3 (x86_64-apple-darwin17.0), make testp2

num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1)  200        5404.32    27.02   96.68%   2095.46    10.48   37.49%  -zplg-load-plugin
 2) 2800         999.54     0.36   17.88%    909.25     0.32   16.27%  --zplg-shadow-bindkey
 3) 2000         461.51     0.23    8.26%    394.55     0.20    7.06%  --zplg-shadow-zle
 4) 10400         340.18     0.03    6.09%    340.18     0.03    6.09%  -zplg-add-report
 5) 1400         345.31     0.25    6.18%    299.86     0.21    5.36%  --zplg-shadow-zstyle
 6)  600         364.22     0.61    6.52%    293.84     0.49    5.26%  --zplg-shadow-alias
 7)  400         269.34     0.67    4.82%    269.34     0.67    4.82%  -zplg-diff-parameter
 8) 1000         301.34     0.30    5.39%    241.24     0.24    4.32%  --zplg-shadow-autoload
 9) 2800        1091.02     0.39   19.52%     91.48     0.03    1.64%  bindkey
10)  200        5543.26    27.72   99.16%     85.65     0.43    1.53%  -zplg-load
11)  400          67.73     0.17    1.21%     67.73     0.17    1.21%  -zplg-diff-functions
12) 2000         527.51     0.26    9.44%     66.00     0.03    1.18%  zle
13)  400          47.61     0.12    0.85%     47.61     0.12    0.85%  -zplg-diff-options
14)  200         255.17     1.28    4.56%     44.01     0.22    0.79%  select-word-style
15) 1400         389.19     0.28    6.96%     43.88     0.03    0.78%  zstyle
16)  400          42.79     0.11    0.77%     42.79     0.11    0.77%  -zplg-diff-env
17)  200        5584.42    27.92   99.90%     41.17     0.21    0.74%  zplugin
18)  200          88.39     0.44    1.58%     39.50     0.20    0.71%  add-zsh-hook
19)  200          35.75     0.18    0.64%     35.75     0.18    0.64%  -zplg-shadow-on
20) 1000         334.79     0.33    5.99%     33.45     0.03    0.60%  autoload
21)  200          31.02     0.16    0.55%     31.02     0.16    0.55%  -zplg-register-plugin
22)  200          28.91     0.14    0.52%     28.91     0.14    0.52%  -zplg-shadow-off
23)  600         383.72     0.64    6.86%     19.50     0.03    0.35%  alias
24)  200          12.75     0.06    0.23%     12.75     0.06    0.23%  -zplg-any-to-user-plugin
25)  200           9.51     0.05    0.17%      9.51     0.05    0.17%  -zplg-pack-ice
26)    1        5590.12  5590.12  100.00%      5.70     5.70    0.10%  (anon)

-----------------------------------------------------------------------------------

Measured time: 5.590

zsh 5.3 (x86_64-apple-darwin17.0), make testp2

num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1)  200        2417.69    12.09   93.38%   1958.51     9.79   75.65%  -zplg-load-plugin
 2) 1000         307.83     0.31   11.89%    243.88     0.24    9.42%  --zplg-shadow-autoload
 3) 2000          70.97     0.04    2.74%     70.97     0.04    2.74%  -zplg-add-report
 4)  200        2541.64    12.71   98.17%     70.58     0.35    2.73%  -zplg-load
 5)  200        2583.02    12.92   99.77%     41.38     0.21    1.60%  zplugin
 6)  200          92.37     0.46    3.57%     41.08     0.21    1.59%  add-zsh-hook
 7) 1000         341.26     0.34   13.18%     33.43     0.03    1.29%  autoload
 8)  200          31.60     0.16    1.22%     31.60     0.16    1.22%  select-word-style
 9)  200          30.59     0.15    1.18%     30.59     0.15    1.18%  -zplg-register-plugin
10)  200          19.17     0.10    0.74%     19.17     0.10    0.74%  -zplg-shadow-off
11)  200          19.04     0.10    0.74%     19.04     0.10    0.74%  -zplg-shadow-on
12)  200          13.12     0.07    0.51%     13.12     0.07    0.51%  -zplg-any-to-user-plugin
13)  200           9.65     0.05    0.37%      9.65     0.05    0.37%  -zplg-pack-ice
14)    1        2589.01  2589.01  100.00%      5.99     5.99    0.23%  (anon)

-----------------------------------------------------------------------------------

14)    1        2589.01  2589.01  100.00%      5.99     5.99    0.23%  (anon)
     200/200    2583.02    12.92   99.77%     41.38     0.21             zplugin [5]

Measured time: 2.589
2019-03-18 06:09:42 +01:00
Sebastian Gniazdowski 34d13c3762 zplugin,*install,*autoload: New engine and new option -f/--force for
the `update' sub-command. This commit contains support for snippets.

Issue #98
2019-03-18 06:01:36 +01:00
Sebastian Gniazdowski 36e5e103e9 *autoload: Mute the 'wait $pid' invocation 2019-03-17 04:25:08 +01:00
Sebastian Gniazdowski ecb0b4377e Updated INSTALLATION.adoc: Fix the link to README.md / Customizing Paths 2019-03-13 07:19:41 +01:00
Alexandros Kozák 6754a19119 Support for systems with termcap or without tput (#111) 2019-03-13 05:37:36 +01:00
Sebastian Gniazdowski b632456c43 install.sh: Follow issue #109: allow outside source of $ZPLG_HOME param 2019-03-12 23:30:52 +01:00
Sebastian Gniazdowski 884b6deda3 *install: Search for "x86_64" instead of "64" when picking a binary
Issue #108
2019-03-12 23:10:00 +01:00
Sebastian Gniazdowski fa14c8a34f README,INSTALLATION: Extract installation description into separate file 2019-03-12 18:43:39 +01:00
Sebastian Gniazdowski 60034b26e0 Makefile: Add `doc' to .PHONY targets 2019-03-12 18:39:02 +01:00
Sebastian Gniazdowski 1702120393 *autoload: "plg-spec" -> "plugin-spec" 2019-03-12 18:28:28 +01:00
Sebastian Gniazdowski 2cbc8a619d zsdoc: Update code documentation 2019-03-12 18:16:52 +01:00
Sebastian Gniazdowski 5fc5dc2f37 *side: Fix an important typo 2019-03-12 17:48:06 +01:00
Sebastian Gniazdowski bbcd902f87 doc/INTRODUCTION.adoc 2019-03-12 11:21:27 +01:00
Sebastian Gniazdowski bb02e204ac *-output.zsh: Shorter text to increase chances of a correct progress bar 2019-03-12 00:09:27 +01:00
xPMo 9c1daab8d6 *-autoload: show full log when updating (#110)
Bug-fix: single-new-commit plugins weren't updated
2019-03-11 14:23:57 +01:00
Sebastian Gniazdowski 43ac67ff4e Updated GALLERY.md 2019-02-19 03:40:54 +01:00
Sebastian Gniazdowski b68c596b6d *autoload: Stop the pager (of the `update' command) after 20 seconds
Issue #100, comment: https://github.com/zdharma/zplugin/issues/100#issuecomment-459942972
2019-02-04 05:55:56 +01:00
Sebastian Gniazdowski ddcd8afec8 *autoload: With -q/--quiet update silences all remaining status messages
Issue #100
2019-02-04 04:58:38 +01:00
Sebastian Gniazdowski 010c752fea Updated README.md (a typo)
77f6b51b09 (commitcomment-32164382)
2019-02-02 10:09:26 +01:00
Sebastian Gniazdowski fa4f3a8cc9 Updated README.md (info on the -q/--quiet `update'-subcommand flags)
Issue #100
2019-02-02 09:37:14 +01:00
Sebastian Gniazdowski 481dc2a9bb zplugin,*install,*autoload: -q/--quiet flag for the `update' subcommand
Issue #100
2019-02-02 09:30:44 +01:00
Sebastian Gniazdowski 77f6b51b09 Updated README.md 2019-02-01 00:30:12 +01:00
Sebastian Gniazdowski 13653f227a Updated GALLERY.md (new Zplugin Oh-My-Zsh capability, URL below)
https://www.reddit.com/r/zplugin/comments/ahpddw/how_to_load_an_ohmyzsh_plugin_from_a_folder/
2019-01-21 18:06:40 +01:00
Sebastian Gniazdowski 9a56e799de Follow uo to previous commit: Set zSH automatically if url is oh-My-Zsh 2019-01-21 17:59:19 +01:00
Sebastian Gniazdowski 74d1d2ef81 Reddit: user wants to load OMZ::plugins/osx without a warning message
https://www.reddit.com/r/zplugin/comments/ahpddw/how_to_load_an_ohmyzsh_plugin_from_a_folder/

The problem: no ZSH being set up, because the directory layout is
missing Oh-My-Zsh directory layout. This has been fixed in this commit,
by creating a symlink, that allows to assign ZSH="${ZPLG[SIPPETS_DIR]}".
2019-01-21 17:49:52 +01:00
Sebastian Gniazdowski ea9302b509 zplugin: Limit an influence on the FPATH contents – preserve colons
In reaction to:
ecf0bf3e59 (commitcomment-31833883)
2019-01-10 00:33:04 +01:00
Sebastian Gniazdowski 650d483772 *side: -zplg-first: simpler ksharrays-support method: -${#reply} index 2018-12-28 21:23:15 +01:00
Sebastian Gniazdowski 4c6324d298 *side.zsh: -zplg-get-plg-dir' and its use in -zplg-first' 2018-12-28 19:58:27 +01:00
Sebastian Gniazdowski 747be93f20 test-excl-id-as: New ad-hoc test for the exclamation-mark id-as'!...'
Issue #96
2018-12-28 17:21:43 +01:00
Sebastian Gniazdowski de2c390532 test-id-as: Updates that occured because of id-as'!...' new feature #96 2018-12-28 17:14:31 +01:00
Sebastian Gniazdowski 17738d6438 *autoload: Update and fixes for zplugin create ...
Issue #68
2018-12-28 14:10:30 +01:00
Sebastian Gniazdowski e543de6a95 zplugin: Set :prezto:module:{mod-name} zstyles for Prezto snippets
Issue #91. Used some code from there, thanks to @laggardkernel. The
is-loaded zstyle is checked only within pmodload() function, however it
is set in -zplg-load-snippet() function, so this spans on all Prezto
module loads, both from pmodload() and directly via `zplg snippet
PZT::...' or `zplg snippet https://github.com/sorin-ionescu/prezto/...'.
2018-12-28 13:17:43 +01:00
Sebastian Gniazdowski ab4a9c7fa4 zplugin: Restore the lost into-/raw/ GitHub-URL editing (*-load-snippet)
Issue #91
2018-12-28 13:12:08 +01:00
Sebastian Gniazdowski d47a83b512 Updated README.md 2018-12-26 19:04:45 +01:00
Sebastian Gniazdowski ecf0bf3e59 zplugin,*-side,*-install: Don't expand OMZ:: etc. prefixes so that `zplg
times' and other commands, and also directories, are kept short.
2018-12-25 00:58:40 +01:00
Sebastian Gniazdowski 0d9965301f Updated README.md 2018-12-11 03:09:34 +01:00
Sebastian Gniazdowski ccccb1b596 Updated README.md 2018-12-10 22:56:23 +01:00
Sebastian Gniazdowski 0c43ac4724 *install: Fix additional compilation ice compile'' handling – add {} exp
Pull request #92
2018-12-04 20:09:07 +01:00
Ben Klein ba2447a0d9 Update P10K gallery invocation (#92)
* Update P10K gallery invocation

I've made changes that perform the fpath setup in `precmd` and mirrored to github

* atclone compile
2018-12-04 16:28:27 +01:00
Sebastian Gniazdowski f45c411008 README.md: Clear at which moment any sourcing is done (at which ice-mod)
Pull Request #92
2018-12-04 16:26:57 +01:00
Sebastian Gniazdowski a02a395430 zplugin: pmodload also checks using direct-url if a module is loaded
Issue #91
2018-11-26 00:27:13 +01:00
Sebastian Gniazdowski 96d8053725 Performance status 11/13/2018
_testp1:
num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1)  200        4961.83    24.81   97.02%   1941.29     9.71   37.96%  -zplg-load-plugin
 2) 2800         917.91     0.33   17.95%    834.86     0.30   16.32%  --zplg-shadow-bindkey
 3) 2000         414.86     0.21    8.11%    354.30     0.18    6.93%  --zplg-shadow-zle
 4) 10400         314.13     0.03    6.14%    314.13     0.03    6.14%  -zplg-add-report
 5) 1400         322.74     0.23    6.31%    279.44     0.20    5.46%  --zplg-shadow-zstyle
 6)  600         337.80     0.56    6.61%    271.55     0.45    5.31%  --zplg-shadow-alias
 7)  400         241.52     0.60    4.72%    241.52     0.60    4.72%  -zplg-diff-parameter
 8) 1000         272.76     0.27    5.33%    217.97     0.22    4.26%  --zplg-shadow-autoload
 9) 2800        1001.96     0.36   19.59%     84.05     0.03    1.64%  bindkey
10)  200        5075.47    25.38   99.24%     63.91     0.32    1.25%  -zplg-load
11) 2000         474.09     0.24    9.27%     59.23     0.03    1.16%  zle
12)  400          57.38     0.14    1.12%     57.38     0.14    1.12%  -zplg-diff-functions
13)  400          43.40     0.11    0.85%     43.40     0.11    0.85%  -zplg-diff-options
14) 1400         364.56     0.26    7.13%     41.82     0.03    0.82%  zstyle
15)  200         239.44     1.20    4.68%     41.49     0.21    0.81%  select-word-style
16)  400          38.01     0.10    0.74%     38.01     0.10    0.74%  -zplg-diff-env
17)  200          78.09     0.39    1.53%     34.96     0.17    0.68%  add-zsh-hook
18)  200        5109.11    25.55   99.90%     33.64     0.17    0.66%  zplugin
19)  200          31.15     0.16    0.61%     31.15     0.16    0.61%  -zplg-shadow-on
20) 1000         303.37     0.30    5.93%     30.61     0.03    0.60%  autoload

Measured time: 5.114

_testp2:
num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1)  200        2187.93    10.94   93.69%   1785.89     8.93   76.47%  -zplg-load-plugin
 2) 1000         269.11     0.27   11.52%    215.25     0.22    9.22%  --zplg-shadow-autoload
 3)  200        2296.69    11.48   98.35%     61.01     0.31    2.61%  -zplg-load
 4) 2000          60.13     0.03    2.57%     60.13     0.03    2.57%  -zplg-add-report
 5)  200          80.85     0.40    3.46%     35.76     0.18    1.53%  add-zsh-hook
 6)  200        2329.98    11.65   99.77%     33.29     0.17    1.43%  zplugin
 7) 1000         298.58     0.30   12.79%     29.47     0.03    1.26%  autoload
 8)  200          28.27     0.14    1.21%     28.27     0.14    1.21%  select-word-style
 9)  200          27.48     0.14    1.18%     27.48     0.14    1.18%  -zplg-register-plugin
10)  200          16.88     0.08    0.72%     16.88     0.08    0.72%  -zplg-shadow-off
11)  200          16.29     0.08    0.70%     16.29     0.08    0.70%  -zplg-shadow-on
12)  200          11.69     0.06    0.50%     11.69     0.06    0.50%  -zplg-any-to-user-plugin
13)  200           8.57     0.04    0.37%      8.57     0.04    0.37%  -zplg-pack-ice
14)    1        2335.32  2335.32  100.00%      5.35     5.35    0.23%  (anon)

-----------------------------------------------------------------------------------

Measured time: 2.336
2018-11-13 19:55:05 +01:00
Sebastian Gniazdowski e87366b2bf zplugin.zsh: Much shorter but simpler UPAR, etc. detection
Issue #69
2018-11-13 19:51:44 +01:00
Sebastian Gniazdowski 4eab1ad3cb zplugin.zsh: Support for UPAR,DOWN*,LEFT*,RIGHT* on left side of bindmap
Issue #69
2018-11-13 19:45:58 +01:00
Sebastian Gniazdowski 3ea45b8f77 Performance status 11/13/2018
_testp1:
num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1)  200        5010.44    25.05   97.07%   1989.13     9.95   38.54%  -zplg-load-plugin
 2) 2800         880.15     0.31   17.05%    795.84     0.28   15.42%  --zplg-shadow-bindkey
 3) 2000         424.10     0.21    8.22%    362.55     0.18    7.02%  --zplg-shadow-zle
 4) 10400         318.86     0.03    6.18%    318.86     0.03    6.18%  -zplg-add-report
 5)  600         351.81     0.59    6.82%    283.47     0.47    5.49%  --zplg-shadow-alias
 6) 1400         322.85     0.23    6.25%    280.09     0.20    5.43%  --zplg-shadow-zstyle
 7)  400         249.16     0.62    4.83%    249.16     0.62    4.83%  -zplg-diff-parameter
 8) 1000         276.77     0.28    5.36%    221.19     0.22    4.29%  --zplg-shadow-autoload
 9) 2800         964.60     0.34   18.69%     84.45     0.03    1.64%  bindkey
10)  200        5123.04    25.62   99.25%     63.84     0.32    1.24%  -zplg-load
11) 2000         483.66     0.24    9.37%     59.57     0.03    1.15%  zle
12)  400          58.55     0.15    1.13%     58.55     0.15    1.13%  -zplg-diff-functions
13)  400          44.68     0.11    0.87%     44.68     0.11    0.87%  -zplg-diff-options
14) 1400         363.72     0.26    7.05%     40.87     0.03    0.79%  zstyle
15)  200         232.61     1.16    4.51%     40.30     0.20    0.78%  select-word-style
16)  400          37.86     0.09    0.73%     37.86     0.09    0.73%  -zplg-diff-env
17)  200          80.52     0.40    1.56%     36.08     0.18    0.70%  add-zsh-hook
18)  200        5156.39    25.78   99.90%     33.35     0.17    0.65%  zplugin
19)  200          31.88     0.16    0.62%     31.88     0.16    0.62%  -zplg-shadow-on
20) 1000         307.17     0.31    5.95%     30.39     0.03    0.59%  autoload

Measured time: 5.162

_testp2:
num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1)  200        2233.45    11.17   93.67%   1814.00     9.07   76.08%  -zplg-load-plugin
 2) 1000         282.18     0.28   11.83%    224.37     0.22    9.41%  --zplg-shadow-autoload
 3) 2000          64.24     0.03    2.69%     64.24     0.03    2.69%  -zplg-add-report
 4)  200        2344.98    11.72   98.35%     63.02     0.32    2.64%  -zplg-load
 5)  200          81.88     0.41    3.43%     36.17     0.18    1.52%  add-zsh-hook
 6)  200        2379.14    11.90   99.78%     34.16     0.17    1.43%  zplugin
 7) 1000         312.93     0.31   13.12%     30.75     0.03    1.29%  autoload
 8)  200          29.21     0.15    1.22%     29.21     0.15    1.22%  select-word-style
 9)  200          27.46     0.14    1.15%     27.46     0.14    1.15%  -zplg-register-plugin
10)  200          17.55     0.09    0.74%     17.55     0.09    0.74%  -zplg-shadow-off
11)  200          17.17     0.09    0.72%     17.17     0.09    0.72%  -zplg-shadow-on
12)  200          12.18     0.06    0.51%     12.18     0.06    0.51%  -zplg-any-to-user-plugin
13)  200           8.88     0.04    0.37%      8.88     0.04    0.37%  -zplg-pack-ice
14)    1        2384.39  2384.39  100.00%      5.24     5.24    0.22%  (anon)

-----------------------------------------------------------------------------------

Measured time: 2.385
2018-11-13 19:39:24 +01:00
Sebastian Gniazdowski bdf612ca0d zplugin,README: Provide zpcompdef' function which mimics compdef'
It saves the `compdef' definition for a later run via `zpcdreplay'
or `zplugin cdreplay'.
2018-11-11 23:07:31 +01:00
Sebastian Gniazdowski 515f8fb55d *-output: Handle alternate counting-like git output 2018-10-29 21:23:37 +01:00
Sebastian Gniazdowski f0b664951f zplugin,*autoload: Bindkey-only tracking with ice-mod `trackbinds' or
option `-b' passed to `light'-subcommand, i.e. zplugin light -b ... Issue #69
2018-10-28 22:20:23 +01:00
Sebastian Gniazdowski bac1d20c37 *install: For plugins, *install-completions was called too early #87 2018-10-28 21:12:16 +01:00
Sebastian Gniazdowski afa4e47208 zplugin: Bugfix: misentered argument number, $4 -> $5, #59
The error reveals itself when installing a faulty plugin.
2018-10-25 05:36:01 +02:00
Sebastian Gniazdowski 1b43e9d797 *autoload: warncreateglobal catched one parameter. The tests are fixed 2018-10-24 23:37:34 +02:00
Sebastian Gniazdowski ad6780cf5f zplugin,*autoload: Bugfix: review all "user/plugin"-string creations 2018-10-24 23:03:08 +02:00
Sebastian Gniazdowski dde100db60 zplugin: Actually utilize zplugin binary module for report-append op 2018-10-24 21:40:00 +02:00
Sebastian Gniazdowski ef06d41f7a zplugin,*autoload: Simplify *add-report(), 2 lines of code instead of 8
Report colorizing moved out from zplugin-kernel into autoload source file.
2018-10-24 21:33:45 +02:00
Sebastian Gniazdowski b849993f17 ~all: New ice `bindmap', e.g. bindmap'^R -> ^T', changes any keys bound
Issue #69. This ice-mod allows to manage bindkeys plugins do.
2018-10-24 17:52:28 +02:00
jamartin9 5828f72029 Added cloneopts to ice modifiers to pass git clone flags. (#86)
* Added cloneopts to ice modifiers to pass git clone flags.
Changed clone depth to 1.

* review changes
2018-10-24 15:07:38 +02:00
Sebastian Gniazdowski e815314864 *autoload: Fix `zplg update' for basic single-word ID plugins 2018-10-24 12:46:14 +02:00
Sebastian Gniazdowski 50f7787b1d zplugin,*autoload: Deep insight into absolute path plugins, big uplift
Issue #84
2018-10-16 20:57:55 +02:00
Sebastian Gniazdowski 08229d9d80 *install: Fix absolute path plugin handling, in *compile-plugin 2018-10-16 20:51:36 +02:00
Sebastian Gniazdowski f9c0497bf0 zplugin: Remove up to 3 slashes after plugin-spec, e.g. path: /a/b/// 2018-10-16 20:50:28 +02:00
Sebastian Gniazdowski c1fc6d9325 Updated README.md #80 2018-10-16 09:59:05 +02:00
Sebastian Gniazdowski 0ae1400a88 Updated GALLERY.md (robobenklein/p10k)
Issue #77
2018-10-16 09:08:49 +02:00
Sebastian Gniazdowski 1fc7e8c4bf Update README.md 2018-10-12 15:49:13 +02:00
Sebastian Gniazdowski 7cb79d3645 zplugin,*autoload: Fix multiple id & path generation for local plugins
Issue #84.
2018-10-09 16:47:16 +02:00
Sebastian Gniazdowski 2f254c6413 zplugin: Update autoload shadowing function: handle +X and new options 2018-10-09 12:10:26 +02:00
Sebastian Gniazdowski bf38e94218 *autoload: Filter {precmd,etc.}_functions excluding function being unset
Issue #78
2018-10-09 05:00:22 +02:00
Sebastian Gniazdowski 7f9e6fb99e zplugin: Error codes from `source' commands flow to upper functions
Issue #59.
2018-10-09 03:05:31 +02:00
Sebastian Gniazdowski 93815b8c01 Travis: fetch `tests' branch with --depth=1 2018-10-09 01:42:51 +02:00
Sebastian Gniazdowski 0509b09287 zplugin,*install: Failing noextendedglob tests -> mistake dependance (!)
Issue #81. When adding id-as'', extended_glob-option dependency was added.
2018-10-09 01:35:40 +02:00
Sebastian Gniazdowski 773c8e4d04 *install: T26: atpull in single-file snippet didn't CD to its directory
Issue #81, problems introduced by id-as'' ice. T26: test 26
2018-10-08 23:16:05 +02:00
Sebastian Gniazdowski a302264994 zplugin: Fix atload'' cd-path, revealed by test26
Issue #81
2018-10-08 21:16:14 +02:00
Sebastian Gniazdowski e1c3e23585 zplugin: Create ZERO for snippets in one main place. Test 23 revealed
warncreateglobal warning.
2018-10-08 20:27:04 +02:00
Sebastian Gniazdowski 86c261f64e *side: Fix warncreateglobal message reported by tests, in *-two-paths
Issue #81
2018-10-08 17:37:10 +02:00
Sebastian Gniazdowski d810f5f560 Travis: Searching for a proper way to fetch branch `tests' (2) 2018-10-08 17:31:49 +02:00
Sebastian Gniazdowski a31fce0731 Travis: Searching for a proper way to fetch branch `tests' (1)
Issue #81
2018-10-08 17:20:42 +02:00
Sebastian Gniazdowski 52c1943e45 Travis: use the new orphan branch tests' as a second worktree ./test'
Issue #81
2018-10-08 17:15:16 +02:00
Sebastian Gniazdowski 5bc88e78cf test: Remove test/ directory, it is an orphan branch now
To run tests, use `git worktree ...' to checkout branch `tests' into
directory `test'.
2018-10-08 16:55:55 +02:00
Sebastian Gniazdowski e727ec50cc zplugin,*side: General snippets FIX, makes serious problems go away
Issue #83. It was wrong SVN vs. non-SVN path generation.
2018-10-07 13:23:22 +02:00
Sebastian Gniazdowski ed50d01d32 *install: FIX local-filesystem absolute-path snippets
Issue #83. Absolute-path snippets should work correctly now.
2018-10-07 13:21:05 +02:00
Sebastian Gniazdowski 2ee250f93f all: MAJOR update – added id-as'' ice, e.g. id-as'my/plugin' to nickname
your plugin or snippet as `my/plugin'. Report problems to: https://github.com/zdharma/zplugin/issues

Issue #81. This feature allows:
- to load a plugin/snippet twice, under different ID, e.g. when you want
  to load main plugin but also e.g. a completion-setup script,
- keep different versions of a plugin, load under constant, stable name,
- use arbitrary ID instead of a long snippet URL,
- some people are running code via atinit/atload/atclone/atpull and need
  multiple copies of a dummy plugin as a placeholder for the ice-mods -
  - now it's possible to have 1 physical plugin, and 1..N logical ones.
2018-10-07 00:22:04 +02:00
Sebastian Gniazdowski d5cec1f617 test-id-as: Create own plugins/snippets dirs unless --reuse given
Issue #81
2018-10-06 20:52:36 +02:00
Sebastian Gniazdowski 6e8994c407 zplugin,*install: Replace echo' with print' – echo is for debug msgs
Effort for issue #81
2018-10-06 14:33:42 +02:00
Sebastian Gniazdowski dcdd0b25ff zplugin: Don't compile as'command' entities (plugins & snippets) #81
Included in #81 because it's side-effect of #81 multiday effort.
2018-10-06 14:06:24 +02:00
Sebastian Gniazdowski d12b9373bb test-id-as: Verify new subcommands: creinstall', cclear'
Issue #81
2018-10-05 22:51:29 +02:00
Sebastian Gniazdowski a397fb5422 test-id-as: Extend the script to test more of id-as'' ice (zplg delete)
Issue #81
2018-10-05 22:34:27 +02:00
Sebastian Gniazdowski 7b08602505 Ad-hoc script `doc/test-id-as' to test id-as ice; id-as'' is coming soon
Issue #81
2018-10-05 20:32:50 +02:00
Sebastian Gniazdowski 35c3967224 *autoload.zsh: Include 10 words from commit body in self-update message
Users will see general-description of introduced changes.
2018-10-04 21:03:47 +02:00
Sebastian Gniazdowski 11cc312fcc One more empty commit to test the new `zplugin self-update ...' features
Test body.
2018-10-04 20:21:12 +02:00
Sebastian Gniazdowski 2f1a2a39cd An empty commit to test the new `zplugin self-update ...' features 2018-10-04 20:19:28 +02:00
Sebastian Gniazdowski c74ccdfc5d zplugin: UNSE (user-noticable side effects): do not touch $MANPATH
Issue #76. Various systems (e.g. OS X) have own sophisticated man-path
scripts, etc.
2018-10-04 18:44:38 +02:00
Sebastian Gniazdowski 7b75cddf6e *autoload: `cuninstall' to support snippets and shorthand-ids/urls
Issue #81
2018-09-30 23:11:13 +02:00
Sebastian Gniazdowski 9ed8fa79cc *autoload: Less tricky way of getting completion owner, for #81
Also fixed improper statuses in `clist'
2018-09-30 21:07:59 +02:00
Sebastian Gniazdowski 9b888c3eb0 _zplugin: Update completion for the upcoming changes (id-as ice-mod)
Issue #81
2018-09-30 20:33:30 +02:00
Sebastian Gniazdowski 8fb1de0552 zplugin: On OS X, do not alter MANPATH if already non-empty #76 2018-09-30 20:15:44 +02:00
Sebastian Gniazdowski c844d81d20 zplugin: Remove stray debug message (std{err,out} of zsystem flock) 2018-09-30 19:46:26 +02:00
Sebastian Gniazdowski 88d668cfa0 zplugin: Saving PS1, etc. *values* proved no use-case, remove it
Issue #81 because detected this when working on the id-as ice-mod
2018-09-30 19:43:29 +02:00
Sebastian Gniazdowski 67acea0fd5 zplugin: Uplift -zplg-any-to-user-plugin code, e.g. faster comparisons
Issue #81
2018-09-29 23:39:52 +02:00
Sebastian Gniazdowski 5194709523 zplugin,*side,*install,*autoload: Use [@] not (@) for KSH_ARRAYS compat. 2018-09-29 23:24:14 +02:00
Sebastian Gniazdowski 54d2c4173e module: Introducing `readarray' builtin – currently parsing of options
Issue #73
2018-09-29 22:54:59 +02:00
Sebastian Gniazdowski 63459e035b *install: Fix atpull'!...' run for local-file snippet – *do* cd into dir 2018-09-29 22:39:26 +02:00
Sebastian Gniazdowski 230c13a04f zplugin: Don't redefine IFS in autload stub #79
Investigation done in mafredri/zsh-async#30, then confirmed.
2018-09-27 04:04:42 +02:00
Sebastian Gniazdowski 65d4123f0e *-output.zsh: Lack of packed-data means 0 packed objects 2018-09-21 16:03:40 +02:00
Sebastian Gniazdowski effa881824 *-output: Fix writing-out the remote:* lines 2018-09-21 15:46:23 +02:00
Sebastian Gniazdowski 1aaaa90f89 *-output.zsh: Don't filter-out error messages 2018-09-21 14:13:46 +02:00
Sebastian Gniazdowski ef1f1b51e7 Updated README.md 2018-09-20 09:41:55 +02:00
Sebastian Gniazdowski 902783407a *-output.zsh: Theoretical handling of Git authentication 2018-09-18 07:51:13 +02:00
Sebastian Gniazdowski 4d8fe294a5 zplugin: ZPLGM[MUTE_WARNINGS] field, mutes 'already registered' warning
Issue #72
2018-09-01 22:04:16 +02:00
Sebastian Gniazdowski 7a24478e58 zplugin: Better detection if a snippet is already downloaded, for mv/cp 2018-08-30 14:19:36 +02:00
Sebastian Gniazdowski eaaf5a0a44 Updated README.md 2018-08-30 12:20:32 +02:00
Sebastian Gniazdowski ce715fd803 *-output.zsh: Use actual git percents, hide cursor 2018-08-30 11:18:06 +02:00
Sebastian Gniazdowski 24034b1a61 *-output.zsh: An progress bar that serves as eyeball animation 2018-08-30 11:00:46 +02:00
Sebastian Gniazdowski 0ba766a68f Updated README.md 2018-08-30 06:43:34 +02:00
Sebastian Gniazdowski a42af53aad zplugin,README: New as'' ice-mod value: completion 2018-08-30 06:33:55 +02:00
Sebastian Gniazdowski cb2128cd48 *install,README: make'' can obtain two '!', to run before mv'', cp'' 2018-08-29 07:25:03 +02:00
Sebastian Gniazdowski 8587974d7f Updated DONATIONS.md 2018-08-28 22:18:20 +02:00
Sebastian Gniazdowski 045a1fc20c Updated DONATIONS.md 2018-08-28 21:37:45 +02:00
Sebastian Gniazdowski 0a6b55bda6 Updated README.md 2018-08-28 11:04:12 +02:00
Sebastian Gniazdowski 8325c7187e Updated README.md, DONATIONS.md 2018-08-27 19:06:39 +02:00
Sebastian Gniazdowski 7f2c9f648b DONATIONS.md 2018-08-27 18:58:51 +02:00
Sebastian Gniazdowski 38f4071e55 Updated README.md 2018-08-27 12:14:25 +02:00
Sebastian Gniazdowski c69385d102 Empty commit to check self-update, etc. related patch (previous) 2018-08-25 00:47:22 +02:00
Sebastian Gniazdowski a60c053460 *autoload: less (self-update, etc.) needs -R to show colors 2018-08-25 00:43:40 +02:00
Sebastian Gniazdowski 051ebda341 zplugin: Try to address exec + noclobber on older zsh (apparently) 2018-08-25 00:38:38 +02:00
Sebastian Gniazdowski d0f5d07579 Updated README.md 2018-08-23 22:07:29 +02:00
Sebastian Gniazdowski f41e03de10 Updated README.md 2018-08-23 20:31:02 +02:00
Sebastian Gniazdowski bc276462dc Updated README.md 2018-08-23 20:08:32 +02:00
Sebastian Gniazdowski d4458c37ed Updated README.md – better example config, the binary-module usage info 2018-08-23 20:03:07 +02:00
Sebastian Gniazdowski 8339fd339b Updated README.md 2018-08-22 20:21:55 +02:00
Sebastian Gniazdowski 7b96fad9a6 doc: mod-install.sh 2018-08-22 20:16:53 +02:00
Sebastian Gniazdowski ba1ba64f5e module: Update zpmod usage text 2018-08-22 20:08:49 +02:00
Sebastian Gniazdowski b0d72e81b5 zplugin,*autoload: `module' command, manages new zdharma/zplugin module 2018-08-22 19:29:27 +02:00
Sebastian Gniazdowski 706bbb35fb Update Zsh source files to latest 2018-08-22 10:06:45 +02:00
Sebastian Gniazdowski b77426f635 module: source-study builds report with milliseconds without fractions 2018-08-20 15:52:30 +02:00
Sebastian Gniazdowski c3cc09b9b2 module: Updated zpmod_usage, i.a. with `source-study' sub-command 2018-08-20 10:52:48 +02:00
Sebastian Gniazdowski 61902957c9 module: Go back to subcommand-interface to `zpmod'; simple option parser 2018-08-20 10:40:27 +02:00
Sebastian Gniazdowski 881005f26c module: Report on sourcing times is shown on zpmod -S. Done generation 2018-08-20 06:08:04 +02:00
Sebastian Gniazdowski e5d046a924 module: Correct conditions on zwc file vs. script file (after stats) 2018-08-19 23:21:47 +02:00
Sebastian Gniazdowski 1282c215bd module: Duration of sourcing a file is measured and stored into a hash 2018-08-19 23:16:11 +02:00
Sebastian Gniazdowski e080153cc8 module: Overload both source' and .' builtins 2018-08-18 19:52:56 +02:00
Sebastian Gniazdowski 580efb828b module: Invoke bin_zcompile with -U option (i.e. no alias expansion) 2018-08-18 19:45:51 +02:00
Sebastian Gniazdowski b7d983674b module: Custom `source' ensures script is compiled, compiles if not 2018-08-18 19:39:06 +02:00
Sebastian Gniazdowski 1e75a47529 module: Code cleanup, vim folding 2018-08-18 17:49:24 +02:00
Sebastian Gniazdowski a4a02f306e module: Finally working source'/.' overload (used options translating) 2018-08-18 13:48:19 +02:00
Sebastian Gniazdowski 99bba56c70 module: zpmod_usage gained content 2018-08-16 20:02:30 +02:00
Sebastian Gniazdowski 04703cd0d1 module: Add the main builtin zpmod with report-append which is working 2018-08-16 19:23:18 +02:00
Sebastian Gniazdowski cd6dc19f69 module: my_ztrdup_glen, zp_unmetafy_zalloc 2018-08-16 19:21:25 +02:00
Sebastian Gniazdowski 6d44e36134 module: Cleanup, `source' overload after patron leoj3n restarted module 2018-08-16 14:38:07 +02:00
Sebastian Gniazdowski 259ed171ba Updated README.md 2018-08-15 17:07:37 +02:00
Sebastian Gniazdowski ec09627969 zplugin,*autoload: New $ZPLGM field COMPINIT_OPTS – options for compinit 2018-08-15 16:46:11 +02:00
Sebastian Gniazdowski 6e395f70b2 zsdoc,zplugin: Update code documentation 2018-08-14 19:22:51 +02:00
Sebastian Gniazdowski e0505c747e Updated README.md 2018-08-13 21:09:48 +02:00
Sebastian Gniazdowski 80d7029a54 Empty commit to test commit-listing feature of `self-update' 2018-08-13 19:45:34 +02:00
Sebastian Gniazdowski 9b94f68973 *autoload: `self-update' now shows new commits that are downloaded 2018-08-13 19:44:00 +02:00
Sebastian Gniazdowski f83d14180a *install: No need for sleep 0.3 anymore, git output is fixed 2018-08-13 19:37:05 +02:00
Sebastian Gniazdowski 81b9b5aa1e _zplugin: Complete only directories to `cd' and similar. Separate cmds
Issue #70

Commands that don't accept absolute paths are now completed with plugins
only (i.e. they have been separated from commands like light, load, etc)
2018-08-13 18:44:40 +02:00
Sebastian Gniazdowski f7315d3a66 *-output.zsh: Uplift git output shortener – horrible buffering now fixed 2018-08-13 16:26:02 +02:00
Sebastian Gniazdowski c929f4c45d zplugin,*autoload: New subcommand bindkeys
Issue #69
2018-08-12 08:26:33 +02:00
Alexandros Kozak 707a6e5e52 Check $OSTYPE when establishing MANPATH 2018-07-30 05:40:34 +02:00
Alexandros Kozak 27ea6fb186 Don't clobber Solaris/OpenIndiana MANPATH 2018-07-29 06:45:20 +02:00
Sebastian Gniazdowski 7adf2fac6e Updated README.md
Issue #56
2018-07-28 15:54:44 +02:00
Sebastian Gniazdowski 3f392166f1 Updated GALLERY.md 2018-07-28 15:54:02 +02:00
Sebastian Gniazdowski e3dde15615 zplugin,*install: When doing `cd' within zplugin, unset AUTO_PUSHD #62 2018-07-26 12:05:43 +02:00
Sebastian Gniazdowski fdae1ce77c *install: Better method of redirecting Git output, no disturbed text #51 2018-07-26 11:03:48 +02:00
Sebastian Gniazdowski ade4aca404 *install: Don't compile pick'/dev/null' 2018-07-26 11:01:16 +02:00
Sebastian Gniazdowski b04e6225e4 Updated README.md 2018-07-25 12:00:48 +02:00
Sebastian Gniazdowski 3cef539c8c zplugin: Reset prompt later, after loading. Prevent message truncation
Issue #59
Issue #60
2018-07-23 20:22:47 +02:00
Sebastian Gniazdowski ea6dc28141 zplugin: Fix bug disturbing Turbo-Mode – no missed time slots now 2018-07-23 12:22:41 +02:00
Sebastian Gniazdowski b13bdcb0dc zplugin: Reset prompt after plugin installation, if in zle #60 2018-07-23 06:55:26 +02:00
psprint 1c5ffa25ba Update issue templates 2018-07-14 06:41:49 +02:00
Sebastian Gniazdowski f327879e8d Updated README.md #25 2018-07-13 15:50:28 +02:00
Sebastian Gniazdowski 9e72b220b5 zplugin: New ice-mod multisrc'' with brace-expansion syntax #25 2018-07-13 15:33:50 +02:00
Sebastian Gniazdowski 11fbdd48ca zplugin: REPLY & reply can be global to zplugin, not in general 2018-07-13 14:51:17 +02:00
Sebastian Gniazdowski 3a3379282f zplugin: Allow pick"/dev/null" to skip sourcing or +x of a main file 2018-07-13 14:50:21 +02:00
Sebastian Gniazdowski b822d0bf9c zplugin: Code uplift, utilize ZERO param to not repeat long snippets 2018-07-13 14:47:36 +02:00
Sebastian Gniazdowski 6179155663 Updated README.md #51 2018-07-12 15:44:17 +02:00
Sebastian Gniazdowski da729e100a zplugin: Scheduler has burst mode (docker and new machine provisioning)
Issue #51
2018-07-12 15:33:29 +02:00
Sebastian Gniazdowski 203f40eb02 Updated README.md #53 2018-07-12 14:41:05 +02:00
Sebastian Gniazdowski b6ffe5795b zplugin,*autoload,_zplugin: New feature: subcommand `env-whitelist' #53 2018-07-12 14:38:34 +02:00
Sebastian Gniazdowski 8f3b8431fa zplugin: Make wait'0' even quicker (~0.01 second delay) 2018-07-11 07:14:49 +02:00
Sebastian Gniazdowski 2275c24440 Updated GALLERY.md 2018-07-11 05:28:51 +02:00
Sebastian Gniazdowski fe6cf5dc45 Updated GALLERY.md 2018-07-11 05:25:18 +02:00
Sebastian Gniazdowski 3b883613cc Updated README.md #57 2018-07-10 23:33:47 +02:00
Sebastian Gniazdowski 1ce518808c zplugin: Early scheduler call – wait"0" is now a real thing #57 2018-07-10 23:24:33 +02:00
Sebastian Gniazdowski d7c51007e4 zplugin: Ensure no second is lost with wait'' 2018-07-10 22:28:22 +02:00
Sebastian Gniazdowski e44b1422b2 zplugin: Handle fractional wait'' time, to not output error messages #57 2018-07-10 22:23:16 +02:00
Sebastian Gniazdowski 4d428e48f3 Updated README.md #56 2018-07-10 18:37:23 +02:00
Sebastian Gniazdowski d9b549edc3 *install: Allow absolute-path pick''. Allow compilation after make'' #56 2018-07-10 18:32:17 +02:00
Sebastian Gniazdowski 73f9e24180 *install: Fix for *compile-plugin, a missing path simulating -zplg-first
Issue #56
2018-07-10 18:12:34 +02:00
Sebastian Gniazdowski 898355e88d zplugin,*install: New ice `nocompile' to skip compilation of a plugin 2018-07-10 17:56:22 +02:00
Sebastian Gniazdowski 0da11e79aa zplugin,*install,README: New ice-mod `nocompletions' 2018-06-29 17:00:37 +02:00
Sebastian Gniazdowski 8907568c52 *install: Increase delay hoping that background process will get in sync 2018-06-29 16:53:58 +02:00
Sebastian Gniazdowski 1b6b518715 *-output: Emulate zsh with options, e.g. extendedglob 2018-06-26 23:41:35 +02:00
Sebastian Gniazdowski c213b69fec *-output,install,test: Hook up git-process-output.zsh to zplugin & tests 2018-06-26 13:23:05 +02:00
Sebastian Gniazdowski f81280c447 *-output: The output line with "COMPRESS" can now have "RECEIVING" 2018-06-26 13:22:04 +02:00
Sebastian Gniazdowski ceec4dfed4 *-output: Update the script, cosmetic changes 2018-06-26 13:03:44 +02:00
Sebastian Gniazdowski 3a80d3a389 Revert "test: Makefile's prepare-target copies git-process-output.zsh"
This reverts commit 923c0a9125.
2018-06-26 00:15:04 +02:00
Sebastian Gniazdowski 3771111f8d Revert "*-output.zsh: Handle more possible git output messages"
This reverts commit 5449668d02.
2018-06-26 00:14:57 +02:00
Sebastian Gniazdowski 923c0a9125 test: Makefile's prepare-target copies git-process-output.zsh 2018-06-26 00:11:46 +02:00
Sebastian Gniazdowski 5449668d02 *-output.zsh: Handle more possible git output messages 2018-06-26 00:06:33 +02:00
Sebastian Gniazdowski 241aa63ee7 Initial version of git-process-output.zsh 2018-06-25 21:32:31 +02:00
Sebastian Gniazdowski ab7197c261 zplugin: Don't create empty pick'' ice, tests revealed this (#49) 2018-05-30 17:41:27 +02:00
Sebastian Gniazdowski f75d69754e zplugin: Better place for expanding pick'' ice (#49) 2018-05-30 17:06:07 +02:00
Sebastian Gniazdowski 845b2e46f3 zplugin: Expand $ZPFX even if it's quoted (fixes #49) 2018-05-30 16:58:12 +02:00
Sebastian Gniazdowski e6bd871fbd Updated GALLERY.md 2018-05-10 12:04:10 +02:00
Sebastian Gniazdowski 5d5e376cda zplugin,autoload: Support LOADED_PLUGINS defined by Zsh plugin standard 2018-05-05 09:41:22 +02:00
Sebastian Gniazdowski 780b024935 Updated README.md 2018-04-30 04:33:41 +02:00
Sebastian Gniazdowski 2331d97406 GALLERY: Add geometry theme 2018-04-30 04:27:20 +02:00
Sebastian Gniazdowski 76035067b8 zplugin: Correctly set ZERO, it should be full path to sourced file 2018-04-25 13:27:56 +02:00
Sebastian Gniazdowski 32b8152061 zplugin: Set $ZERO to plugin's or snippet's directory 2018-04-05 19:39:33 +02:00
Sebastian Gniazdowski cb4d0b4ff2 zplugin,*install,*autoload: Don't trigger chpwd hooks on internal `cd' 2018-03-28 19:41:12 +02:00
Sebastian Gniazdowski 43c99467c4 *autoload: self-update informs about compiling Zplugin 2018-03-18 11:06:03 +01:00
Sebastian Gniazdowski 77b4a70bbc *autoload: clist progress line is printed to stderr instead of stdout 2018-03-17 17:49:30 +01:00
Sebastian Gniazdowski 7218af8342 zplugin: Support absolute path in src"" ice 2018-03-16 04:36:17 +01:00
Sebastian Gniazdowski 3004ce44c8 *install: Support ice-mod `ver' also for regular plugins 2018-03-15 10:45:20 +01:00
Sebastian Gniazdowski f767909d38 install.sh: --depth 10, which implies --single-branch 2018-03-07 18:33:49 +01:00
Sebastian Gniazdowski 0642a39334 zplugin: zcdreplay -> zpcdreplay 2018-03-05 22:23:13 +01:00
Sebastian Gniazdowski ee9fca916b zplugin: When creating HOME_DIR, create also $ZPFX/bin 2018-03-04 21:11:38 +01:00
Sebastian Gniazdowski 22963afc2c zplugin: Accept "http://github.com/user/plugin" as load/light argument 2018-03-02 12:10:50 +01:00
Sebastian Gniazdowski 27dfe575f3 Updated README.md 2018-03-02 11:12:17 +01:00
Sebastian Gniazdowski bcfbddc61a zplugin: Extend $MANPATH with $ZPFX/share/man directory 2018-03-02 09:47:35 +01:00
Sebastian Gniazdowski 25aecdf4f1 Updated GALLERY.md, README.md 2018-03-01 20:55:17 +01:00
Sebastian Gniazdowski c8c2b851a4 Updated GALLERY.md 2018-03-01 17:18:31 +01:00
Sebastian Gniazdowski eea2ac03bd Updated GALLERY.md, README.md 2018-03-01 14:24:00 +01:00
Sebastian Gniazdowski c6aefaee4e zplugin: Provide ZPFX global parameter with the PREFIX for make, etc. 2018-03-01 13:04:50 +01:00
Sebastian Gniazdowski 2be4136fd4 zplugin,*autoload: Replace $reset_color with ${ZPLGM[col-rst]} 2018-02-28 09:52:31 +01:00
Sebastian Gniazdowski 04e81b620f test: Fix ksharrays tests 2018-02-12 08:00:56 +01:00
Sebastian Gniazdowski 4468b1c670 zplugin: Add `lucid' ice-mod 2018-02-12 07:08:58 +01:00
Sebastian Gniazdowski 906356eb19 zplugin,tests: All ice modifiers are packed into static ice 2018-02-11 11:52:16 +01:00
Sebastian Gniazdowski d23e376faf Updated README.md 2018-02-11 08:37:35 +01:00
Sebastian Gniazdowski cb292de471 zplugin,*autoload: New subcommand `recall' that fetches saved ice-mods 2018-02-10 08:25:57 +01:00
Sebastian Gniazdowski fed7dafd25 *autoload: New function to get path to directory with plugin or snippet 2018-02-10 07:05:55 +01:00
Sebastian Gniazdowski 173a50abd5 *autoload: Subcommand `recently' mutes error messages from git 2018-02-10 06:25:05 +01:00
Sebastian Gniazdowski fa7c94a710 *autoload: Help message informs about available ice-modifiers 2018-02-09 06:37:55 +01:00
Sebastian Gniazdowski 13cab5e17f zplugin: atload'!...' executes code with tracking 2018-02-05 09:08:44 +01:00
Sebastian Gniazdowski a72803bbc2 Updated README.md 2018-02-05 07:32:33 +01:00
Sebastian Gniazdowski 1985eaef3b Update README.md 2018-02-04 23:35:12 +01:00
Sebastian Gniazdowski 7faa2ed1c2 Updated README.md 2018-02-04 23:31:29 +01:00
Sebastian Gniazdowski 77da234cff Updated README.md 2018-02-04 16:52:33 +01:00
Sebastian Gniazdowski 6bb338f8a7 Updated README.md 2018-02-03 17:31:09 +01:00
Sebastian Gniazdowski ae1be91117 zplugin,*autoload: Reporting tracks value change of prompt parameters 2018-02-03 11:48:35 +01:00
Sebastian Gniazdowski a10155eca8 test: Update tests for the new snippet indicator in zstatus 2018-02-03 08:55:48 +01:00
Sebastian Gniazdowski 260632218f zplugin: Better indicator of snippet type, in zstatus 2018-02-03 08:47:25 +01:00
Sebastian Gniazdowski 9ae0e1795a Updated README.md 2018-02-03 08:10:48 +01:00
Sebastian Gniazdowski 50ae71d302 Updated README.md 2018-02-03 08:08:27 +01:00
Sebastian Gniazdowski 8c4204159b test: Update tests for the removal of the file containing git log 2018-02-03 07:58:20 +01:00
Sebastian Gniazdowski 1b22aed0ee *autoload: Exact check for `svn' ice, in *compute-ice 2018-02-03 07:44:24 +01:00
Sebastian Gniazdowski eb1e56677d *autoload: Remove temporary file after update 2018-02-03 07:43:26 +01:00
Sebastian Gniazdowski a05a637ab3 *autoload: Subcommand `times' displays indication that object is command 2018-02-02 14:25:41 +01:00
Sebastian Gniazdowski 240956fa19 _zplugin: Complete subcommand `delete' 2018-02-02 14:12:26 +01:00
Sebastian Gniazdowski c66f5525a5 *install: Meaningful names for snippets using paths in Subversion urls 2018-02-02 13:36:41 +01:00
Sebastian Gniazdowski 107c389c26 *install: Sophisticated backup done before setting up new binary release 2018-02-02 13:05:20 +01:00
Sebastian Gniazdowski 1667ee2273 *install: Guess-compiling additional file handles .zsh-theme extension 2018-01-31 18:03:26 +01:00
Sebastian Gniazdowski f623e02d20 *install: Support gzip (no tar) archives (from"gh-r") 2018-01-17 06:00:41 +01:00
Sebastian Gniazdowski 2096958058 Updated README.md 2018-01-16 12:29:53 +01:00
Sebastian Gniazdowski 8a6d79b18f *install: compile'' ice works also for snippets 2018-01-16 12:18:53 +01:00
Sebastian Gniazdowski 2536ca9bf6 zplugin,*install: New ice compile'', this commit is for plugins 2018-01-16 11:26:47 +01:00
Sebastian Gniazdowski f03da41d95 Updated README.md, GALLERY.md 2018-01-16 08:06:40 +01:00
Sebastian Gniazdowski 31bfb60253 zplugin: Allow to use as"program", with the same effect as as"command" 2018-01-16 08:01:42 +01:00
Sebastian Gniazdowski 22b3aae255 test: Handle some possible exported variables influencing unload tests 2018-01-16 07:29:59 +01:00
Sebastian Gniazdowski 14ed30abd6 zplugin: Two new functions to handle completions in turbo-mode 2018-01-14 11:44:09 +01:00
Sebastian Gniazdowski c30009f188 zplugin: Fix 2 places not compatible with SH_WORD_SPLIT 2018-01-13 18:19:15 +01:00
Sebastian Gniazdowski 4b0685c51d zplugin: Perform tilde-expansion on customizable paths 2018-01-13 16:52:54 +01:00
Sebastian Gniazdowski 58a706315e zplugin,*autoload: New ZPLGM field ZCOMPDUMP_PATH, used with compinit 2018-01-13 16:26:35 +01:00
Sebastian Gniazdowski c228095104 Updated GALLERY.md 2018-01-12 06:10:32 +01:00
Sebastian Gniazdowski 2fa8f6d269 Updated GALLERY.md 2018-01-07 07:10:17 +01:00
Sebastian Gniazdowski 5b8dc89881 Updated README.md, GALLERY.md 2018-01-06 18:33:12 +01:00
Sebastian Gniazdowski b7a8a193cc Updated README.md (badges) 2018-01-05 13:45:22 +01:00
Sebastian Gniazdowski df249032dd Updated README.md 2018-01-05 09:51:36 +01:00
Sebastian Gniazdowski 9a646b4fe6 zsdoc: Update code documentation 2018-01-05 08:44:21 +01:00
Sebastian Gniazdowski 968f4d1a2f zplugin,*autoload: Comment uncommented functions, update other comments 2018-01-05 08:42:40 +01:00
Sebastian Gniazdowski 6d5ed88a42 Updated README.md (fixed anchors) 2018-01-05 08:04:47 +01:00
Sebastian Gniazdowski d81fe9e623 Updated README.md 2018-01-05 07:59:45 +01:00
The Gitter Badger 2fbc030bef Add Gitter badge 2018-01-05 07:57:47 +01:00
Sebastian Gniazdowski 7674b643df Updated README.md (toc) 2018-01-05 06:34:07 +01:00
Sebastian Gniazdowski 156ccc3d9a Updated GALLERY.md 2018-01-02 15:22:35 +01:00
Sebastian Gniazdowski b22ad4bc9e zplugin: Declare and reset ZERO for plugins and snippets 2018-01-02 09:56:24 +01:00
Sebastian Gniazdowski bc5073dd75 Updated GALLERY.md 2018-01-01 08:52:20 +01:00
Sebastian Gniazdowski 1b796b58ad zplugin: Try to work without rejecting no-file-found plugins 2018-01-01 08:51:59 +01:00
Sebastian Gniazdowski d627f546dd Updated GALLERY.md 2017-12-31 21:57:07 +01:00
Sebastian Gniazdowski 2771a7a07c Updated GALLERY.md 2017-12-31 21:48:58 +01:00
Sebastian Gniazdowski f1cf2160f0 Updated GALLERY.md 2017-12-31 20:45:41 +01:00
Sebastian Gniazdowski 061a69b4fe Added GALLERY.md 2017-12-31 20:16:14 +01:00
Sebastian Gniazdowski f14884efc9 Updated README.md 2017-12-31 16:26:06 +01:00
Sebastian Gniazdowski 9c8478a94c Updated README.md 2017-12-31 15:38:43 +01:00
Sebastian Gniazdowski cdecc85f19 Updated README.md 2017-12-31 15:34:06 +01:00
Sebastian Gniazdowski ffe1f60321 *autoload: Add help message on `srv' subcommand 2017-12-31 15:23:29 +01:00
Sebastian Gniazdowski 44503ff35f zplugin: Add subcommand `srv' which controls services 2017-12-31 15:20:51 +01:00
Sebastian Gniazdowski 0b6b5cd9e0 zplugin: Modify *service to use sub-shell, to workaround zsystem bug 2017-12-31 13:14:46 +01:00
Sebastian Gniazdowski 956847e381 zplugin: *shadow-autoload to be resilient to rcexpandparam 2017-12-31 08:40:32 +01:00
Sebastian Gniazdowski 8475b279fe test: Update tests for the services feature 2017-12-30 08:08:22 +01:00
Sebastian Gniazdowski c53e6ccc64 zplugin: Background services support 2017-12-30 07:30:27 +01:00
Sebastian Gniazdowski b0f2585050 zplugin: Mute few messages appearing when e.g. re-sourcing zshrc 2017-12-27 16:03:37 +01:00
Sebastian Gniazdowski 927b5601f7 Updated README.md 2017-12-27 12:21:44 +01:00
Sebastian Gniazdowski 7fd0e7e87a Updated README.md 2017-12-27 07:07:03 +01:00
Sebastian Gniazdowski f996e6ec29 Updated README.md 2017-12-27 06:51:38 +01:00
Sebastian Gniazdowski 8bf3047c0c Updated README.md 2017-12-24 18:22:41 +01:00
Sebastian Gniazdowski 56eb3dd2dc Updated README.md (DocToc) 2017-12-22 16:15:12 +01:00
Sebastian Gniazdowski e4817f75bb zplugin: Ices atinit, atload correctly handle local-path plugins. (#4) 2017-12-22 06:43:48 +01:00
Sebastian Gniazdowski 5c712a1815 zplugin: Scheduler keeps $? value unchanged. Fixes #36. 2017-12-22 06:23:00 +01:00
Sebastian Gniazdowski 64c55d51fe test: More accurate measurement of time in performance tests (two) 2017-12-17 18:36:06 +01:00
Sebastian Gniazdowski f559b20297 zplugin: More small optimizations for *load-plugin
testp1:

num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1) 10400         732.99     0.07   22.72%    732.99     0.07   22.72%  -zplg-add-report
 2) 2800         720.51     0.26   22.33%    518.87     0.19   16.08%  --zplg-shadow-bindkey
 3)  200        3130.33    15.65   97.02%    408.27     2.04   12.65%  -zplg-load-plugin
 4) 2000         435.96     0.22   13.51%    292.61     0.15    9.07%  --zplg-shadow-zle
 5)  400         241.48     0.60    7.48%    241.48     0.60    7.48%  -zplg-diff-parameter
 6) 1400         317.08     0.23    9.83%    219.75     0.16    6.81%  --zplg-shadow-zstyle
 7)  600         367.90     0.61   11.40%    214.55     0.36    6.65%  --zplg-shadow-alias
 8) 1000         261.87     0.26    8.12%    138.33     0.14    4.29%  --zplg-shadow-autoload
 9)  400          59.10     0.15    1.83%     59.10     0.15    1.83%  -zplg-diff-functions
10) 2800         769.30     0.27   23.84%     48.79     0.02    1.51%  bindkey
11)  400          40.47     0.10    1.25%     40.47     0.10    1.25%  -zplg-diff-options
12)  400          35.55     0.09    1.10%     35.55     0.09    1.10%  -zplg-diff-env
13) 2000         470.46     0.24   14.58%     34.50     0.02    1.07%  zle
14)  200        3205.88    16.03   99.36%     29.71     0.15    0.92%  -zplg-load
15)  200          63.47     0.32    1.97%     26.73     0.13    0.83%  add-zsh-hook
16)  200          26.66     0.13    0.83%     26.66     0.13    0.83%  -zplg-shadow-on
17)  200          25.26     0.13    0.78%     25.26     0.13    0.78%  -zplg-register-plugin
18) 1400         338.75     0.24   10.50%     21.66     0.02    0.67%  zstyle
19)  200         185.97     0.93    5.76%     21.10     0.11    0.65%  select-word-style
20)  200          20.48     0.10    0.63%     20.48     0.10    0.63%  -zplg-shadow-off

Measured time: 3.231

testp2:

num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1)  200         681.39     3.41   88.60%    326.64     1.63   42.47%  -zplg-load-plugin
 2) 1000         257.06     0.26   33.42%    141.28     0.14   18.37%  --zplg-shadow-autoload
 3) 2000         128.77     0.06   16.74%    128.77     0.06   16.74%  -zplg-add-report
 4)  200          61.30     0.31    7.97%     26.19     0.13    3.41%  add-zsh-hook
 5)  200         749.70     3.75   97.48%     25.66     0.13    3.34%  -zplg-load
 6)  200          23.49     0.12    3.05%     23.49     0.12    3.05%  -zplg-register-plugin
 7)  200          18.41     0.09    2.39%     18.41     0.09    2.39%  select-word-style
 8)  200         767.78     3.84   99.83%     18.08     0.09    2.35%  zplugin
 9) 1000         273.27     0.27   35.53%     16.21     0.02    2.11%  autoload
10)  200          12.50     0.06    1.63%     12.50     0.06    1.63%  -zplg-shadow-on
11)  200          11.90     0.06    1.55%     11.90     0.06    1.55%  -zplg-any-to-user-plugin
12)  200          11.39     0.06    1.48%     11.39     0.06    1.48%  -zplg-shadow-off
13)  200           7.27     0.04    0.94%      7.27     0.04    0.94%  -zplg-pack-ice
14)    1         769.10   769.10  100.00%      1.32     1.32    0.17%  (anon)

-----------------------------------------------------------------------------------

Measured time: 0.774
2017-12-17 10:49:34 +01:00
Sebastian Gniazdowski cf9823a3e8 test: update tests for the `tiny optimization' from previous commit 2017-12-17 09:46:45 +01:00
Sebastian Gniazdowski d1aed98856 zplugin: tiny *load-plugin optimization; plus a small fix
testp1:

num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1) 10400         730.99     0.07   22.60%    730.99     0.07   22.60%  -zplg-add-report
 2) 2800         719.95     0.26   22.26%    517.95     0.18   16.02%  --zplg-shadow-bindkey
 3)  200        3137.32    15.69   97.01%    417.01     2.09   12.89%  -zplg-load-plugin
 4) 2000         434.12     0.22   13.42%    291.93     0.15    9.03%  --zplg-shadow-zle
 5)  400         246.84     0.62    7.63%    246.84     0.62    7.63%  -zplg-diff-parameter
 6) 1400         314.91     0.22    9.74%    217.79     0.16    6.73%  --zplg-shadow-zstyle
 7)  600         360.22     0.60   11.14%    209.98     0.35    6.49%  --zplg-shadow-alias
 8) 1000         265.93     0.27    8.22%    140.15     0.14    4.33%  --zplg-shadow-autoload
 9)  400          59.67     0.15    1.85%     59.67     0.15    1.85%  -zplg-diff-functions
10) 2800         768.79     0.27   23.77%     48.84     0.02    1.51%  bindkey
11)  400          40.54     0.10    1.25%     40.54     0.10    1.25%  -zplg-diff-options
12)  400          35.01     0.09    1.08%     35.01     0.09    1.08%  -zplg-diff-env
13) 2000         468.06     0.23   14.47%     33.95     0.02    1.05%  zle
14)  200        3213.18    16.07   99.36%     29.95     0.15    0.93%  -zplg-load
15)  200          27.89     0.14    0.86%     27.89     0.14    0.86%  -zplg-shadow-on
16)  200          63.13     0.32    1.95%     26.63     0.13    0.82%  add-zsh-hook
17)  200          25.64     0.13    0.79%     25.64     0.13    0.79%  -zplg-register-plugin
18)  200         193.83     0.97    5.99%     21.99     0.11    0.68%  select-word-style
19) 1400         336.30     0.24   10.40%     21.39     0.02    0.66%  zstyle
20)  200          20.65     0.10    0.64%     20.65     0.10    0.64%  -zplg-shadow-off

Measured time: 3.239

testp2:

num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1)  200         705.06     3.53   88.54%    338.01     1.69   42.45%  -zplg-load-plugin
 2) 1000         265.87     0.27   33.39%    146.61     0.15   18.41%  --zplg-shadow-autoload
 3) 2000         133.03     0.07   16.71%    133.03     0.07   16.71%  -zplg-add-report
 4)  200         776.28     3.88   97.49%     27.09     0.14    3.40%  -zplg-load
 5)  200          63.02     0.32    7.91%     26.84     0.13    3.37%  add-zsh-hook
 6)  200          24.23     0.12    3.04%     24.23     0.12    3.04%  -zplg-register-plugin
 7)  200          18.73     0.09    2.35%     18.73     0.09    2.35%  select-word-style
 8)  200         794.95     3.97   99.83%     18.67     0.09    2.34%  zplugin
 9) 1000         282.84     0.28   35.52%     16.97     0.02    2.13%  autoload
10)  200          12.95     0.06    1.63%     12.95     0.06    1.63%  -zplg-shadow-on
11)  200          12.40     0.06    1.56%     12.40     0.06    1.56%  -zplg-any-to-user-plugin
12)  200          11.91     0.06    1.50%     11.91     0.06    1.50%  -zplg-shadow-off
13)  200           7.49     0.04    0.94%      7.49     0.04    0.94%  -zplg-pack-ice
14)    1         796.30   796.30  100.00%      1.35     1.35    0.17%  (anon)

-----------------------------------------------------------------------------------

Measured time: 0.800
2017-12-17 09:29:18 +01:00
Sebastian Gniazdowski e1612311a6 test: New performance test p2 that uses loading without reporting
Current performance:

testp1:

num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1) 10400         737.48     0.07   22.67%    737.48     0.07   22.67%  -zplg-add-report
 2) 2800         729.27     0.26   22.42%    524.14     0.19   16.11%  --zplg-shadow-bindkey
 3)  200        3156.27    15.78   97.02%    419.61     2.10   12.90%  -zplg-load-plugin
 4) 2000         434.06     0.22   13.34%    290.61     0.15    8.93%  --zplg-shadow-zle
 5)  400         246.71     0.62    7.58%    246.71     0.62    7.58%  -zplg-diff-parameter
 6) 1400         317.42     0.23    9.76%    219.51     0.16    6.75%  --zplg-shadow-zstyle
 7)  600         365.91     0.61   11.25%    213.75     0.36    6.57%  --zplg-shadow-alias
 8) 1000         263.64     0.26    8.10%    138.39     0.14    4.25%  --zplg-shadow-autoload
 9)  400          58.95     0.15    1.81%     58.95     0.15    1.81%  -zplg-diff-functions
10) 2800         778.82     0.28   23.94%     49.54     0.02    1.52%  bindkey
11)  400          40.43     0.10    1.24%     40.43     0.10    1.24%  -zplg-diff-options
12)  400          34.35     0.09    1.06%     34.35     0.09    1.06%  -zplg-diff-env
13) 2000         468.25     0.23   14.39%     34.19     0.02    1.05%  zle
14)  200        3232.32    16.16   99.36%     30.58     0.15    0.94%  -zplg-load
15)  200          27.37     0.14    0.84%     27.37     0.14    0.84%  -zplg-shadow-on
16)  200          63.24     0.32    1.94%     26.53     0.13    0.82%  add-zsh-hook
17)  200          25.29     0.13    0.78%     25.29     0.13    0.78%  -zplg-register-plugin
18)  200         193.75     0.97    5.96%     22.32     0.11    0.69%  select-word-style
19) 1400         339.20     0.24   10.43%     21.78     0.02    0.67%  zstyle
20)  200          20.69     0.10    0.64%     20.69     0.10    0.64%  -zplg-shadow-off

Measured time: 3.258

testp2:

num  calls                time                       self            name
-----------------------------------------------------------------------------------
 1)  200         709.22     3.55   88.47%    342.18     1.71   42.69%  -zplg-load-plugin
 2) 1000         264.82     0.26   33.03%    144.36     0.14   18.01%  --zplg-shadow-autoload
 3) 2000         134.24     0.07   16.75%    134.24     0.07   16.75%  -zplg-add-report
 4)  200         781.62     3.91   97.50%     27.03     0.14    3.37%  -zplg-load
 5)  200          63.54     0.32    7.93%     26.99     0.13    3.37%  add-zsh-hook
 6)  200          25.30     0.13    3.16%     25.30     0.13    3.16%  -zplg-register-plugin
 7)  200          19.21     0.10    2.40%     19.21     0.10    2.40%  select-word-style
 8)  200         800.27     4.00   99.83%     18.64     0.09    2.33%  zplugin
 9) 1000         281.66     0.28   35.14%     16.84     0.02    2.10%  autoload
10)  200          13.45     0.07    1.68%     13.45     0.07    1.68%  -zplg-shadow-on
11)  200          12.53     0.06    1.56%     12.53     0.06    1.56%  -zplg-any-to-user-plugin
12)  200          11.94     0.06    1.49%     11.94     0.06    1.49%  -zplg-shadow-off
13)  200           7.54     0.04    0.94%      7.54     0.04    0.94%  -zplg-pack-ice
14)    1         801.65   801.65  100.00%      1.38     1.38    0.17%  (anon)

-----------------------------------------------------------------------------------

Measured time: 0.806
2017-12-17 09:04:49 +01:00
Sebastian Gniazdowski 9d8055c9f9 test: 1st performance test - test p1 2017-12-17 07:39:51 +01:00
Sebastian Gniazdowski 23646be64f Travis: build should be fixed 2017-12-17 06:41:59 +01:00
Sebastian Gniazdowski d224ecc7fe Travis: troubleshooting 2017-12-17 06:32:07 +01:00
Sebastian Gniazdowski ffdc00cbc5 Travis: troubleshooting 2017-12-17 06:27:18 +01:00
Sebastian Gniazdowski 42b17982f1 test: New general test 102 that verifies unloading of complex plugin 2017-12-17 06:12:34 +01:00
Sebastian Gniazdowski db9dee03bb zplugin: Use declare not local to define global parameters 2017-12-16 22:11:03 +01:00
Sebastian Gniazdowski 9c8d4618b9 zplugin: *shadow-zle supports "--" in arguments (test 102) 2017-12-12 16:51:24 +01:00
Sebastian Gniazdowski 93ad8a4871 *autoload: Unload also restores aliases, not only removes (test 102) 2017-12-12 16:29:45 +01:00
Sebastian Gniazdowski a6843dc8c6 zplugin: *shadow-alias saves previous alias state (upcoming test 102) 2017-12-11 18:26:42 +01:00
Sebastian Gniazdowski 1d7afdadd4 test: Fix build (*parameter-compute update) 2017-12-11 18:26:00 +01:00
Sebastian Gniazdowski 7ac99d19eb *autoload: *parameter-compute patched by upcoming test 102 point 2017-12-11 18:15:30 +01:00
Sebastian Gniazdowski 8e7195bca0 *autoload: *functions-compute patched by upcoming test 102 point 2017-12-11 18:10:29 +01:00
Sebastian Gniazdowski 0325a9b02e test: New test-plugin `zsh-editing-workbench' 2017-12-11 12:39:36 +01:00
Sebastian Gniazdowski 5561861af8 *autoload: *format-parameter declares own parameters once 2017-12-10 17:19:59 +01:00
Sebastian Gniazdowski 939501cdbc Travis,Makefile: Do test ignore_close_braces on Travis for a while 2017-12-10 17:15:58 +01:00
Sebastian Gniazdowski 7ada393de7 Updated README.md 2017-12-10 17:14:09 +01:00
Sebastian Gniazdowski 08148c9021 test,*install: Tests with ignore_close_braces, zplugin is compatible 2017-12-10 17:08:06 +01:00
Sebastian Gniazdowski 2b3f0b923c test: New general test 101 that checks `unload' subcommand 2017-12-10 13:52:19 +01:00
Sebastian Gniazdowski 177f2fa1db test: store_state doesn't break `unload' subcommand; has output path 2017-12-10 13:02:20 +01:00
Sebastian Gniazdowski e6872b6d29 *autoload: *env-compute patched by accidental test 101 (upcoming) points 2017-12-10 13:00:29 +01:00
Sebastian Gniazdowski 082058e06a zplugin,*autoload,README: Option -q (quiet) for subcommand `unload' 2017-12-10 12:59:30 +01:00
Sebastian Gniazdowski 34136c2eed *autoload: warn_create_global reports from upcoming test 101 2017-12-10 12:01:56 +01:00
Sebastian Gniazdowski 53cd780ae5 test: Update README of test 100 2017-12-10 11:50:54 +01:00
Sebastian Gniazdowski 1ba000c72b test: New general test 100, checks load,list,compiled,zstatus,csearch 2017-12-10 09:39:08 +01:00
Sebastian Gniazdowski e63ae752de *autoload: warn_create_global reports from upcoming test 100 2017-12-10 09:28:09 +01:00
Sebastian Gniazdowski 6ff45228e1 test: runtest sets empty colors and EXTENDED_GLOB 2017-12-10 08:07:08 +01:00
Sebastian Gniazdowski 5b09e8e41a test: New CURL test 70 which checks `src' ice 2017-12-10 04:05:33 +01:00
Sebastian Gniazdowski d732f499a5 test: New CURL test 30 which checks `src' ice 2017-12-09 21:11:24 +01:00
Sebastian Gniazdowski 2e4607105a zplugin: Compdef shadowing enabled for `src' when as"command" (snippets) 2017-12-09 20:56:33 +01:00
Sebastian Gniazdowski 573febbc49 *side,*install,*autoload: Significant cleanup via -zplg-store-ices 2017-12-09 17:25:59 +01:00
Sebastian Gniazdowski 87b0a52265 *install,README: Ice silent mutes also completion-installation messages 2017-12-09 16:50:37 +01:00
Sebastian Gniazdowski 87dac6cc1a *autoload,README: Document -q (quiet) option for `creinstall' 2017-12-09 12:26:30 +01:00
Sebastian Gniazdowski 4bb8e74e7d zplugin,*install: -q option to creinstall 2017-12-09 12:23:02 +01:00
Sebastian Gniazdowski 464b1be54c zplugin: Make scheduler ksharrays-compatible 2017-12-09 12:10:08 +01:00
Sebastian Gniazdowski 4a14f6532b Travis: Perform test C and D (noextendedglob, ksharrays) 2017-12-09 10:31:47 +01:00
Sebastian Gniazdowski 7b61547d30 all,test,Makefile: Compatibility with KSH_ARRAYS being set in shell 2017-12-09 10:28:29 +01:00
Sebastian Gniazdowski 7c1a791e9a test: runtest detects if options given, then calls (un)setopt 2017-12-09 07:28:42 +01:00
Sebastian Gniazdowski e86d6d628e Travis: Test target testB (option: kshglob) 2017-12-09 07:27:16 +01:00
Sebastian Gniazdowski 922bec620e test: Option testing, testB target that tests kshglob option 2017-12-09 07:26:07 +01:00
Sebastian Gniazdowski f463f6d122 test: Update test 3 so that it tests ice `atinit' 2017-12-09 06:41:11 +01:00
Sebastian Gniazdowski 284f79087f *install,*autoload: Unset kshglob for patterns to work, fixes #33 2017-12-09 04:06:35 +01:00
Sebastian Gniazdowski 431cf87ae9 Updated README.md 2017-12-08 19:38:48 +01:00
Sebastian Gniazdowski 4b51fe0cc8 zplugin,*install,*autoload,test: Cleanup ice competition; optional pick 2017-12-08 18:04:21 +01:00
Sebastian Gniazdowski 0d1dee90a5 zplugin,*autoload,test: Specifying ice resets static ice, clear solution 2017-12-08 13:29:07 +01:00
Sebastian Gniazdowski 992d63eb29 zplugin: Remove not needed code called each zplugin function run 2017-12-08 12:59:09 +01:00
Sebastian Gniazdowski 4edd7a5a92 zplugin: Uplift pick-related code, recognize pick"" in snippets 2017-12-08 12:48:37 +01:00
Sebastian Gniazdowski 9494958129 test: runtest provides add-zsh-hook 2017-12-08 11:52:00 +01:00
Sebastian Gniazdowski 236513bf1a zplugin: Compress and optimize *add-report 2017-12-08 11:00:28 +01:00
Sebastian Gniazdowski 64498eafe8 zplugin: Optimize *shadow-autoload by use of :+ & removal of 2 params 2017-12-08 10:28:34 +01:00
Sebastian Gniazdowski d8a49802d6 zplugin: Disabled code using 5.4 autoload, need to resolve custom $fpath 2017-12-08 09:52:55 +01:00
Sebastian Gniazdowski 299213149f *autoload,README: Update help messages for the new `delete' subcommand 2017-12-07 17:36:40 +01:00
Sebastian Gniazdowski f1c4ea47b5 zplugin,*autoload: New `delete' subcommand, removes plugins and snippets 2017-12-07 17:29:17 +01:00
Sebastian Gniazdowski d02a734a2e zplugin,*autoload: Better temporary IFS=" " setting, via local 2017-12-07 16:20:39 +01:00
Sebastian Gniazdowski ee776cd6dd zplugin: Defensive removal of trailing / in PATH element, after report 2017-12-07 11:45:18 +01:00
Sebastian Gniazdowski f852011c57 zplugin: Correct place to add report message about PATH 2017-12-07 08:32:43 +01:00
Sebastian Gniazdowski 5cec2cf440 test: Update test 2 & 10 for the remembering of PATH for as"command" 2017-12-07 08:30:50 +01:00
Sebastian Gniazdowski d021393119 zplugin: Remember PATH element added for as"command" plugin, if !light 2017-12-07 08:25:29 +01:00
Sebastian Gniazdowski 34cc530b6b zplugin: as"command" plugins and snippets *prepend* to PATH 2017-12-07 07:18:55 +01:00
Sebastian Gniazdowski 2e27811151 zplugin: Fixed and uplifted messages about load mode (in reports) 2017-12-07 07:14:14 +01:00
Sebastian Gniazdowski 932e080233 Updated README.md 2017-12-07 06:49:33 +01:00
Sebastian Gniazdowski 32e1cba063 zplugin: Fix bug where *.zsh file was chosen before *.zsh-theme 2017-12-06 09:33:35 +01:00
Sebastian Gniazdowski 93b4144a97 Updated README.md 2017-12-05 18:22:49 +01:00
Sebastian Gniazdowski 3dfe293906 Updated README.md 2017-12-05 18:07:03 +01:00
Sebastian Gniazdowski 68b9ee92de zplugin,README: Make silent mod mute also turbo mode messages 2017-12-05 11:46:51 +01:00
Sebastian Gniazdowski 4cdbef8ace zplugin: Better, safe handling of absolute-path pick ice-mod 2017-12-05 06:26:25 +01:00
Sebastian Gniazdowski 723e44d870 Updated README.md 2017-12-05 06:05:26 +01:00
Sebastian Gniazdowski 226842b875 zplugin: Allow pick to be an absolute path 2017-12-05 06:00:36 +01:00
Sebastian Gniazdowski 9f5ef6232b Updated README.md 2017-12-04 17:04:23 +01:00
Sebastian Gniazdowski b33a415171 zplugin: Scheduler to localize (#b) parameters 2017-12-04 15:08:23 +01:00
Sebastian Gniazdowski 3e361cd0f4 zplugin: Scheduling to use distinct parameter names 2017-12-04 11:43:01 +01:00
Sebastian Gniazdowski da19724de4 Updated README.md 2017-12-04 11:01:18 +01:00
Sebastian Gniazdowski d824f2fab7 zsdoc: Updated code documentation 2017-12-04 07:14:48 +01:00
Sebastian Gniazdowski 48b604d19b Updated README.md 2017-12-04 07:06:48 +01:00
Sebastian Gniazdowski 0c0f0f85f5 zplugin,*autoload: New implementation of Turbo Mode. Added load/unload 2017-12-04 05:53:41 +01:00
Sebastian Gniazdowski 359ea71c34 test: Test 9 – add check that isn't performed by rm -f 2017-12-02 01:34:00 +01:00
Sebastian Gniazdowski 1f2dc53239 test: New CURL test 29 which tests %atclone special value of atpull 2017-12-02 01:33:22 +01:00
Sebastian Gniazdowski 1d307a7043 test: New CURL test 27 which checks atpull!', cp' are properly ran 2017-12-01 20:53:11 +01:00
Sebastian Gniazdowski f5ce04b087 test: New CURL test 26 which checks static vs. disk ice competition 2017-12-01 16:51:23 +01:00
Sebastian Gniazdowski f9449aad5e Updated README.md 2017-12-01 12:13:52 +01:00
Sebastian Gniazdowski 68bcd78082 test: New CURL test 25 which checks update and atpull Ice-mod 2017-12-01 09:09:10 +01:00
Sebastian Gniazdowski 0d88fa2939 test: New CURL test 24 which checks if Ice-mod 2017-12-01 07:19:40 +01:00
Sebastian Gniazdowski c6f22eb999 test: New CURL test 23 which checks order of execution of ices 2017-11-30 16:38:31 +01:00
Sebastian Gniazdowski a1f225b864 test: runtest sets LANG, LC_ALL which can normally differ on machines 2017-11-30 16:19:09 +01:00
Sebastian Gniazdowski 7aec5af07f test: Different sort order on Travis, setting LANG, LC_ALL to fix 2017-11-30 15:50:25 +01:00
Sebastian Gniazdowski 815c4b9df2 test: New CURL test 22 which checks as,mv,cp,atclone,atinit,pick 2017-11-30 15:44:35 +01:00
Sebastian Gniazdowski 6a8264df88 zplugin: Upcoming test 22 revealed `atinit' wasn't enabled for parsing 2017-11-30 15:26:13 +01:00
Sebastian Gniazdowski b79576481d Updated README.md 2017-11-30 15:07:30 +01:00
Sebastian Gniazdowski e7e69fe565 test: CURL mock used recent zsh only syntax 2017-11-30 14:31:35 +01:00
Sebastian Gniazdowski d7cf6420a8 test: First CURL test – test 21, acting on git.plugin.zsh 2017-11-30 14:28:30 +01:00
Sebastian Gniazdowski f6a8d781eb test: New snippet, single file (git.plugin.zsh) for CURL tests 2017-11-30 14:21:04 +01:00
Sebastian Gniazdowski 7dfbf7d0d3 test: runtest.zsh to have fully working CURL mock function 2017-11-30 14:19:36 +01:00
Sebastian Gniazdowski 796f715e71 git: Mail-map file 2017-11-30 13:24:08 +01:00
Sebastian Gniazdowski ec8c95ce50 Updated README.md 2017-11-30 11:00:33 +01:00
Sebastian Gniazdowski 9ac5d7796c test: Adapt runtest.zsh for (P) patch 37092 – support new Zsh (>=5.2) 2017-11-30 10:42:12 +01:00
Sebastian Gniazdowski 2d651d4280 zplugin: New ice `atinit', ran after directory setup, before loading 2017-11-30 10:13:18 +01:00
Sebastian Gniazdowski a9fa225765 zplugin: Don't execute atload if snippet didn't load correctly 2017-11-30 10:11:15 +01:00
Sebastian Gniazdowski 70e2ebcf4a *autoload: -zplg-at-eval explicitly and correctly forwards last value 2017-11-30 09:45:33 +01:00
Sebastian Gniazdowski a1e220b74b *autoload: warn_create_global hinted URL should be __URL 2017-11-30 07:27:39 +01:00
Sebastian Gniazdowski 2e250baee0 *autoload: Use print not echo, also use -r and -- 2017-11-30 07:22:23 +01:00
Sebastian Gniazdowski bdef64867e zplugin,*autoload: Refactoring, one place computing ice; no{make,svn}
Fixed bug with gh-r update where triggers were ran even though version
didn't change.
2017-11-30 07:19:36 +01:00
Sebastian Gniazdowski ced48a08b7 Updated README.md 2017-11-30 05:31:59 +01:00
Sebastian Gniazdowski 2c0a9782c9 Updated README.md 2017-11-29 21:52:24 +01:00
Sebastian Gniazdowski 8eb8a2a780 *autoload: Status on snippets outputs snippet ID first 2017-11-29 21:32:04 +01:00
Sebastian Gniazdowski 8b29dd5fdb *autoload: Refactor update --all: replace inline code with function call 2017-11-29 20:44:50 +01:00
Sebastian Gniazdowski 24b16264ca *side,*autoload: update subcommand supports snippets (given by URL) 2017-11-29 20:28:47 +01:00
Sebastian Gniazdowski 312e557f55 Updated README.md 2017-11-29 17:47:08 +01:00
Sebastian Gniazdowski 7488f69373 Updated README.md 2017-11-29 15:54:17 +01:00
Sebastian Gniazdowski dde317c6a8 *side,*autoload: Extracted -zplg-two-paths from -zplg-cd 2017-11-29 11:45:34 +01:00
Sebastian Gniazdowski 76f3b54290 Revert "zplugin,*side,*autoload: Tune up path and url shorthands"
This reverts commit aa7b5c5444.
2017-11-29 11:28:10 +01:00
Sebastian Gniazdowski 197655ba67 Revert "*side: More tuning up of path and url shorthands"
This reverts commit e20b087692.
2017-11-29 11:27:41 +01:00
Sebastian Gniazdowski e20b087692 *side: More tuning up of path and url shorthands 2017-11-29 10:49:38 +01:00
Sebastian Gniazdowski aa7b5c5444 zplugin,*side,*autoload: Tune up path and url shorthands 2017-11-29 10:46:46 +01:00
Sebastian Gniazdowski 97081bd425 test: New test 51 that checks ice competition with update --all 2017-11-29 06:48:20 +01:00
Sebastian Gniazdowski b870d9a1ad zplugin: Set extendedglob for Prezto functions-pattern 2017-11-28 11:53:48 +01:00
Sebastian Gniazdowski c817e01f9a Updated README.md 2017-11-28 05:57:40 +01:00
Sebastian Gniazdowski 73bd84aea3 zplugin: If wait-ice starts with !, then invoke .reset-prompt (on load) 2017-11-28 05:55:12 +01:00
Sebastian Gniazdowski ae81ab405a Updated README.md 2017-11-27 21:16:21 +01:00
Sebastian Gniazdowski 76258dc5ef zplugin: *wait-cb prints correct message for snippets 2017-11-27 17:21:32 +01:00
Sebastian Gniazdowski c1d85b1241 zplugin: wait'' support also for snippets 2017-11-27 17:12:04 +01:00
Sebastian Gniazdowski 62328254b5 zplugin: No messages when wait'' loads plugin after timeout 2017-11-27 16:15:01 +01:00
Sebastian Gniazdowski fcdb6bb254 zplugin: New ice-mod `wait' that allows startup time optimization 2017-11-27 14:33:11 +01:00
Sebastian Gniazdowski b7f134fd3e Updated README.md 2017-11-26 09:10:03 +01:00
Sebastian Gniazdowski 2dafca1bd0 test: New SVN test 60 that checks if src"" correctly loads a script 2017-11-26 08:49:32 +01:00
Sebastian Gniazdowski 1c924f7b1b test: New test 50 that checks src"" with as"" not being "command" 2017-11-26 08:03:54 +01:00
Sebastian Gniazdowski 9a754aa85c test: Test 10 to output relative REPO_DIR fragment instead of PATH 2017-11-26 03:45:28 +01:00
Sebastian Gniazdowski fd17574add test: Test 10 to not use absolute paths 2017-11-26 03:40:48 +01:00
Sebastian Gniazdowski f003e525ed test: New test 10 that checks src"" ice-mod with as"command" 2017-11-26 01:42:47 +01:00
Sebastian Gniazdowski bbcf46bbcc test: New SVN test 20 that checks src"" ice-mod plus mv,cp,pick,atclone 2017-11-26 01:10:35 +01:00
Sebastian Gniazdowski bb5c266861 Updated README.md 2017-11-25 23:42:16 +01:00
Sebastian Gniazdowski 040c41bab4 zplugin: New ice-mod `src' that specifies additional file to source 2017-11-25 23:37:36 +01:00
Sebastian Gniazdowski c3ad3e0bb0 *install,*autoload: Allow make to be ran before atclone – for make"!..." 2017-11-25 17:58:05 +01:00
Sebastian Gniazdowski 8e3dbeffd1 test: A file with table of which feature is tested in which test 2017-11-25 15:37:02 +01:00
Sebastian Gniazdowski a3625be7eb test: Uplift test 1 and 2 (e.g. add README) 2017-11-25 14:50:00 +01:00
Sebastian Gniazdowski bba212c02b test: New SVN test 16 that checks ice use, normal atpull 2017-11-25 13:37:53 +01:00
Sebastian Gniazdowski acccb14564 test: New SVN test 19 that checks %atclone and ice competition 2017-11-25 08:50:01 +01:00
Sebastian Gniazdowski 1f8ed771c5 test: New SVN test 18 that checks effects of empty update 2017-11-24 20:33:19 +01:00
Sebastian Gniazdowski ba3d4c077b *install: Use builtin' with cd' in one place 2017-11-24 20:19:50 +01:00
Sebastian Gniazdowski 2e5dfc5c46 *install,test: Dir with saved ice has filename-suffix in non-svn mode 2017-11-24 18:48:04 +01:00
Sebastian Gniazdowski 2906723913 New logo 2017-11-24 12:42:50 +01:00
Sebastian Gniazdowski d7b82f086b *install,*autoload,test: Saved ice created properly in same directory 2017-11-24 12:28:44 +01:00
Sebastian Gniazdowski ea26ba459a Revert "zplugin,test: Aggregate static ice with space before not after"
This reverts commit 6337987661.
2017-11-23 18:27:52 +01:00
Sebastian Gniazdowski 6337987661 zplugin,test: Aggregate static ice with space before not after 2017-11-23 18:22:23 +01:00
Sebastian Gniazdowski 6ba10bbf1e *install: cd at atpull! of snippet is verified if it worked 2017-11-23 18:19:51 +01:00
Sebastian Gniazdowski d3ae1178ae Updated README.md 2017-11-23 17:31:33 +01:00
Sebastian Gniazdowski d881854231 *install: Snipets have completions installed on install 2017-11-23 17:18:09 +01:00
Sebastian Gniazdowski cffdb1e82f *install,*autoload,*side: Use shorthands in cd, creinstall, *exists* 2017-11-23 17:14:32 +01:00
Sebastian Gniazdowski c3e9553461 *side: -zplg-shands-exp 2017-11-23 17:09:00 +01:00
Sebastian Gniazdowski 41e2580c30 *side: *physically-message decodes shorthands %SNIPPETS, OMZ::, etc. 2017-11-23 16:56:26 +01:00
Sebastian Gniazdowski 8de8908d1c zplugin: *any-to-user-plugin understands %SNIPPETS. Fix for %/ subst. 2017-11-23 16:28:51 +01:00
Sebastian Gniazdowski 0d7147dad5 *side: Subcommand clist will show abbreviations %SNIPPETS, OMZ::, etc. 2017-11-23 16:26:40 +01:00
Sebastian Gniazdowski 9b3fae7319 test: New SVN test 17 that checks atpull! & cp, (snippet test) 2017-11-23 07:31:31 +01:00
Sebastian Gniazdowski 8fd1cb0481 *install: svn+atpull with ! was executing the hook in wrong dir (test17) 2017-11-23 07:13:03 +01:00
Sebastian Gniazdowski 0f4f5c1521 test: New SVN test 15 that checks update --all with atpull (on snippet) 2017-11-22 17:38:28 +01:00
Sebastian Gniazdowski 8bbdeba8bf test: Added SVN repository with 2 commits, copy of one with 1 commit 2017-11-22 17:34:27 +01:00
Sebastian Gniazdowski 417c573b48 test: New SVN test 14 that checks `if' ice-mod 2017-11-22 09:34:43 +01:00
Sebastian Gniazdowski 556843ceb8 test: New SVN test 13 that checks order of execution of ices mv,cp,etc. 2017-11-22 08:23:49 +01:00
Sebastian Gniazdowski f8f816152e test: Added SVN repository to be used as test snippet – `ice-order' 2017-11-22 08:19:04 +01:00
Sebastian Gniazdowski 1ceb21b1b9 test: Report when urlmap doesn't match; forward svn error code 2017-11-22 07:38:24 +01:00
Sebastian Gniazdowski 6b478fc72b test: New SVN test 12 that checks ices as, mv, cp, atclone, pick 2017-11-21 18:28:10 +01:00
Sebastian Gniazdowski 220d93593b *install: Upcoming test 12 – fix cd path in mv,cp ices (svn snippets) 2017-11-21 18:23:39 +01:00
Sebastian Gniazdowski 517dcabe70 test: New test 11 that uses the svn-mock loading a snippet 2017-11-21 17:27:49 +01:00
Sebastian Gniazdowski 09e898ba35 test: Added SVN repository with single commit to be used as test snippet 2017-11-21 17:21:00 +01:00
Sebastian Gniazdowski 98b7abd89e test: Support for SVN tests (added svn mock, updated diff commands) 2017-11-21 17:17:58 +01:00
Sebastian Gniazdowski 5458a0e309 *install: Use command' precmd with svn' invocations 2017-11-21 15:35:03 +01:00
Sebastian Gniazdowski 983c0e1e9a test: Url-maps were using file:// prefix in input urls, changed that 2017-11-21 15:25:40 +01:00
Sebastian Gniazdowski d62224143c test: Uplift multiple (5) tests, e.g. ">" -> ">!" 2017-11-21 08:29:59 +01:00
Sebastian Gniazdowski 35e379afcf test: New test 9 that checks %atclone 2017-11-21 08:26:40 +01:00
Sebastian Gniazdowski 5cb866ecd4 test: New test 8 that checks no-execution of ices when update is empty 2017-11-21 07:55:12 +01:00
Sebastian Gniazdowski 5803f7e59c test: Uplift and attach test 7 2017-11-21 07:50:53 +01:00
Sebastian Gniazdowski f4a93895d6 test: New test 7 that checks atpull'!...' executing before `git pull' 2017-11-21 07:27:04 +01:00
Sebastian Gniazdowski 2c3945ca51 zplugin,*install,*autoload: Check if cd builtins succeed before eval 2017-11-21 06:55:44 +01:00
Sebastian Gniazdowski d791e10f47 Updated README.md 2017-11-20 21:22:32 +01:00
Sebastian Gniazdowski 7af827e39e test: Update tests (atclone now stored as static ice and saved) 2017-11-20 18:11:52 +01:00
Sebastian Gniazdowski 4feb5a7b56 Updated README.md 2017-11-20 18:07:23 +01:00
Sebastian Gniazdowski 83b5ae8777 zplugin,*install,*autoload: atpull can be set to: %atclone 2017-11-20 18:03:31 +01:00
Sebastian Gniazdowski 567ac7679e test: Add vim modeline with zsh file-type to 2 tests 2017-11-20 17:09:34 +01:00
Sebastian Gniazdowski 6b5d33f3b1 *autoload: update-or-status again does better condition to spare a fork 2017-11-20 17:07:49 +01:00
Sebastian Gniazdowski 1e78edea79 *install: Remove not needed (Q) flag from eval of ZPLG_ICE[atpull] 2017-11-20 16:59:12 +01:00
Sebastian Gniazdowski cacc330707 *install: Remove debug print 2017-11-20 16:49:50 +01:00
Sebastian Gniazdowski 6c1cd9721c *install: Correct place to detect Subversion (*mirror-using-svn) 2017-11-20 11:41:27 +01:00
Sebastian Gniazdowski 390b851897 *install: Enable atpull'!...' also for local files 2017-11-20 11:38:12 +01:00
Sebastian Gniazdowski b5dd81211f *install,README: Support for atpull Ice-mod in snippets 2017-11-20 11:33:12 +01:00
Sebastian Gniazdowski 730fce43b3 *autoload: update-or-status does better condition to spare a fork 2017-11-20 11:31:42 +01:00
Sebastian Gniazdowski e58eaff13b *install: Better detection if snipped is set up for the first time 2017-11-20 11:30:22 +01:00
Sebastian Gniazdowski fc1edb03bf *install: Correct check for svn availability 2017-11-20 10:12:30 +01:00
Sebastian Gniazdowski d7ef344880 Updated README.md 2017-11-20 07:49:30 +01:00
Sebastian Gniazdowski fabec9f1d1 *install: Message when Subversion not detected 2017-11-20 07:25:12 +01:00
Sebastian Gniazdowski e7644f94c0 test: New test 6 that checks ice competition 2017-11-19 18:00:39 +01:00
Sebastian Gniazdowski 441f5e1008 tests: runtest.zsh aborts when the source script returns with error 2017-11-19 17:46:41 +01:00
Sebastian Gniazdowski eeab5e69c9 test: New test 5 that checks atpull, saved ice and ice vanishing 2017-11-19 11:28:57 +01:00
Sebastian Gniazdowski d68f59b964 test: New test plugin zsh-select-more for upcoming test 5 2017-11-19 11:26:06 +01:00
Sebastian Gniazdowski 3d7039b858 test: Git mock supports other commands and uses $TEST_DIR not $PWD 2017-11-19 10:57:30 +01:00
Sebastian Gniazdowski 01ed5a61cc test: Update test 2 so that no-sourcing of *.plugin.zsh file is detected 2017-11-19 10:17:41 +01:00
Sebastian Gniazdowski 64c9fc6216 test: runtest.zsh to clean-up .git symlink after finishing test 2017-11-19 09:57:49 +01:00
Sebastian Gniazdowski b7f97b6e2b *autoload: update --all informs about updating unloaded snippets 2017-11-19 09:28:32 +01:00
Sebastian Gniazdowski a99cf6b8e8 test: Attach test 4 (ice-mods vanishing) 2017-11-19 09:27:24 +01:00
Sebastian Gniazdowski 476ff5ec66 zplugin: New practically perfect method of ice-mods vanishing 2017-11-19 09:23:47 +01:00
Sebastian Gniazdowski 54a43fcf3e test: New unattached test 4 that verifies if ice-mods vanish correctly 2017-11-19 09:19:43 +01:00
Sebastian Gniazdowski 64be10fa6c test: Update test 3 (ice-order test) to check also make ice-mod 2017-11-19 08:20:28 +01:00
Sebastian Gniazdowski 24384c1200 zplugin: *load-snippet has correct ice vs. sice priorities 2017-11-19 01:53:34 +01:00
Sebastian Gniazdowski 70276ccb82 zplugin,*autoload: No static-ice packing when updating with "--all" 2017-11-19 01:19:24 +01:00
Sebastian Gniazdowski e61f83c3c5 *autoload: Update-all has shorter disk-ice retrieval, hides ZPLG_ICE 2017-11-19 01:11:40 +01:00
Sebastian Gniazdowski 7defcf1adb *install: Always show before-last url segment on update of snippet 2017-11-19 00:32:29 +01:00
Sebastian Gniazdowski 1d5af22efd *install,*autoload: Updating svn snippet calls "svn update"; bug fixes 2017-11-19 00:21:48 +01:00
Sebastian Gniazdowski 500e4b6125 test: Enable test 3 2017-11-18 12:05:48 +01:00
Sebastian Gniazdowski 2e0edf20f2 test: Fix test 3 and add it to Makefile to default test target 2017-11-18 12:01:17 +01:00
Sebastian Gniazdowski 7c1d88844d test: ice-order model was commited as submodule, remove it 2017-11-18 11:59:35 +01:00
Sebastian Gniazdowski e39e8477b3 test: New test 3 that verifies order of execution of ice modifiers 2017-11-18 11:51:56 +01:00
Sebastian Gniazdowski e0af5dd34e test: Model (in test 1) doesn't need .test_git directory 2017-11-18 11:06:14 +01:00
Sebastian Gniazdowski d1b8bd3cfb test: Diff doesn't compare access rights, solve this by *.is_exec file 2017-11-18 11:04:19 +01:00
Sebastian Gniazdowski 030bfa8e3b test: Fix Travis build failing because of not-relative symlinks used 2017-11-18 10:53:36 +01:00
Sebastian Gniazdowski 55d4aa3dcb test: Add git-keep file to empty `snippets' dir 2017-11-18 09:09:08 +01:00
Sebastian Gniazdowski 67f7a832b7 *autoload: Slightly better language in message about curl, git 2017-11-18 09:06:06 +01:00
Sebastian Gniazdowski 82e3dbf881 test: New test 2 that uses as,mv,cp,atclone,from ices 2017-11-18 09:05:09 +01:00
Sebastian Gniazdowski 193dbdd269 test: Print ZPLGM sorted, update test 1 model 2017-11-18 08:44:26 +01:00
Sebastian Gniazdowski 1a3d3ba82f test: Save Zplugin state after test has been run for comparison. Uplifts 2017-11-18 08:02:39 +01:00
Sebastian Gniazdowski 2d1f6e29b8 zplugin: Try harder to get absolute path from $0 – check, then fetch %N 2017-11-17 18:27:28 +01:00
Sebastian Gniazdowski f3bbc8380c test: Dump $ZPLGM hash into answer/state, provide model, compare at test 2017-11-17 18:22:23 +01:00
Sebastian Gniazdowski 0bfa879469 test: Makefile variable EMUL to select argument for `emulate' builtin 2017-11-17 15:12:02 +01:00
Sebastian Gniazdowski 8f55a38a79 Travis: Make Travis bot join IRC channel on notification 2017-11-17 15:00:34 +01:00
Sebastian Gniazdowski 5af79b214a Travis: Full verbosity of make test 2017-11-17 14:57:47 +01:00
Sebastian Gniazdowski a03f587743 test: End of Travis investigation, restore normal test verbosity 2017-11-17 14:56:55 +01:00
Sebastian Gniazdowski f6b073108e test: Missing objects in the embedded test_plugin (repository) 2017-11-17 14:41:56 +01:00
Sebastian Gniazdowski 3c29e3292b test: Investigate Travis error 2017-11-17 14:32:34 +01:00
Sebastian Gniazdowski 685643f9f6 test: Update Makefile of test 1 so that .test_git is ignored in diff 2017-11-17 14:26:43 +01:00
Sebastian Gniazdowski a3e3354e40 test: Update model of test 1 2017-11-17 14:25:30 +01:00
Sebastian Gniazdowski 6365a7e6c3 test: Updated test plugin (zsh-select) 2017-11-17 14:24:02 +01:00
Sebastian Gniazdowski e5d3b480d3 test: Fix test 1 so that warncreateglobal isn't triggered 2017-11-17 14:18:42 +01:00
Sebastian Gniazdowski 5659ef617a test: Test's verbosity can be controlled via $(DEBUG), $(VERBOSE) 2017-11-17 14:16:58 +01:00
Sebastian Gniazdowski 2355e2b1a0 test,Travis: Made test-suite working, attached to Travis CI 2017-11-17 13:44:25 +01:00
Sebastian Gniazdowski b6a4d1c5c1 test: First stage of adding test suite, required is a prepare script 2017-11-17 13:04:32 +01:00
Sebastian Gniazdowski f9464dc1fc zplugin,*install,*autoload: Allow _zplugin to be c-reinstalled, fix init 2017-11-16 17:45:42 +01:00
David O'Trakoun c49784f184 typo 2017-11-16 16:50:21 +01:00
Sebastian Gniazdowski 71407901cf test: Remove old testing framework 2017-11-16 11:56:52 +01:00
Sebastian Gniazdowski 7354f2a085 *install: Ensure that grep is used directly, not through alias, etc. 2017-11-16 06:54:48 +01:00
Sebastian Gniazdowski 4cb3cd9d5f Updated README.md 2017-11-15 18:32:12 +01:00
Sebastian Gniazdowski 2993f798db Updated README.md 2017-11-14 03:48:01 +01:00
Sebastian Gniazdowski 6e68943375 zplugin,*install,*autoload: Fixed bug with release selection, via bpick 2017-11-14 03:39:14 +01:00
Sebastian Gniazdowski 8b5f9de1e3 *install,*autoload: Don't treat z-sy-h functions like completions 2017-11-14 02:01:49 +01:00
Sebastian Gniazdowski 60d5e5dbe6 Updated README.md 2017-11-14 00:32:24 +01:00
Sebastian Gniazdowski 3565a574e0 Updated README.md 2017-11-13 22:22:49 +01:00
Sebastian Gniazdowski 700e9f1e7c *install: Don't use verbose mode when unpacking with tar 2017-11-13 22:20:40 +01:00
Sebastian Gniazdowski ab4b19bd2f Updated README.md 2017-11-13 21:43:56 +01:00
Sebastian Gniazdowski 12f5df8c1f Updated README.md 2017-11-13 20:11:50 +01:00
Sebastian Gniazdowski 51cef5723c zplugin,*install,*autoload: Makefile support in plugins and snippets 2017-11-13 19:28:39 +01:00
Sebastian Gniazdowski c7a8a19463 _zplugin: Complete also file-paths for subcommands load & light 2017-11-13 17:23:00 +01:00
Sebastian Gniazdowski 704bd4fcec zplugin: Rudimentary but effective noaliases-fix for OMZ common-aliases 2017-11-13 10:43:34 +01:00
David O'Trakoun 039373af0e psprint -> zdharma 2017-11-10 11:10:54 +01:00
Sebastian Gniazdowski b6b763393a Updated README.md 2017-11-09 17:04:08 +01:00
Sebastian Gniazdowski bebde8295c Updated README.md 2017-11-09 16:11:22 +01:00
Sebastian Gniazdowski 6d8d95f3c0 Updated README.md 2017-11-09 16:10:09 +01:00
Sebastian Gniazdowski 3365493e4f *install,*autoload: Treat only regular files as completions 2017-11-07 13:22:31 +01:00
Sebastian Gniazdowski c9bc449f1c Updated README.md 2017-11-06 14:18:11 +01:00
Sebastian Gniazdowski 3b49a74806 Updated README.md 2017-11-06 04:29:32 +01:00
Sebastian Gniazdowski 964f5c460f zplugin: New ice `silent' that mutes stderr & stdout of plugin, snippet 2017-11-06 04:25:00 +01:00
Sebastian Gniazdowski d4622d1ce2 Updated README.md 2017-11-06 04:12:45 +01:00
Sebastian Gniazdowski 8f1988f6a9 Updated README.md 2017-11-05 23:01:32 +01:00
Sebastian Gniazdowski 86fdd5436d *install: Small uplift on messages about installing completions 2017-11-05 22:43:43 +01:00
Sebastian Gniazdowski e16ff0dd49 zplugin,*autoload: Show mutable multiple completions per line, in clist 2017-11-05 22:21:51 +01:00
Sebastian Gniazdowski 1c4bb8170e *autoload: Two functions were calling *prepare-readlink on each loop run 2017-11-05 17:27:41 +01:00
Sebastian Gniazdowski dc881a10b5 Updated README.md 2017-11-05 03:00:08 +01:00
Sebastian Gniazdowski d587bf19f1 *autoload: self-update compiles zplugin 2017-11-05 02:47:54 +01:00
Sebastian Gniazdowski ecc85e1ea4 Updated README.md 2017-11-05 00:00:54 +01:00
Sebastian Gniazdowski a0c9cc037b *autoload: Better help message on subcommand `snippet' 2017-11-04 22:58:17 +01:00
Sebastian Gniazdowski 54c8e9e7bb (_|)zplugin,*autoload: New subcommand `ls' that pretty-lists snippet dir 2017-11-04 22:54:19 +01:00
Sebastian Gniazdowski 64af251ec0 *install: Explicit return of svn-command return code from *mirror*svn 2017-11-04 22:51:49 +01:00
Sebastian Gniazdowski 269c7ab465 *install: Remove snippet directory if no successful download (svn,nosvn) 2017-11-04 22:44:29 +01:00
Sebastian Gniazdowski fa6c3cd734 *install: Check for correct snippet directory when outputting message 2017-11-04 22:42:06 +01:00
Sebastian Gniazdowski 85fab538b0 *install: Delete file created by >! if no download. No zcompile if ! -e 2017-11-04 22:32:12 +01:00
Sebastian Gniazdowski b5a7bbb71d *autoload: No inline-script loading of meta-data, use loop (update code) 2017-11-04 17:35:32 +01:00
Sebastian Gniazdowski e873718ff9 zplugin: Remove global hash ZPLG_BACKUP_FUNCTIONS, use ZPLGM[bkp-...] 2017-11-04 17:25:02 +01:00
Sebastian Gniazdowski b78e9f6c5d zplugin: Multiple sets in one line in *register-plugin, less code lines 2017-11-04 17:12:00 +01:00
Sebastian Gniazdowski a011f8a4b6 Updated README.md 2017-11-04 11:35:41 +01:00
Sebastian Gniazdowski 9a349f2cae *autoload: New *-cd(), understands SVN and non-SVN snippets 2017-11-04 11:26:09 +01:00
Sebastian Gniazdowski 3a4975ac86 zplugin: Use "--" not "--S--" for slash in snippet dirs. Do %/ on urls 2017-11-04 11:23:59 +01:00
Sebastian Gniazdowski a5fd5db4e7 *install,*autoload: Updating works with Github binary releases 2017-11-03 18:25:51 +01:00
Sebastian Gniazdowski 52dd1d841d *autoload: Don't use zplg' alias but zplugin' directly 2017-11-03 17:01:08 +01:00
Sebastian Gniazdowski d5175c2cf8 Travis: Skip-join flag for IRC notifications 2017-11-03 16:39:19 +01:00
Sebastian Gniazdowski 1f4fe11baf *autoload: Localize `key' parameter in *update-or-status 2017-11-03 16:38:53 +01:00
Sebastian Gniazdowski aad97718b8 *autoload: Plugin update loads ices from disk, saves there updated ices 2017-11-03 16:01:15 +01:00
Sebastian Gniazdowski 9a32b9cae0 zplugin: Save `as' ice in static ices 2017-11-03 16:00:40 +01:00
Sebastian Gniazdowski 1b1427ec6d *autoload: *update-or-status: use $local_dir not inlined plugin-dir path 2017-11-03 15:59:29 +01:00
Sebastian Gniazdowski a3e047d0ff *install: *download-snippet saves also "ver" ice (in meta-data) 2017-11-03 15:31:42 +01:00
Sebastian Gniazdowski 05ceb00205 *install: Use "--" (and also print -r) for print when saving meta data 2017-11-03 15:25:57 +01:00
Sebastian Gniazdowski 808c173313 Travis: notify on IRC channel #zplugin@freenode 2017-11-03 15:17:53 +01:00
Sebastian Gniazdowski b191d3be1f *: Use builtin' precommand modifier with every cd' 2017-11-03 15:05:40 +01:00
Sebastian Gniazdowski 784e4dd16c *autoload: Remove stray argument to rm -f, in *update-or-status 2017-11-03 14:58:42 +01:00
Sebastian Gniazdowski 6f3bd76c40 zplugin: Define pmodload() only if it doesn't already exist 2017-11-03 10:45:42 +01:00
Sebastian Gniazdowski 03d4a2d5c5 zplugin: *load-snippet – autoload Prezto's functions directory contents 2017-11-03 10:16:51 +01:00
Sebastian Gniazdowski 203d6e23a0 Updated README.md 2017-11-03 09:03:00 +01:00
Sebastian Gniazdowski ffa0520db4 Updated README.md 2017-11-02 22:36:54 +01:00
Sebastian Gniazdowski a2589fcfa0 Updated README.md 2017-11-02 22:35:19 +01:00
Sebastian Gniazdowski e4ff96910b Updated README.md 2017-11-02 22:32:08 +01:00
Sebastian Gniazdowski 033bdc70ee Updated README.md 2017-11-02 22:27:18 +01:00
Sebastian Gniazdowski f51d3d8d22 zplugin,*install: Compiling plugin supports pick-ICE 2017-11-02 22:16:32 +01:00
Sebastian Gniazdowski 329ada9641 Updated README.md 2017-11-02 21:20:11 +01:00
Sebastian Gniazdowski 1cdb055590 Updated README.md 2017-11-02 21:17:02 +01:00
Sebastian Gniazdowski c48eefd7e2 *install,*autoload: Try to move .zwc files together, in mv & cp ices 2017-11-02 21:13:08 +01:00
Sebastian Gniazdowski 1d1b4d9a89 *install: Store ver ice and is_release mark in meta-data dir 2017-11-02 21:08:34 +01:00
Sebastian Gniazdowski bd56b715a3 *~*side*: Data directory "._zplugin", all ices saved (also by plugins) 2017-11-02 20:59:21 +01:00
Sebastian Gniazdowski a6b565a19e *install: *download-snippet needs extendedglob 2017-11-02 20:29:15 +01:00
Sebastian Gniazdowski 2caea9bd4f *install: Snipetts' support for mv & cp ices 2017-11-02 20:27:53 +01:00
Sebastian Gniazdowski 920859c625 *install: Don't create state-files in ZPLGM[SNIPPETS_DIR] 2017-11-02 20:26:22 +01:00
Sebastian Gniazdowski b4a0aad890 *install: Include file name in non-svn snippet name in message 2017-11-02 20:17:18 +01:00
Sebastian Gniazdowski 836da8cec9 Updated README.md 2017-11-02 18:12:29 +01:00
Sebastian Gniazdowski 06dc52e1e0 Updated README.md 2017-11-02 18:09:09 +01:00
Sebastian Gniazdowski 96cad29216 Updated README.md 2017-11-02 18:03:56 +01:00
Sebastian Gniazdowski 9eb122f2a2 Updated README.md 2017-11-02 17:11:44 +01:00
Sebastian Gniazdowski 4238190b49 *autoload: update --all uses the same function as update <plg>
Functionality of atpull mv, cp ices is inherited from the function.
2017-11-02 16:57:31 +01:00
Sebastian Gniazdowski 6570a3a3b4 zplugin,*autoload: mv&cp ices are remembered and ran on update; atpull"!
atpull, mv, cp are ran only when actual commits are to be pulled.
2017-11-02 16:41:32 +01:00
Sebastian Gniazdowski 89dc9faac5 zplugin: Use "command" precmd modifier for git commands 2017-11-02 16:37:20 +01:00
Sebastian Gniazdowski ee326fea33 *install: Cleanup on mv,cp ices – all plugins support them. Generalized
post-cloning code (installation of completions, atclone, etc.) so that
single place handles gh-r and normal plugins.
2017-10-30 11:18:11 +01:00
Sebastian Gniazdowski 355ab63f1a zplugin,*install: Installation from gh-r supports mv' and cp' ices 2017-10-30 11:01:00 +01:00
Sebastian Gniazdowski add7b52705 Updated README.md 2017-10-29 20:09:22 +01:00
Sebastian Gniazdowski c7e9c6ba7d Updated README.md 2017-10-29 17:54:52 +01:00
Sebastian Gniazdowski 6218312884 Updated README.md 2017-10-29 17:41:59 +01:00
Sebastian Gniazdowski 42d39eda9f zplugin,*install: Support for atclone, atload ICE mods also in snippets 2017-10-29 17:36:26 +01:00
Sebastian Gniazdowski 5d3d11d427 Updated README.md 2017-10-29 17:23:10 +01:00
Sebastian Gniazdowski 6d28d4e9bb zsdoc: Updated code documentation 2017-10-29 16:57:42 +01:00
Sebastian Gniazdowski bedab52be9 *install: -zplg-get-latest-gh-r-version, needed for updating (a TODO) 2017-10-29 16:49:19 +01:00
Sebastian Gniazdowski 4060d003e4 Updated README.md 2017-10-29 16:47:19 +01:00
Sebastian Gniazdowski c08c46bdad zplugin,*install: Support for downloading binary releases from Github 2017-10-29 16:44:19 +01:00
Sebastian Gniazdowski 28f3aa906e zplugin: Explicit return from *load-plugin 2017-10-29 16:36:01 +01:00
Sebastian Gniazdowski bae0783755 *install: Extend comment on *download-snippet function 2017-10-29 16:34:32 +01:00
Sebastian Gniazdowski 5142654abd *install: Better message on using creinstall in case completion exists 2017-10-29 16:32:45 +01:00
Sebastian Gniazdowski 48955810cc *autoload,*install: Use ";" after last command in atpull, atclone code 2017-10-29 16:30:54 +01:00
Sebastian Gniazdowski 65d0607232 Travis: Fix syntax error 2017-10-28 20:52:34 +02:00
Sebastian Gniazdowski 84cbf3f008 Travis: single entry in before_script 2017-10-28 20:44:11 +02:00
Sebastian Gniazdowski 5c5a833869 Travis: output machine & OS information in before-script 2017-10-28 17:10:36 +02:00
Sebastian Gniazdowski 040c20a2b5 *install: Less indent in *setup-plugin-dir by not using long `if' 2017-10-28 17:00:18 +02:00
Sebastian Gniazdowski 6b8193b562 *install: Support for restart of interrupted download (snippets) 2017-10-28 13:55:38 +02:00
Sebastian Gniazdowski cba9ae0102 *install: Use -source option with lynx, correct one to download a file 2017-10-27 22:02:54 +02:00
Sebastian Gniazdowski ec7c76788a *install: Prepend download commands with "command", fix curl bug 2017-10-27 22:01:26 +02:00
Sebastian Gniazdowski daae99e358 Updated README.md 2017-10-27 14:19:05 +02:00
Sebastian Gniazdowski 906329eba4 zplugin: Snippets to recognize as"command" ice 2017-10-27 13:00:34 +02:00
Sebastian Gniazdowski 395e16b994 zplugin: New ice as', with value command' implemented in *load-plugin 2017-10-27 12:59:03 +02:00
Sebastian Gniazdowski f352d19147 zplugin: Ability of snippet --command loading to chmod +x multiple files 2017-10-27 12:55:31 +02:00
Sebastian Gniazdowski ca4ef9b496 zplugin: Compress *load-plugin by not using nested if-expressions 2017-10-27 12:31:35 +02:00
Sebastian Gniazdowski 318e35cb4c zplugin: Compress *load-plugin by doing multiple assignments in one line 2017-10-27 12:26:03 +02:00
Sebastian Gniazdowski a73bb0edf5 *install: Pass through value of `from' ice to git clone, if distinct 2017-10-27 05:35:03 +02:00
Sebastian Gniazdowski ebd7563c44 Updated README.md 2017-10-26 18:20:41 +02:00
Sebastian Gniazdowski 4f9e5080c1 zplugin: Snippets to support the new ice modifier, `pick' 2017-10-26 18:18:42 +02:00
Sebastian Gniazdowski 0bba084e6a *install: *download-snippet uses return code, not array assignment 2017-10-26 17:24:32 +02:00
Sebastian Gniazdowski 96185871c0 zplugin: Use empty "mode" parameter so that :+ substitution can be used 2017-10-26 16:59:33 +02:00
Sebastian Gniazdowski 107ad25a92 zplugin: Plugin loading to support `pick' ice 2017-10-26 16:58:16 +02:00
Sebastian Gniazdowski e53bd385d8 zplugin,*install,*autoload: Uplift parameter names, dname -> pdir_path 2017-10-26 16:16:58 +02:00
Sebastian Gniazdowski e6038a6fde zplugin: *other-matches – remove check for 2 obscure extensions 2017-10-26 11:01:31 +02:00
Sebastian Gniazdowski c9bf2e9c2b zplugin: *load-plugin, ${#reply[@]} -> ${#reply} 2017-10-26 09:10:14 +02:00
Sebastian Gniazdowski 95215a5588 zplugin: Remove ZPLG_BINDKEY_MAIN_IDX global parameter, use ZPLGM field 2017-10-25 18:25:42 +02:00
Sebastian Gniazdowski 9f30da72b4 zplugin: Compress *load-plugin, upgrade naive KSH_ARRAYS-related code 2017-10-25 17:22:04 +02:00
Sebastian Gniazdowski d43dd42a9e zplugin: Make prezto-like plugin recognition do more what's expected 2017-10-25 16:32:22 +02:00
Sebastian Gniazdowski 61d7aa9455 zplugin: Small *unregister-plugin compression 2017-10-25 16:23:19 +02:00
Sebastian Gniazdowski 7392ddec8b Updated README.md 2017-10-25 09:41:28 +02:00
Sebastian Gniazdowski e35383c848 *install: Support for `depth' ice 2017-10-25 09:39:55 +02:00
Sebastian Gniazdowski 8742c5dbbd zplugin: Uplift & compress *load-plugin by using zparseopts 2017-10-24 16:13:12 +02:00
Sebastian Gniazdowski 36e147e06f zplugin: Uplift *load-snippet (e.g. better patterns for file to source) 2017-10-24 15:42:36 +02:00
Sebastian Gniazdowski 4abdf955ff zplugin: Fix Prezto's pmodload to not reset ICE after each module load 2017-10-24 15:30:17 +02:00
Sebastian Gniazdowski c0fb942757 zplugin: Correct shadowing for recursive *load-snippet calling support 2017-10-24 15:02:53 +02:00
Sebastian Gniazdowski e61395d84c zplugin: Prezto comp.: make "pmodload" accept multiple arguments 2017-10-24 15:01:24 +02:00
Sebastian Gniazdowski bb610b7467 zplugin,*autoload: Remove 4 global parameters (*DIFF_RAN) and some code 2017-10-21 17:41:01 +02:00
Sebastian Gniazdowski fd5eaf388a *autoload: Adapt update --all to new snippet storage, transport, etc. 2017-10-21 17:13:08 +02:00
Sebastian Gniazdowski 51b26a7181 *autoload: Make `times' recognize default URL-shorthands 2017-10-21 17:08:16 +02:00
Sebastian Gniazdowski 03a6a9497d zplugin,*install: Move install-related code from *load-snippet 2017-10-21 17:07:25 +02:00
Sebastian Gniazdowski 7afb898827 zplugin,*install: Compress *load-snippet more – move code to *install 2017-10-21 16:31:57 +02:00
Sebastian Gniazdowski 029fc29e22 zplugin: Uplift, compress *load-snippet – 7 lines less 2017-10-21 16:11:07 +02:00
Sebastian Gniazdowski 95184f3164 zplugin: Protect against missing termcap & terminfo Zsh modules 2017-10-21 15:54:33 +02:00
Sebastian Gniazdowski 04e8ca069c zplugin: Large uplift of snippets: 1) no extendedglob dependency,
2) more comfortable directory structure – directory with meaningful
   part of URL is shared among snippets,
3) support for Prezto, Zplugin will handle `pmodload' calls, i.e.
   dependencies,
4) support for Prezto plugin names (which are not "init.zsh"),
5) support for Prezto `functions' directory (it's added to fpath),
6) fixed snippet loading – it was blocked by improper set of
   conditional parameter,
7) better message on improper use of snippet (passing directory-URL
   instead of file-URL),
8) fixed location of .zplugin_url and .zplugin_mode files.
2017-10-21 14:51:06 +02:00
Sebastian Gniazdowski 53da58c2c8 zplugin: Bug fix – if-ICE wasn't reset on negative evaluation 2017-10-21 12:59:16 +02:00
Sebastian Gniazdowski f0ad5a949a zplugin,*autoload: Verify correctness of downloaded snippet. Uplift 2017-10-19 08:07:20 +02:00
Sebastian Gniazdowski 73e2b71a7b Update .gitignore 2017-10-18 13:38:42 +02:00
Sebastian Gniazdowski 0099e662b9 zplugin: Better indentation in Zplugin's messages when updating 2017-10-18 13:29:40 +02:00
Sebastian Gniazdowski 81f29ee890 zplugin,*install,*autoload: Allow Subversion checkouts from Github 2017-10-18 12:54:34 +02:00
Sebastian Gniazdowski 9efc05e70b zplugin,*autoload,*install: Subversion to support snippet downloading 2017-10-18 09:25:34 +02:00
Sebastian Gniazdowski 6c0ff61576 Updated README.md 2017-10-17 07:14:34 +02:00
Sebastian Gniazdowski d89eb43a7f Updated README.md 2017-10-17 07:13:32 +02:00
Sebastian Gniazdowski c6214d7e6c *autoload: Fix snippet updating (ZPLG_SNIPPETS_DIR was still used) 2017-10-13 10:31:16 +02:00
Sebastian Gniazdowski 76618909ee Updated README.md 2017-10-13 10:21:41 +02:00
Sebastian Gniazdowski 926f1f5c1d Updated README.md 2017-10-13 10:18:21 +02:00
Sebastian Gniazdowski d82fb675ee zplugin,*autoload: Snippets can point to Oh-My-Zsh via "OMZ::" prefix 2017-10-13 10:14:59 +02:00
Sebastian Gniazdowski 17306e78a0 Updated README.md 2017-10-12 21:08:06 +02:00
Sebastian Gniazdowski 253e127aa2 Updated README.md 2017-10-12 21:05:56 +02:00
Sebastian Gniazdowski 339804a11d *autoload: cd subcommand to support snippets, when feed with URL 2017-10-12 21:03:10 +02:00
Sebastian Gniazdowski cdcb070f38 zplugin: Optimize snippet loading more – inline shadowing code 2017-10-12 20:53:10 +02:00
Sebastian Gniazdowski 9b0f8f1e3a zplugin: Uplift and optimize snippet loading 2017-10-12 20:44:25 +02:00
Sebastian Gniazdowski 28fd30c6e6 Updated README.md 2017-10-12 18:44:51 +02:00
Sebastian Gniazdowski 7521ec227f Updated README.md 2017-10-12 18:43:42 +02:00
Sebastian Gniazdowski 87cb174df2 zplugin,*autoload: Load time statistics now include snippets 2017-10-12 18:22:37 +02:00
Sebastian Gniazdowski 399ca8a2d5 zplugin,*autoload: Sort plugin load times in order of loading them 2017-10-12 18:03:51 +02:00
Sebastian Gniazdowski c7fd449e4f Updated README.md 2017-10-12 17:40:42 +02:00
Sebastian Gniazdowski 1f4dc9d4e2 *autoload: Help message includes information on -q for cdclear,cdreplay 2017-10-10 13:20:29 +02:00
Sebastian Gniazdowski 2baad5a88b deploy_doc.sh: Fix condition when checking for any changes 2017-10-05 16:17:40 +02:00
Sebastian Gniazdowski 21594be1da Updated README.md (change ices order) 2017-10-05 15:14:49 +02:00
Sebastian Gniazdowski 6dda128924 zplugin: cdclear outputs how many entries it cleared 2017-10-02 09:41:22 +02:00
Sebastian Gniazdowski 5588823557 Updated README.md 2017-09-26 19:36:16 +02:00
Sebastian Gniazdowski 4c9a714972 Updated README.md 2017-09-26 18:13:10 +02:00
Sebastian Gniazdowski 5f0fe3eb47 zsdoc: Updated README.md 2017-09-26 11:23:04 +02:00
Sebastian Gniazdowski 03840070f6 zsdoc,README: Include links to pdfs located at gh-pages 2017-09-26 11:18:44 +02:00
Sebastian Gniazdowski d80d5ba7c4 deploy: Use ".nojekyll" file 2017-09-26 11:14:51 +02:00
Sebastian Gniazdowski bfc4d87f8e deploy: Handle index.html file 2017-09-26 11:11:11 +02:00
Sebastian Gniazdowski c156ac4706 deploy: Fixed improper rm -rf 2017-09-26 10:33:40 +02:00
Sebastian Gniazdowski e24d7a065b deploy: Testing rm -rf problems 2017-09-26 10:31:44 +02:00
Sebastian Gniazdowski fc15f0984b Deploy script to publish code-documentation pdfs 2017-09-26 10:15:42 +02:00
Sebastian Gniazdowski 64390fc2f7 GitHub deploy key 2017-09-26 09:40:28 +02:00
Sebastian Gniazdowski 3fc0a4b183 travis: Build documentation pdfs 2017-09-26 08:59:20 +02:00
Sebastian Gniazdowski 03c5dbabd8 .travis.yml 2017-09-26 08:24:04 +02:00
Sebastian Gniazdowski f28f4dbf6a Makefile: Add doc/zcompile and use it to build zwc files 2017-09-26 07:42:55 +02:00
Sebastian Gniazdowski 79d16af460 source,zsdoc: Perform documentation-uplift iteration 2017-09-25 23:40:50 +02:00
Sebastian Gniazdowski cfd9154c6c zsdoc: Updated top comment in Makefile 2017-09-25 18:08:37 +02:00
Sebastian Gniazdowski 2b1fd5896f source,zsdoc: Perform documentation-uplift iteration 2017-09-25 11:39:31 +02:00
Sebastian Gniazdowski 1ad4a3ccaa *install,*autoload: All completion-searching code excludes zsdoc, etc. 2017-09-25 11:30:20 +02:00
Sebastian Gniazdowski 9f8c68ff89 *autoload: Completion-searching code didn't exclude zsdoc and zplg_* 2017-09-25 11:21:31 +02:00
Sebastian Gniazdowski 9205cfa1e0 zsdoc: Regenerate, for new Zshelldoc (it added feature detection) 2017-09-25 09:48:46 +02:00
Sebastian Gniazdowski 304563862c source,zsdoc: Perform documentation-uplift iteration 2017-09-25 08:14:33 +02:00
Sebastian Gniazdowski f246581ee4 *side,*install: Add and fix mode-lines 2017-09-25 08:11:14 +02:00
Sebastian Gniazdowski 0f8fdea7fe *install,*autoload: Two uplifts with @ and arrays 2017-09-25 08:06:59 +02:00
Sebastian Gniazdowski d749b5846b Updated README.md 2017-09-24 22:10:01 +02:00
Sebastian Gniazdowski 29e37b977e zsdoc/Makefile: On clean, remove also `data' dir 2017-09-24 19:36:13 +02:00
Sebastian Gniazdowski 08c4b04bb4 zplugin,zsdoc,README: Uplift comment, uplift zsdoc README.md 2017-09-24 19:35:25 +02:00
Sebastian Gniazdowski c8f187d087 zsdoc: Updated README.md 2017-09-24 18:56:46 +02:00
Sebastian Gniazdowski 500643a9ef zsdoc: Updated README.md 2017-09-24 18:55:29 +02:00
Sebastian Gniazdowski 34c5d1e129 zsdoc: Makefile for man pages, pdf documents, etc. 2017-09-24 18:51:48 +02:00
Sebastian Gniazdowski fba178460f zsdoc: Update code documentation 2017-09-24 18:37:08 +02:00
Sebastian Gniazdowski a2d13274d5 *autoload: Extend comment of -zplg-any-to-uspl2 2017-09-24 18:14:51 +02:00
Sebastian Gniazdowski c2f4329b84 Makefile: Add vim modeline for correct no-expand-tab behavior 2017-09-24 18:13:14 +02:00
Sebastian Gniazdowski f2e9cb7812 zsdoc: Updated Asciidoc code documentation and README.md 2017-09-24 17:58:41 +02:00
Sebastian Gniazdowski 64edc79d57 zplugin: Update comments of ice-related functions 2017-09-24 17:55:44 +02:00
Sebastian Gniazdowski c75233c1e8 zsdoc: Updated code documentation 2017-09-24 17:50:33 +02:00
Sebastian Gniazdowski 1ea7567766 Makefile: On doc target, remove files selectively, not whole `zsdoc' dir 2017-09-24 17:48:46 +02:00
Sebastian Gniazdowski c030997354 zplugin: Optimize *other-matches to not use localoptions. Add comment 2017-09-24 17:38:17 +02:00
Sebastian Gniazdowski 0bad7e10cc Updated README.md 2017-09-24 17:30:03 +02:00
Sebastian Gniazdowski 5712fc502c zsdoc: Updated README.md 2017-09-24 17:28:18 +02:00
Sebastian Gniazdowski e95cc5b9d8 zsdoc: Updated README.md 2017-09-24 17:27:41 +02:00
Sebastian Gniazdowski ba6de37baa zsdoc: Add README.md 2017-09-24 17:26:33 +02:00
Sebastian Gniazdowski dda1722d7f zplugin: Remove unused global hash 2017-09-24 09:15:34 +02:00
Sebastian Gniazdowski c88c98e2cb *autoload,README: Add usage information for the ice subcommand 2017-09-24 08:55:32 +02:00
Sebastian Gniazdowski c2e94e9dae Update code documentation 2017-09-23 21:50:26 +02:00
Sebastian Gniazdowski 7ba2fa9d84 zplugin,*side,*install,*autoload: ZPLG_COL -> ZPLGM, keys with col- pfx 2017-09-23 21:47:20 +02:00
Sebastian Gniazdowski 54621f69a7 zplugin: Use own color definitions, not `colors' autoload function 2017-09-23 21:38:51 +02:00
Sebastian Gniazdowski 6c735a616c zplugin,*autoload: Move code from *diff-parameter, optimize for size 2017-09-23 21:25:28 +02:00
Sebastian Gniazdowski 061e17595e zplugin,*autoload: Move code from *diff-env, optimize for size 2017-09-23 20:44:12 +02:00
Sebastian Gniazdowski ec85a9c0f8 zplugin,*autoload: Move code from *diff-options, optimize for size 2017-09-23 20:34:48 +02:00
Sebastian Gniazdowski 693d793e90 zplugin,*autoload: Move code from *diff-functions, optimize for size 2017-09-23 20:22:42 +02:00
Sebastian Gniazdowski 4f07fb0a55 zplugin,*autoload: Remove " $" spaces 2017-09-23 20:21:49 +02:00
Sebastian Gniazdowski b78f24b8b9 Update code documentation 2017-09-23 17:30:10 +02:00
Sebastian Gniazdowski a1d3c64453 zplugin,*autoload: Update code comments 2017-09-23 17:27:06 +02:00
Sebastian Gniazdowski 8113a9a7e3 zplugin,*side,*install,*autoload: Update code comments 2017-09-23 17:08:14 +02:00
Sebastian Gniazdowski 810358ed99 Update code documentation – new Zshelldoc with fixed trees 2017-09-23 16:58:11 +02:00
Sebastian Gniazdowski f0d23a5a4a Update code documentation 2017-09-23 15:21:19 +02:00
Sebastian Gniazdowski 8aa7250b20 Update code documentation 2017-09-23 15:02:04 +02:00
Sebastian Gniazdowski f13083973e update code documentation 2017-09-23 14:59:24 +02:00
Sebastian Gniazdowski 957871ba37 Update code documentation 2017-09-23 14:54:47 +02:00
Sebastian Gniazdowski 9d5c66b047 Update code documentation 2017-09-23 14:51:24 +02:00
Sebastian Gniazdowski 7df87857da Update code documentation 2017-09-23 14:47:00 +02:00
Sebastian Gniazdowski e0641c8328 Update code documentation 2017-09-23 13:05:31 +02:00
Sebastian Gniazdowski a23e718b0c Update code documentation 2017-09-23 13:01:18 +02:00
Sebastian Gniazdowski a5c4d61452 doc: Use other asciidoc construct for code block 2017-09-23 12:58:06 +02:00
Sebastian Gniazdowski e954420451 Update code documentation 2017-09-23 12:45:43 +02:00
Sebastian Gniazdowski 8f0ab2dd2c Add experimental Zshelldoc code documentation 2017-09-23 11:34:03 +02:00
Sebastian Gniazdowski 3a56202a42 *side,*install,*autoload: Move *exists* function to *side 2017-09-23 11:20:44 +02:00
Sebastian Gniazdowski 864c93f82c zplugin,*install: Remove code related to lexicon 2017-09-23 10:00:54 +02:00
Sebastian Gniazdowski e1d8b18c7f *install: Extend documentation of functions 2017-09-23 09:58:41 +02:00
Sebastian Gniazdowski bcecab37d8 *side: Extend documentation of functions 2017-09-23 09:47:41 +02:00
Sebastian Gniazdowski b3ead1ea22 zplugin: Optimize *register-plugin 2017-09-23 09:34:38 +02:00
Sebastian Gniazdowski cfee476254 zplugin: Extend documentation of functions 2017-09-23 09:27:37 +02:00
Sebastian Gniazdowski ffc27a3de4 Makefile with doc target, for Zshelldoc documentation 2017-09-23 08:50:04 +02:00
Sebastian Gniazdowski d0e84ae844 *side: New file: zplugin-side.zsh, with not-main but common functions 2017-09-23 08:45:13 +02:00
Sebastian Gniazdowski bd7bca16e5 zplugin,*install,*autoload: *colorify* is called only in side-scripts 2017-09-23 08:36:40 +02:00
Sebastian Gniazdowski a1732f5ac4 zplugin,*autoload: *any-to-uspl2 is used only in *autoload, move it 2017-09-23 08:22:32 +02:00
Sebastian Gniazdowski 9692f2fc83 Updated README.md 2017-09-22 15:40:09 +02:00
Sebastian Gniazdowski 7b233a7e3d zplugin: Small fix of no-argument return 2017-09-22 09:40:44 +02:00
Sebastian Gniazdowski 7815d92ab6 *autoload: Show summed up time (feat.: times) 2017-09-20 14:02:45 +02:00
Sebastian Gniazdowski 3a14a8653f Updated README.md 2017-09-20 11:53:10 +02:00
Sebastian Gniazdowski 923b4d9998 _zplugin,README: Update usage information; better grammar 2017-09-20 11:48:27 +02:00
Sebastian Gniazdowski 2ac14fb559 Updated README.md 2017-09-20 11:29:32 +02:00
Sebastian Gniazdowski 20a8defd44 Updated README.md 2017-09-20 11:20:14 +02:00
Sebastian Gniazdowski 51f2e14d64 _zplugin,*autoload: Update help and completion for 'times' feature 2017-09-20 11:17:31 +02:00
Sebastian Gniazdowski 893daf792d zplugin,*autoload: Implemented new feature: zplugin times 2017-09-20 11:13:22 +02:00
Sebastian Gniazdowski a180615828 Remove files needed by not-commited lexicon-feature 2017-09-20 11:09:43 +02:00
Sebastian Gniazdowski c52ec2a193 Simple call-tree detector – zdetect 2017-08-30 14:00:55 +02:00
Sebastian Gniazdowski 6652925e65 *install: Try to compile possible additional file 2017-08-29 13:48:55 +02:00
Sebastian Gniazdowski 19cef39f30 Lexicon creation, deletion, refreshment (no listing) 2017-07-04 16:38:07 +02:00
Sebastian Gniazdowski 6da6c6d340 transform: Adapt output to established structure 2017-07-04 14:57:39 +02:00
Sebastian Gniazdowski 07fa8a30b9 ZPLG_NEW_AUTOLOAD -> ZPLGM[NEW_AUTOLOAD] 2017-07-04 13:20:27 +02:00
Sebastian Gniazdowski f7ef9b84e0 ZPLG_STRESS_TEST_OPTIONS to be local, not global 2017-07-04 13:17:35 +02:00
Sebastian Gniazdowski def9b19857 ZPLG_COMPLETIONS_DIR -> ZPLGM[COMPLETIONS_DIR] 2017-07-04 13:15:12 +02:00
Sebastian Gniazdowski 28fa3b5735 ZPLG_PLUGINS_DIR -> ZPLGM[PLUGINS_DIR]; uplift _zplugin 2017-07-04 12:53:40 +02:00
Sebastian Gniazdowski 7b70f9d832 ZPLG_PLUGINS_DIR -> ZPLGM[PLUGINS_DIR]; fixed zstatus plugin count 2017-07-04 12:43:32 +02:00
Sebastian Gniazdowski cc14dea20f ZPLG_HOME -> ZPLGM[HOME_DIR] 2017-07-04 12:32:04 +02:00
Sebastian Gniazdowski 7be3c30593 ZPLGM[DIR] -> ZPLG[BIN_DIR] 2017-07-04 12:27:11 +02:00
Sebastian Gniazdowski 66b43fd34a Move ZPLG_SNIPPETS_DIR to ZPLGM, allow customization of the directory 2017-07-04 12:24:25 +02:00
Sebastian Gniazdowski e133873f9e Rename main hash to ZPLGM. Move ZPLG_DIR to ZPLGM[DIR] 2017-07-04 12:13:16 +02:00
Sebastian Gniazdowski b1e0ad0ca4 ztransform to output functions in valid form 2017-07-03 06:48:03 +02:00
Sebastian Gniazdowski b06b5cebb8 Don't use zhalloc 2017-06-20 05:47:37 +02:00
Sebastian Gniazdowski df7226771d Remove autoload2 2017-06-19 16:33:50 +02:00
Sebastian Gniazdowski 9196e21c32 Not working source_prepare, source_load 2017-06-19 16:22:05 +02:00
Sebastian Gniazdowski d1a801125a Fix improper substitution 2017-06-19 11:41:10 +02:00
Sebastian Gniazdowski ef89fddd3e .gitignore 2017-06-18 09:03:14 +02:00
Sebastian Gniazdowski 57511813cc mod: Better indent settings for zplugin.c 2017-06-18 08:50:23 +02:00
Sebastian Gniazdowski 5131625333 Fix indentation, prepare for source_prepare 2017-06-18 08:28:03 +02:00
Sebastian Gniazdowski c3b464a022 Updated README.md 2017-06-14 08:56:25 +02:00
Sebastian Gniazdowski e1752f5e8b autoload: Getting completion owner supports absolute-path plugins 2017-06-14 08:47:11 +02:00
Sebastian Gniazdowski 6007ca0710 Absolute-path plugins shown with $HOME abbrevation where possible 2017-06-14 08:46:02 +02:00
Sebastian Gniazdowski 5156883e55 Updated README.md 2017-06-13 15:14:05 +02:00
Sebastian Gniazdowski 508f790c64 Updated README.md 2017-06-13 15:10:52 +02:00
Sebastian Gniazdowski 9ab908486c Updated README.md 2017-06-13 15:08:41 +02:00
Sebastian Gniazdowski 283af1c50e Updated README.md 2017-06-13 15:06:51 +02:00
Sebastian Gniazdowski ce38145594 Updated README.md 2017-06-13 09:50:36 +02:00
Sebastian Gniazdowski 59e70803bd Absolute paths to support paths in format %/A/B/... 2017-06-13 09:45:47 +02:00
Sebastian Gniazdowski 958e1b2888 Completion management to support absolute paths 2017-06-13 09:45:11 +02:00
Sebastian Gniazdowski ee39ea901e _zplugin: Update report and unload completion (for absolute paths) 2017-06-13 09:35:59 +02:00
Sebastian Gniazdowski 65809f5634 Add support for plugins given by local absolute path 2017-06-13 09:33:41 +02:00
Sebastian Gniazdowski 8e988a5011 _zplugin: Fix uncompile completion 2017-06-13 09:02:23 +02:00
Sebastian Gniazdowski 6c65a489ca ztr: Remove debug line 2017-06-06 08:17:28 +02:00
Sebastian Gniazdowski 40f4096d72 zplugin.c: A try with mmap(), simpler code, the same performance 2017-06-05 14:02:23 +02:00
Sebastian Gniazdowski e76c4fb4d4 zplugin.c: Move to fread, no effect, buggy. Zsh probably uses mmap 2017-06-05 11:29:18 +02:00
Sebastian Gniazdowski 0acd93fd6f ztr: Fix parsing 2017-06-05 07:04:29 +02:00
Sebastian Gniazdowski ddcf86b420 zplugin.c: Clean up not needed preamble-related code 2017-06-05 06:18:44 +02:00
Sebastian Gniazdowski 2a23e209b9 zplugin.c: Fix vim folding 2017-06-05 06:13:18 +02:00
Sebastian Gniazdowski 2c5307ac00 ztr: Use .zini extension for the functions file 2017-06-05 06:11:31 +02:00
Sebastian Gniazdowski 14210595ca ztr: Correct parsing of zconvey.plugin.zsh 2017-06-05 05:59:13 +02:00
Sebastian Gniazdowski c9675a578e Working but inadequate version of ziniload, new (not matched) ztransform 2017-06-04 18:28:00 +02:00
Sebastian Gniazdowski 8d7e7c808f Indent with Spacemacs, include bin_ziniload stub 2017-06-04 15:10:39 +02:00
Sebastian Gniazdowski 56919608c1 ztransform, zplg-process-buffer 2017-06-04 13:35:42 +02:00
Sebastian Gniazdowski a2c7e93139 Updated README.md 2017-05-23 18:46:04 +02:00
Sebastian Gniazdowski 77822180cb Updated README.md 2017-05-23 18:44:33 +02:00
Sebastian Gniazdowski 19dd86b8c3 Updated README.md (PayPal button) 2017-05-23 18:40:13 +02:00
Sebastian Gniazdowski 4765cf9fe0 Updated doc/zplugin.1 2017-05-23 10:10:31 +02:00
Sebastian Gniazdowski bea1d0c3ff Updated README.md 2017-05-23 08:55:43 +02:00
Sebastian Gniazdowski 625ac59597 Updated README.md 2017-05-23 08:54:24 +02:00
Sebastian Gniazdowski 68462b3c58 *autoload: Update packs ice 2017-05-23 08:51:46 +02:00
Sebastian Gniazdowski 5cb94f95c4 *autoload,*install: atclone, atpull ice ran within plugin's directory 2017-05-23 08:49:31 +02:00
Sebastian Gniazdowski 25f3809e17 Run atload ice modifier within plugin's directory 2017-05-23 08:46:13 +02:00
Sebastian Gniazdowski 96272c0572 Updated README.md 2017-05-23 08:39:42 +02:00
Sebastian Gniazdowski 47a388126a Updated README.md 2017-05-23 08:38:07 +02:00
Sebastian Gniazdowski 40002aacc7 Run atload ice after disabling shadowing, not before 2017-05-23 08:33:05 +02:00
Sebastian Gniazdowski e5f82cc4e6 Revert "Updated README.md (test Cirru)"
This reverts commit 4291a179eb.
2017-05-23 06:54:34 +02:00
Sebastian Gniazdowski 4291a179eb Updated README.md (test Cirru) 2017-05-23 06:53:38 +02:00
Sebastian Gniazdowski 90b0cf6369 Updated README.md 2017-05-23 06:31:36 +02:00
Sebastian Gniazdowski 57922ec26d "if" ice modifier 2017-05-23 06:27:17 +02:00
Sebastian Gniazdowski fb20a97bed Allow customization of ZPLG_PLUGINS_DIR 2017-05-20 11:23:30 +02:00
Sebastian Gniazdowski 7cc4a05182 *install: Add gitlab support 2017-05-18 10:47:24 +02:00
Sebastian Gniazdowski 831944b4cd mod: Chain to original autoload, also restore it on module unload 2017-05-17 14:10:16 +02:00
Sebastian Gniazdowski 7c70ebf148 mod: An autoload stub that processes options 2017-05-17 13:54:02 +02:00
Sebastian Gniazdowski 5c8c29a334 mod: Add Test 2017-05-17 11:24:28 +02:00
Sebastian Gniazdowski c8cd7c835d Correct configure*, config.h.in (with pcre removed & module only builds) 2017-05-17 11:16:14 +02:00
Sebastian Gniazdowski f2796a2337 mod: patch_cfgac.diff support 2017-05-17 11:13:57 +02:00
Sebastian Gniazdowski 2c6eb34a1c Update Zsh source to newest 2017-05-17 10:44:36 +02:00
Sebastian Gniazdowski 1a5c0c6c43 copy_from_zsh_src.zsh 2017-05-17 10:38:02 +02:00
Sebastian Gniazdowski 26ca4f11c3 mod: Rename autoload2 to zplugin 2017-05-17 10:22:08 +02:00
Sebastian Gniazdowski 5b9af8083b mod: Move module to zdharma namespace 2017-05-17 10:18:42 +02:00
Sebastian Gniazdowski 50c9c7179b main,*autoload: "sticky-ice" to correctly handle ice modifier "atpull" 2017-05-17 07:53:41 +02:00
Sebastian Gniazdowski 40f2b91466 *install: Support ssh protocol 2017-05-16 14:26:10 +02:00
Sebastian Gniazdowski b61e581fa3 Updated README.md 2017-05-16 14:20:07 +02:00
Sebastian Gniazdowski 0a21d6961e *install: Support all available protocols, detect improper protocol 2017-05-16 14:18:30 +02:00
Sebastian Gniazdowski 45656a3829 Updated README.md 2017-05-16 13:28:52 +02:00
Sebastian Gniazdowski 2ea38188bf Updated README.md 2017-05-16 13:07:20 +02:00
Sebastian Gniazdowski b417e842b1 Updated README.md 2017-05-16 13:05:23 +02:00
Sebastian Gniazdowski 8cb378351c main,*autoload,*install: Ice features: atload, atclone, atpull 2017-05-16 12:55:51 +02:00
Sebastian Gniazdowski 63dab4325b Shorter, simpler ice parsing (-zplg-ice) 2017-05-16 12:47:21 +02:00
Sebastian Gniazdowski 04528297ce main,*autoload,*install: Support for completions in subdirectories 2017-05-16 11:49:57 +02:00
Sebastian Gniazdowski c93aa2468e *autoload: Finding completion's owner is prepared for all characters 2017-05-16 11:18:44 +02:00
Sebastian Gniazdowski 5d47d75586 *autoload: Finding completion's owner handles completions in subdirs 2017-05-16 11:17:05 +02:00
Sebastian Gniazdowski 66a465ea18 Better color for completion installation, with the forgetting 2017-05-16 10:51:23 +02:00
Sebastian Gniazdowski d20312f6a1 Ice feature – blockf, for blocking fpath changes 2017-05-16 10:47:14 +02:00
Sebastian Gniazdowski e00226a100 *install: Ice supports "proto" selector, to allow https, git protocols 2017-05-15 17:50:58 +02:00
Sebastian Gniazdowski 0f9542f1ea "ice" command, supporting "from": github, bitbucket, notabug 2017-05-15 17:08:37 +02:00
Sebastian Gniazdowski 6c7e434c35 Two places needed -zplg-forget-completion from *install 2017-05-15 12:18:55 +02:00
Sebastian Gniazdowski 30950cf4f0 *autoload,*install: Move -zplg-exists-physically{,-message} 2017-05-15 12:15:30 +02:00
Sebastian Gniazdowski 6db13ada7d *autoload: Move -zplg-exists-message 2017-05-15 12:11:36 +02:00
Sebastian Gniazdowski 14c5e7536b Remove -zplg-exists 2017-05-15 12:08:53 +02:00
Sebastian Gniazdowski 00aa4cc706 Compress multiple unsets into one, two times 2017-05-15 12:04:12 +02:00
Sebastian Gniazdowski 77706640d8 Fix missing -zplg-compile-plugin load when --all passed 2017-05-15 11:57:00 +02:00
Sebastian Gniazdowski 9db15fb2f7 Inline -zplg-load-user-functions 2017-05-15 11:55:36 +02:00
Sebastian Gniazdowski 4ad938a8cf Move interactive functions into separate case 2017-05-15 11:48:44 +02:00
Sebastian Gniazdowski e30e811dd4 No warnings about own shadowing functions 2017-05-15 11:39:40 +02:00
Sebastian Gniazdowski e5a4ec1b8c zplugin-install.zsh 2017-05-15 11:37:15 +02:00
Sebastian Gniazdowski 34aef41034 *autoload: Move -zplg-cd 2017-05-15 11:16:12 +02:00
Sebastian Gniazdowski f12699d8b2 Rearrange functions, add vim folds for each function 2017-05-15 11:14:40 +02:00
Sebastian Gniazdowski b2a6b23442 *autoload: Rearrange functions, add Vim folds for each function 2017-05-15 09:54:33 +02:00
Sebastian Gniazdowski 381be69dac *autoload: Move -zplg-prepare-readlink and function getting c-owner 2017-05-14 12:07:44 +02:00
Sebastian Gniazdowski 9b1ec7ee5d main,*autoload: Remove ZPLG_EXTENDED_GLOB, move related state-functions
Also optimize one function
2017-05-14 11:48:50 +02:00
Sebastian Gniazdowski ac0837b430 Remove ZPLG_ENTER_OPTIONS and no-op state save/restoration functions 2017-05-14 11:44:29 +02:00
Sebastian Gniazdowski 5b64380c58 Remove ZPLG_DEBUG_{USPL,USER,PLUGIN}, some of them unused 2017-05-14 11:34:46 +02:00
Sebastian Gniazdowski 5f51217705 *autoload: Move --zplg-show-debug-report 2017-05-14 11:31:02 +02:00
Sebastian Gniazdowski 60694da9b7 Remove ZPLG_DEBUG_USPL2 2017-05-14 11:00:11 +02:00
Sebastian Gniazdowski 76673e1435 ZPLG_DEBUG_ACTIVE -> ZPLG_MAIN[DTRACE] 2017-05-14 10:52:09 +02:00
Sebastian Gniazdowski 870e663adc ZPLG_ALREADY_WARNINGS_F was unused 2017-05-14 10:47:39 +02:00
Sebastian Gniazdowski 3cbe873ea6 ZPLG_SHADOWING_ACTIVE -> ZPLG_MAIN[SHADOWING] 2017-05-14 10:45:47 +02:00
Sebastian Gniazdowski 3ea05627ec ZPLG_CUR_USPL2 -> ZPLG_MAIN[CUR_USPL2] 2017-05-14 10:35:18 +02:00
Sebastian Gniazdowski 2af4cd400f ZPLG_CUR_USPL -> ZPLG_MAIN[CUR_USPL] 2017-05-14 10:27:51 +02:00
Sebastian Gniazdowski 839442d9f1 ZPLG_CUR_USER -> ZPLG_MAIN[CUR_USR] 2017-05-14 10:24:49 +02:00
Sebastian Gniazdowski 8d062a5f87 Don't use ZPLG_HOME_READY, use newly added hash ZPLG_MAIN -> HOME_READY 2017-05-14 10:21:04 +02:00
Sebastian Gniazdowski d864e6fb14 main,*autoload: Remove ZPLG_NAME global parameter, just use "zplugin" 2017-05-14 10:16:49 +02:00
Sebastian Gniazdowski 5d8a1676b6 *autoload: Uplift create messages 2017-05-14 10:09:25 +02:00
Sebastian Gniazdowski 7e529550f0 Updated doc/zplugin.1 2017-05-14 09:34:18 +02:00
Sebastian Gniazdowski b25bd4fbdd Updated README.md 2017-05-14 09:07:31 +02:00
Sebastian Gniazdowski 11c6855adc Updated README.md 2017-05-14 09:06:03 +02:00
Sebastian Gniazdowski 2412d1b5c7 Merge all-variants of commands (e.g. update-all) into normal variants 2017-05-14 08:43:25 +02:00
Sebastian Gniazdowski cecf86a2e4 Optimize option recognition towards Zsh startup time 2017-05-14 08:09:22 +02:00
Sebastian Gniazdowski 1ca3d78aeb Remove trailing spaces from source, uplift unknown-command message 2017-05-14 08:06:49 +02:00
Sebastian Gniazdowski 68f556c1d5 *autoload: Prevent pager from being run on update/update-all 2017-05-14 06:58:18 +02:00
Sebastian Gniazdowski 819760ea4f Updated README.md (News section) 2017-05-13 19:29:08 +02:00
Sebastian Gniazdowski b2b18216b4 Updated README.md 2017-05-13 19:18:55 +02:00
Sebastian Gniazdowski 6df69b253e Updated README.md 2017-05-13 19:16:26 +02:00
Sebastian Gniazdowski cfff0f3f06 Updated README.md 2017-05-13 19:14:44 +02:00
Sebastian Gniazdowski 158613ae57 main,*autoload: Snippets are updated on command update-all 2017-05-13 19:02:41 +02:00
Sebastian Gniazdowski c8f8e749fa Fix option parsing of snippet (bad behavior on empty --command) 2017-05-13 18:55:53 +02:00
Sebastian Gniazdowski 699e2b5562 Store final URL to snippet within snippet's directory 2017-05-13 18:39:40 +02:00
Sebastian Gniazdowski 62b763cca0 Optimize out directory access at snippet loading 2017-05-13 18:35:14 +02:00
Sebastian Gniazdowski 6b0ad8a1dd Updated README.md 2017-05-13 17:12:55 +02:00
Sebastian Gniazdowski f890943895 Updated README.md 2017-05-13 17:12:30 +02:00
Sebastian Gniazdowski 94d8940fcd Updated README.md 2017-05-13 17:10:44 +02:00
Sebastian Gniazdowski 0bb3ac3e40 Updated README.md 2017-05-13 17:08:41 +02:00
Sebastian Gniazdowski 792446a1f1 Updated README.md 2017-05-13 17:08:06 +02:00
Sebastian Gniazdowski 29a918345f Updated README.md 2017-05-13 16:57:09 +02:00
Sebastian Gniazdowski 08de7bb147 Updated README.md 2017-05-13 16:55:41 +02:00
Sebastian Gniazdowski 624eaab03b Updated README.md 2017-05-13 16:51:06 +02:00
Sebastian Gniazdowski 96126cc836 Updated README.md 2017-05-13 16:48:40 +02:00
Sebastian Gniazdowski f9145f016e Updated README.md 2017-05-13 16:44:16 +02:00
Sebastian Gniazdowski 6f97f08fba _zplugin: Fix snippet completion 2017-05-13 16:24:00 +02:00
Sebastian Gniazdowski c29b23609b _zplugin: Update completion for snippet (the new option: --command) 2017-05-13 16:13:09 +02:00
Sebastian Gniazdowski 14a63c7421 snippet supports --command option which adds a file to $PATH 2017-05-13 16:10:39 +02:00
Sebastian Gniazdowski 22111ab7b4 snippet supports URLs containing ?,&,=. Directory name change 2017-05-13 15:43:48 +02:00
Sebastian Gniazdowski 96a011cf40 snippet supports new protocols ftp(s) and scp. Directory name change 2017-05-13 15:38:32 +02:00
Sebastian Gniazdowski aa2b7ae7b1 Use also lftp for snippet downloading, test the download, output message 2017-05-13 15:14:23 +02:00
Sebastian Gniazdowski 62093ee4c1 Run wget (snippet downloading) with -q (quiet) option 2017-05-13 15:11:15 +02:00
Sebastian Gniazdowski 6cbf987b94 *autoload: Do git log and git pull only after successful fetch 2017-05-13 15:10:01 +02:00
Sebastian Gniazdowski d927c27389 *autoload: update - check for remote in git config, for user _local 2017-05-13 13:32:58 +02:00
Sebastian Gniazdowski 93682aa41d *autoload: update-all - check for remote in git config, for user _local 2017-05-13 13:31:25 +02:00
Sebastian Gniazdowski 5a71552e68 Show tag information in the update log of fetched commits 2017-05-13 12:43:37 +02:00
Sebastian Gniazdowski 0a6b5abbc3 Updating plugin shows newly downloaded commits, doesn't show stats 2017-05-13 12:37:20 +02:00
Sebastian Gniazdowski cf715e5e59 Correctly handle non-existent local plugin 2017-05-13 10:56:09 +02:00
Sebastian Gniazdowski 702092e61e *autoload,main: Move -zplg-unregister-plugin from *autoload to main 2017-05-12 10:56:42 +02:00
Sebastian Gniazdowski 6f0799bd92 Allow zplugin.zsh to be compiled 2017-04-18 15:10:52 +02:00
Sebastian Gniazdowski 9a088d44f9 Divide zplugin's source 2017-04-18 12:48:12 +02:00
Sebastian Gniazdowski c46563b975 Allow risk of "function" alias, to protect against normal aliases 2017-04-18 12:04:13 +02:00
Sebastian Gniazdowski 3c1eca2015 Optimize *shadow-on – no setopt localoptions 2017-04-18 11:44:44 +02:00
Sebastian Gniazdowski 572f4fa9bd Better color for zstatus data 2017-04-18 11:02:49 +02:00
Sebastian Gniazdowski baa99c8abf Switch to better [[ 2017-04-18 10:54:33 +02:00
Sebastian Gniazdowski 5158688918 Completions can be made to work in multi-user environment 2017-02-23 11:13:04 +01:00
Sebastian Gniazdowski 1f5103c932 Change order of tests to favor any version of ncurses, just in case 2017-02-06 21:08:14 +01:00
Sebastian Gniazdowski bc711ee249 Include stamp-h.in and config.h.in 2017-02-06 20:12:04 +01:00
Sebastian Gniazdowski 8ce05b088b Merge branch 'master' of https://github.com/psprint/zplugin 2017-02-06 18:42:19 +01:00
Sebastian Gniazdowski e07517059f Add configure script generated by GNU Autoconf 2.69 2017-02-06 18:21:56 +01:00
yn 349797a390 Add .zshrc as source, if reading in someone else's dotfiles (#15)
* Add .zshrc as source, if reading in someone else's dotfiles

* Make the path a pattern that is globbed.

As requested in PR comment at https://github.com/psprint/zplugin/pull/15
2017-02-05 07:29:23 +01:00
Sebastian Gniazdowski 52a3777547 zmod: Remove unused loadautofnsetfile 2017-02-01 18:34:28 +01:00
Sebastian Gniazdowski bdf28d4c17 Autoloading via parent-absolute-path works 2017-02-01 18:33:03 +01:00
Sebastian Gniazdowski ddd902d935 Remove loadautofn 2017-01-31 22:05:50 +01:00
Sebastian Gniazdowski 464e1b8acb zmod: loadautofn custom function 2017-01-31 20:30:11 +01:00
Sebastian Gniazdowski 61bca32fef Pristine, working autoload builtin in autoload2 module 2017-01-31 20:21:24 +01:00
Sebastian Gniazdowski 91b6c87ca4 Add 4 more files to have their .syms 2017-01-31 20:14:12 +01:00
Sebastian Gniazdowski 2e8bed4eba Add two more files to gain .syms: pattern.c, signals.c 2017-01-31 20:07:32 +01:00
Sebastian Gniazdowski 145c134998 zmod: Two functions copied, one of them has the added, new feature 2017-01-31 19:58:56 +01:00
Sebastian Gniazdowski 8fa5dbe25d Files whose .syms files are required 2017-01-31 19:54:37 +01:00
Sebastian Gniazdowski 710a2563d7 Merge branch 'master' of https://github.com/psprint/zplugin 2017-01-31 19:40:48 +01:00
Sebastian Gniazdowski 6a4ba014eb Add zmodules – environment and source to build autoload2 module 2017-01-31 19:35:40 +01:00
psprint 03ef34e7ab Merge pull request #18 from dritter/patch-1
Fix a typo
2017-01-03 14:33:37 +01:00
Dominik Ritter d95d537b7f Fix a typo 2016-12-28 01:36:50 +01:00
Sebastian Gniazdowski 0cdb19e12c Workaround possible set -u (nounset) 2016-10-29 19:46:22 +02:00
Sebastian Gniazdowski 202c7b9da6 Updated README.md 2016-10-19 16:51:13 +02:00
Sebastian Gniazdowski 0e47ad891a < 5.1 autoload now accepts function names starting with - 2016-10-18 16:49:24 +02:00
Sebastian Gniazdowski 25b399fd0c __* files not treated as completions 2016-10-06 13:27:41 +02:00
Sebastian Gniazdowski 251d7070a0 ${(q-)opts[*]} -> ${(q-)opts[@]} 2016-09-27 10:12:52 +02:00
Sebastian Gniazdowski 999e7a7274 Stub functions declared for autoloading use fine-crafted quoting 2016-09-27 09:55:31 +02:00
Sebastian Gniazdowski 199d8eff34 Updated README.md 2016-09-25 09:15:55 +02:00
Sebastian Gniazdowski 48f66a37df Make "colors" run conditional 2016-09-19 18:39:00 +02:00
Sebastian Gniazdowski 74c8398222 Immunity to user's "[" function or "[" program 2016-09-16 08:32:01 +02:00
Sebastian Gniazdowski 5f69c54d05 Following Trevor Joynson's pull request: use >! to overcome NO_CLOBBER 2016-09-15 13:14:07 +02:00
Sebastian Gniazdowski adbf9c953f Following Trevor Joynson's pull request: add "--" to unalias and unset 2016-09-15 13:09:23 +02:00
Sebastian Gniazdowski 41bd90a938 Following Trevor Joynson's pull request: add "--" to unfunction calls 2016-09-15 12:54:44 +02:00
Sebastian Gniazdowski 9514612b47 Updated README.md 2016-09-14 07:34:10 +02:00
Sebastian Gniazdowski 7b47fe8217 Add note about authorship of FPATH-clean autoloading 2016-06-13 15:53:26 +02:00
Sebastian Gniazdowski 67d33a7b53 Remove not working hub backend (zplg create) 2016-06-11 11:31:42 +02:00
Sebastian Gniazdowski 1b89241fe7 Updated README.md 2016-06-10 11:11:22 +02:00
Sebastian Gniazdowski cd3da173e7 Better immunity to setopt nofunctionargzero 2016-06-10 05:21:08 +02:00
Sebastian Gniazdowski 3e4f1360ae Better compatibility with emulate sh, ksh via the $_ variable 2016-06-09 20:55:29 +02:00
Sebastian Gniazdowski 77280a5050 Updated README.md (Quick start) 2016-06-09 12:35:48 +02:00
Sebastian Gniazdowski a06c5bd692 Updated README.md 2016-06-07 16:15:30 +02:00
Sebastian Gniazdowski 274e1ed8fb Updated manual page 2016-06-07 15:22:41 +02:00
Sebastian Gniazdowski 6238c911a9 Updated README.md 2016-06-07 15:15:56 +02:00
Sebastian Gniazdowski d7a30d35de -q for cdclear 2016-06-07 09:34:03 +02:00
Sebastian Gniazdowski 52ed8f6b2b cclear: delete stray and improper completions 2016-06-06 10:44:14 +02:00
Sebastian Gniazdowski f1d481e1f1 Detect stray and improper completions (in clist view) 2016-06-06 10:44:00 +02:00
Sebastian Gniazdowski 3148a03307 Add comment to explain what -zplg-get-completion-owner does 2016-06-06 09:41:23 +02:00
Sebastian Gniazdowski 1c4b123333 Function name -zplg-prepare-readline -> -zplg-prepare-readlink 2016-06-06 09:15:15 +02:00
Sebastian Gniazdowski f0c7d9acbf More logical mock-plugin creation 2016-06-06 00:57:39 +02:00
Sebastian Gniazdowski 35258b442f Small fix in comment (better quoting) 2016-06-06 00:52:07 +02:00
Sebastian Gniazdowski c52f679a0e Workaround for _vim_files didn't check for the function's existence 2016-06-06 00:50:38 +02:00
Sebastian Gniazdowski 560b20728d Output the colored plugin name when downloading 2016-06-06 00:28:43 +02:00
Sebastian Gniazdowski 554efa6d3e Better conformance with compaudit 2016-06-06 00:20:47 +02:00
Sebastian Gniazdowski 618238b991 Use "builtin" before setopt everywhere 2016-06-05 21:20:34 +02:00
Sebastian Gniazdowski bf739a9ce4 Shadowing enable and disable are now guarded by setopt noaliases 2016-06-05 20:52:02 +02:00
Sebastian Gniazdowski cffdcc4f8f Guard Zplugin's code with noaliases option. Unguarded is shadowing code 2016-06-05 20:40:48 +02:00
Sebastian Gniazdowski 6738b2541d Missing "builtin" before internal alias call 2016-06-05 20:35:39 +02:00
Sebastian Gniazdowski 2b09761766 Prepend "builtin" for remaining internal autoload calls 2016-06-05 20:27:46 +02:00
Sebastian Gniazdowski 71f078febf Use -Uz and builtin for autoload calls used internally by Zplugin 2016-06-05 20:18:17 +02:00
Sebastian Gniazdowski 8ecf3e87a4 Remove OMZ directory structure simulation 2016-06-05 19:30:16 +02:00
Sebastian Gniazdowski 1b65c0e39f Make <5.1 autoload immune to IFS change 2016-06-04 13:32:36 +02:00
Sebastian Gniazdowski 796a6a7a40 Autoload for >=5.1 uses given options 2016-06-04 10:22:13 +02:00
Sebastian Gniazdowski 2f2721fd50 Updated README.md 2016-05-26 06:27:18 +02:00
Sebastian Gniazdowski 11d2b661f6 Include workaround for a trick in _vim 2016-05-26 06:09:19 +02:00
Sebastian Gniazdowski cb26c2d08f Compdefs are always just recorded (for replay) 2016-05-25 16:19:22 +02:00
Sebastian Gniazdowski c40960fb5a Fix bug in handling compdef 2016-05-25 16:14:25 +02:00
243 changed files with 24960 additions and 11465 deletions

10
.dockerignore Normal file
View file

@ -0,0 +1,10 @@
.git/
.github/
.git*
doc/
scripts/
test/
tests/
*.zwc
Makefile

16
.gitattributes vendored Normal file
View file

@ -0,0 +1,16 @@
# By default, everything is text
* text=auto
# These must be unix EOLs
*.sh eol=lf
*.zsh diff=zsh eol=lf
*.zunit diff=zsh eol=lf
Makefile eol=lf
# Use the markdown differ.
*.md diff=markdown
# Binary files
*.png binary
# EOF

3
.github/CODEOWNERS vendored Normal file
View file

@ -0,0 +1,3 @@
* @alichtman @pschmitt @vladdoster
# Should consider adding @psprint as well

99
.github/ISSUE_TEMPLATE/bug-report.yml vendored Normal file
View file

@ -0,0 +1,99 @@
name: Bug Report
description: File a bug report
title: "[bug]: "
labels: ["bug", "triage"]
assignees:
- vladdoster
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
## Self Check
- Look for similar errors in existing [GitHub Issues](https://github.com/zdharma-continuum/zinit/issues?q=is%3Aissue) (open or closed).
- Try reaching out on the [Gitter server](https://matrix.to/#/#zdharma-continuum_community:gitter.im) for help.
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
value: "A bug happened!"
validations:
required: true
- type: textarea
validations:
required: true
attributes:
label: Steps to reproduce
description: |
Steps to reproduce the problem
placeholder: |
1. Enable plugin 'foo'
2. Run 'foo bar' or try to complete command 'foo --widget'
3. See error
- type: textarea
id: logs
attributes:
label: Relevant output
description: Please copy and paste any relevant output. This will be automatically formatted into code, so no need for backticks.
render: shell
- type: textarea
attributes:
label: Screenshots and recordings
description: |
If applicable, add screenshots or [asciinema](https://asciinema.org) session to explain your problem
- type: input
validations:
required: true
attributes:
label: Operating System & Version
description: |
Output of
```
echo "OS: ${OSTYPE:-N/A} | Vendor: ${VENDOR:-N/A} | Machine: ${MACHTYPE:-N/A} | CPU: ${CPUTYPE:-N/A} | Processor: ${$(uname -p 2>/dev/null):-N/A} | Hardware: ${$(uname -m 2>/dev/null):-N/A}"
```
- type: input
validations:
required: true
attributes:
label: Zsh version
description: Output of `zsh --version`
- type: input
validations:
required: true
attributes:
label: Terminal emulator
description: Terminal name & output of `echo "${TERM}"`
- type: dropdown
attributes:
label: If using WSL on Windows, which version of WSL
description: Output `wsl -l -v`
options:
- 'WSL 1'
- 'WSL 2'
- type: textarea
attributes:
label: Additional context
description: Add any other context about the problem. This can be themes, plugins, custom settings, etc.
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](../../CODE_OF_CONDUCT.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true

8
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View file

@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Support
url: https://github.com/zdharma-continuum/zinit/discussions
about: Ask the community for support
- name: Get help on Matrix
url: https://matrix.to/#/#zdharma-continuum_community:gitter.im
about: Have a quick question? Join the Gitter community and ask your question.

View file

@ -0,0 +1,32 @@
name: Documentation
description: Create a report to help us improve the documentation
labels: [documentation]
title: "[doc]: "
body:
- type: input
id: link
attributes:
label: Documentation Link
description: |
Link to any documentation or examples that you are referencing.
Suggested improvements should be based on the development version of the docs: https://zdharma-continuum.github.io/zinit/wiki/
placeholder: https://zdharma-continuum.github.io/zinit/wiki/...
- type: textarea
id: problem
attributes:
label: Problem
description: What is missing, unclear, or wrong in the documentation?
placeholder: |
* I found [...] to be unclear because [...]
* [...] made me think that [...] when really it should be [...]
* There is no example showing how to do [...]
validations:
required: true
- type: textarea
id: improvement
attributes:
label: Suggested improvement
placeholder: |
* This line should be be changed to say [...]
* Include a paragraph explaining [...]
* Add a figure showing [...]

View file

@ -0,0 +1,38 @@
name: Feature request
description: Suggest a feature for Zinit
labels: ["feature"]
title: "[feat]: "
body:
- type: markdown
attributes:
value: |
## Self Check
- Look for similar features in existing [GitHub Issues](https://github.com/zdharma-continuum/zinit/issues?q=is%3Aissue) (open or closed).
- type: input
attributes:
label: If the feature request is for a plugin or theme, specify it here.
description: The name of the plugin or theme that you would like us to improve.
placeholder: e.g. Git plugin, Agnoster theme
- type: textarea
attributes:
label: If the feature solves a problem you have, specify it here.
description: A description of what the problem is.
placeholder: Ex. I'm always frustrated when...
- type: textarea
attributes:
label: Describe the proposed feature.
description: A description of what you want to happen. Be as specific as possible.
validations:
required: true
- type: textarea
attributes:
label: Describe alternatives you've considered
description: A description of any alternative solutions or features you've considered. This can also include other plugins or themes.
- type: textarea
attributes:
label: Additional context
description: Add any other context, screenshots or Gitter conversations about the feature request here. Also if you have any PRs related to this issue that are already open that you would like us to look at.
- type: textarea
attributes:
label: Related Issues
description: Is there any open or closed issues that is related to this feature request? If so please link them below!

17
.github/ISSUE_TEMPLATE/maintenance.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: Maintenance
description: Help improve performance, usability and/or consistency.
title: "[maint]: "
labels: [Maintenance]
body:
- type: textarea
id: summary
attributes:
label: Summary
description: Please provide 1-2 short sentences that succinctly describes what could be improved.
validations:
required: true
- type: textarea
id: fix
attributes:
label: Proposed fix
description: Please describe how you think this could be improved.

7
.github/dependabot.yaml vendored Normal file
View file

@ -0,0 +1,7 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

41
.github/labeler.yml vendored Normal file
View file

@ -0,0 +1,41 @@
ci/cd:
- changed-files:
- any-glob-to-any-file: '.github/**'
docker:
- changed-files:
- any-glob-to-any-file: 'docker/**'
scripts:
- changed-files:
- any-glob-to-any-file: 'docker/**'
tests:
- changed-files:
- any-glob-to-any-file: ['.zunit.yml', 'tests/**/*']
completion:
- changed-files:
- any-glob-to-any-file: '_zinit'
# Add 'Documentation' label to any file changes within 'docs' folder
docs:
- changed-files:
- any-glob-to-any-file: 'doc/**'
- any-glob-to-any-file: '**/*.md'
# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
zinit:
- changed-files:
- any-glob-to-any-file: 'zinit*.zsh*'
# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
feature:
- head-branch: ['^feat']
fix:
- head-branch: ['^fix']
# Add 'release' label to any PR that is opened against the `main` branch
release:
- base-branch: 'main'

38
.github/stale.yml vendored Normal file
View file

@ -0,0 +1,38 @@
# Configuration for probot-stale - https://github.com/probot/stale
# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 180
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
daysUntilClose: 7
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels: []
# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false
# Set to true to ignore issues in a milestone
exemptMilestones: false
# Set to true to ignore issues with an assignee
exemptAssignees: false
# Label to use when marking as stale
staleLabel: stale
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30
# configuration settings that are specific to just 'issues' or 'pulls':
pulls:
daysUntilStale: 30
markComment: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
unmarkComment: >
This pull request has been automatically marked as not stale anymore due to the recent activity.
closeComment: >
This pull request has been automatically closed because it had not recent activity during the stale period.
issues:
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
unmarkComment: >
This issue has been automatically marked as not stale anymore due to the recent activity.
closeComment: >
This issue has been automatically closed because it had not recent activity during the stale period.

View file

@ -0,0 +1,24 @@
name: Bump Homebrew Formula
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
bump-homebrew-formula:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Bump Homebrew formulae
uses: dawidd6/action-homebrew-bump-formula@v8
with:
formula: zinit
# A Personal Access Token (PAT) is instead of the default
# GITHUB_TOKEN because brew bump-formula-pr creates a fork of the
# formula's tap repository (if needed) and then creates a pull
# request.
token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}

99
.github/workflows/containers.yaml vendored Normal file
View file

@ -0,0 +1,99 @@
name: Container images
on:
push:
branches:
- main
tags:
- v[0-9]+.[0-9]+.[0-9]+
workflow_dispatch:
jobs:
build-containers-with-zsh:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
zsh_version:
- 5.8
- 5.9
steps:
- name: check out repository code
uses: actions/checkout@v7
- name: Grab git slugs (short commit id, branch etc.)
uses: rlespinasse/github-slug-action@v3.x
- name: set up qemu
uses: docker/setup-qemu-action@v4
- name: setup docker buildx
id: buildx
uses: docker/setup-buildx-action@v4
with:
install: true
use: true
- name: login to github container registry
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build and push
id: docker_build_zsh_versions
uses: docker/build-push-action@v7
timeout-minutes: 90 # compiling older zsh versions take a long time
with:
push: ${{ github.event.number == 0 }}
file: ./docker/Dockerfile
build-args: |
ZINIT_ZSH_VERSION=${{ matrix.zsh_version }}-tcsetpgrp
tags: |
ghcr.io/${{ github.repository }}:zsh-${{ matrix.zsh_version }}
ghcr.io/${{ github.repository }}:zsh-${{ matrix.zsh_version }}-${{ env.GITHUB_SHA_SHORT }}
platforms: linux/amd64,linux/arm64/v8
cache-from: type=gha
cache-to: type=gha,mode=max
build-container-latest:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v7
- name: get vcs details
uses: rlespinasse/github-slug-action@v3.x
- name: setup docker qemu
uses: docker/setup-qemu-action@v4
- name: setup docker buildx
id: buildx
uses: docker/setup-buildx-action@v4
with:
install: true
use: true
- name: github container registry authentication
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build & push new image
id: docker_build_latest
uses: docker/build-push-action@v7
if: github.ref == 'refs/heads/main'
with:
push: true
file: ./docker/Dockerfile
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ env.GITHUB_SHA_SHORT }}
ghcr.io/${{ github.repository }}:${{ env.GITHUB_REF_SLUG }}
platforms: linux/amd64,linux/arm64/v8
cache-from: type=gha
cache-to: type=gha,mode=max

41
.github/workflows/documentation.yaml vendored Normal file
View file

@ -0,0 +1,41 @@
name: Documentation
on:
pull_request:
branches:
- main
paths:
- 'zinit*.zsh'
push:
branches:
- main
paths:
- 'zinit*.zsh'
workflow_dispatch:
jobs:
zshelldoc:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v7
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.ref || github.ref }}
- name: re-generate documentation
run: |
make doc/container
sudo chown -R "$(id -u):$(id -g)" .
- name: commit and push updated docs
if: github.event_name != 'pull_request'
uses: EndBug/add-and-commit@v11
with:
add: 'doc'
author_name: GitHub Actions
author_email: actions@github.com
commit: --signoff
message: 'docs: generate'
push: true

View file

@ -0,0 +1,67 @@
# name: Installer
# concurrency:
# cancel-in-progress: true
# group: ${{ github.workflow }}-${{ github.ref }}
# defaults:
# run:
# shell: bash
# env:
# NO_INPUT: true
# TERM: xterm
# ZINIT_BRANCH: ${{ github.ref_name }}
# ZINIT_COMMIT: ${{ github.sha }}
# ZINIT_REPO: ${{ github.repository }}
# on:
# pull_request:
# branches:
# - main
# paths:
# - .github/workflows/installer.yaml
# - scripts/**
# - share/**
# - zinit*.zsh
# push:
# branches:
# - main
# workflow_dispatch:
# jobs:
# zinit-installer:
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: true
# matrix:
# annexes: ["with annexes", "no annexes"]
# os: [macos-latest, ubuntu-latest, windows-latest]
# steps:
# - name: check out repository
# uses: actions/checkout@v3
# - name: windows dependencies
# if: runner.os == 'Windows'
# uses: egor-tensin/setup-cygwin@v3
# with:
# platform: x64
# packages: curl git zsh
# - name: remove \r
# if: runner.os == 'Windows'
# run: sed -i 's/\r$//' scripts/*.sh
# - name: linux/macos dependencies
# if: runner.os != 'Windows'
# run: brew install --force curl subversion unzip xz zsh
# - name: install
# run: ./scripts/install.sh
# - name: verify install
# run: zsh -silc 'zinit --help'

19
.github/workflows/labeler.yaml vendored Normal file
View file

@ -0,0 +1,19 @@
name: label
on:
pull_request_target: # https://securitylab.github.com/research/github-actions-preventing-pwn-requests
jobs:
label-pull-requests:
name: "pull requests"
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v7
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true

82
.github/workflows/linting.yaml vendored Normal file
View file

@ -0,0 +1,82 @@
name: lint
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
jobs:
commit:
name: "commit convention"
uses: zdharma-continuum/.github/.github/workflows/commit-job.yml@main
mdlint:
name: markdown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: xt0rted/markdownlint-problem-matcher@v3
- run: npm install -g markdownlint-cli@0.44.0
# disabled checks:
# MD013/line-length
# MD024/no-duplicate-heading
# MD033/no-inline-html
# MD034/no-bare-urls
# MD036/no-emphasis-as-heading
# MD041/first-line-heading/first-line-h1
# MD059/descriptive-link-text
# MD060/table-column-style
- run: |
markdownlint --version
# List files to lint
ls *.md **/*.md
markdownlint \
--disable MD013 MD024 MD029 MD033 MD034 MD036 MD041 MD059 MD060 \
--ignore '**/CHANGELOG.md' \
-- *.md **/*.md
zshlint:
name: zsh
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
task: [noexec, zcompile]
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-python@v7
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install --yes zsh
- name: "run lint (${{ matrix.task }})"
run: |
case "${{ matrix.task }}" in
noexec)
find . -name '*.zsh' -type f -print0 \
| xargs -0 -n1 -P4 zsh -n
;;
zcompile)
find . -name '*.zsh' -type f \
-exec zsh -fc "zcompile {}" \;
;;
*)
echo "ERROR: unknown task ${{ matrix.task }}" >&2
exit 1
;;
esac

32
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: Release
on:
workflow_dispatch:
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: '20'
- name: Fetch dependencies
run: |
npm install --no-package-lock \
@semantic-release/changelog @semantic-release-plus/docker @semantic-release/exec @semantic-release/git \
conventional-changelog-eslint @google/semantic-release-replace-plugin
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Generate release
run: npx semantic-release --ci --
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_AUTHOR_EMAIL: 'mvdoster@gmail.com'
GIT_AUTHOR_NAME: 'Vladislav Doster'
GIT_COMMITTER_EMAIL: 'mvdoster@gmail.com'
GIT_COMMITTER_NAME: 'Vladislav Doster'

105
.github/workflows/tests.yaml vendored Normal file
View file

@ -0,0 +1,105 @@
name: tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 0
HOMEBREW_NO_REQUIRE_TAP_TRUST: 1
TERM: xterm-256color
# TERM: dumb
on:
pull_request:
branches:
- main
paths:
- "tests/**"
- "share/**"
- "zinit*.zsh"
- ".github/workflows/tests.yaml"
push:
branches:
- main
workflow_dispatch:
jobs:
zunit-tests:
name: "${{ matrix.zunit_test }} | ${{ matrix.os }}"
runs-on: "${{ matrix.os }}-latest"
strategy:
fail-fast: false
matrix:
zunit_test:
- annexes
- commands
- compile
- config-zstyle
- gh-r
- hook-handler
- ice-validation
- ices
- plugins
- snippets
os: [macos, ubuntu]
include:
- zunit_test: gh-r
zunit_flag: --slice
- zunit_test: plugins
zunit_flag: --slice
steps:
- name: "checkout ${{ github.repository }}"
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: "install homebrew"
id: setup-homebrew
uses: Homebrew/actions/setup-homebrew@f8d4222eb633e65c2a0157383cf80861fc7fae7f
- name: "install ${{ runner.os }} dependencies"
if: runner.os == 'Linux'
run: |
sudo apt-get update --yes
sudo apt-get install --no-install-recommends --yes \
autoconf automake autotools-dev \
build-essential byacc \
file \
gcc gettext glibc-source grep \
libc6 libc6-dev libevent-dev libncurses5-dev libncursesw5-dev libtool libuvc0 lua5.1 \
m4 \
ninja-build \
pkg-config \
xz-utils \
zsh \
zstd
- name: "install dependencies via brew"
id: install-deps
run: |
brew install --quiet --force --overwrite autoconf automake binutils byacc coreutils curl gettext gnu-sed jemalloc libevent libtool libuv lua lua@5.4 make ninja parallel pkg-config texinfo unzip xz zsh zstd
brew unlink ncurses && brew link --force ncurses
- name: "checkout zdharma-continuum/zunit"
uses: actions/checkout@v7
with:
repository: "zdharma-continuum/zunit"
path: zunit
ref: "feat/run-tests-in-parallel-support"
- name: "install zunit"
id: install-zunit
shell: zsh {0}
working-directory: zunit
run: |
mkdir -p "${HOME}/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
./configure --prefix=${HOME}/.local
make all install
- name: "run ${{ matrix.zunit_test }} tests"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: zunit run ${{ matrix.zunit_flag }} tests/${{ matrix.zunit_test }}.zunit

24
.gitignore vendored Normal file
View file

@ -0,0 +1,24 @@
*.[aos]
*.bundle
*.dll
*.orig
*.txt
*.zini
*.zwc
*deploy*key*
*~
.*.sw?
.project
TAGS
TODO*
\#*
doc/zsdoc/data
other
site*/
tags
test/
txt/
zmodules/
tests/_output/
tests/_support/tmp*
.idea

47
.releaserc.json Normal file
View file

@ -0,0 +1,47 @@
{
"repositoryUrl": "https://github.com/zdharma-continuum/zinit.git",
"branches": [
"main"
],
"plugins": [
[ "@semantic-release/commit-analyzer", { } ],
[
"@google/semantic-release-replace-plugin",
{
"replacements": [
{
"files": [
"VERSION"
],
"from": "^([0-9]).+([0-9]).+([0-9])$",
"to": "${nextRelease.version}",
"results": [
{
"file": "VERSION",
"hasChanged": true
}
]
}
]
}
],
[ "@semantic-release/release-notes-generator", { } ],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"VERSION"
],
"message": "release: v${lastRelease.version} → v${nextRelease.version}\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}

14
.zunit.yml Normal file
View file

@ -0,0 +1,14 @@
allow_risky: false
directories:
output: tests/_output
support: tests/_support
tests: tests
fail_fast: false
# Both parallel keys stay false, and the flags stay on the command line.
# zunit's config booleans are one-way -- there is no --no-parallel or
# --no-verbose -- so a `true' here could never be turned off again, not even
# for `zunit run tests/commands.zunit@"help"'. parallel_slice additionally
# implies parallel, and only does anything for a run that queues one file.
parallel: false
parallel_slice: false
verbose: false

278
CHANGELOG.md Normal file
View file

@ -0,0 +1,278 @@
# [3.17.0](https://github.com/zdharma-continuum/zinit/compare/v3.16.0...v3.17.0) (2026-09-02)
### Features
* **ziextract:** support zst archive format ([b8855c7](https://github.com/zdharma-continuum/zinit/commit/b8855c7887e26f79934b6122232b141cdd3106bf))
# [3.16.0](https://github.com/zdharma-continuum/zinit/compare/v3.15.3...v3.16.0) (2026-08-31)
### Bug Fixes
* **self-update:** honor -q in changelog display ([a85e9dc](https://github.com/zdharma-continuum/zinit/commit/a85e9dcc3ee2beebf3947ef6091ccd540d94f6f3))
### Features
* **self-update:** support -n/--no-pager ([cc3baf3](https://github.com/zdharma-continuum/zinit/commit/cc3baf395fa51de11e7d76b11104e36d8d142601)), closes [#632](https://github.com/zdharma-continuum/zinit/issues/632)
## [3.15.3](https://github.com/zdharma-continuum/zinit/compare/v3.15.2...v3.15.3) (2026-08-28)
### Bug Fixes
* **install:** retry and auth github api downloads ([eaa1056](https://github.com/zdharma-continuum/zinit/commit/eaa10566992e8371a27fbb1300e6fdc2e4161f17)), closes [#r](https://github.com/zdharma-continuum/zinit/issues/r)
## [3.15.2](https://github.com/zdharma-continuum/zinit/compare/v3.15.1...v3.15.2) (2026-08-28)
### Bug Fixes
* **install:** treat non-archive single file gracefully in ziextract. ([981cb15](https://github.com/zdharma-continuum/zinit/commit/981cb1582ece95dfad9d6c53d34a601f6b25391f)), closes [#771](https://github.com/zdharma-continuum/zinit/issues/771) [#r](https://github.com/zdharma-continuum/zinit/issues/r) [Pre-#771](https://github.com/Pre-/issues/771)
## [3.15.1](https://github.com/zdharma-continuum/zinit/compare/v3.15.0...v3.15.1) (2026-08-27)
### Bug Fixes
* **ices:** expand the atinit'!' ice correctly ([ed80701](https://github.com/zdharma-continuum/zinit/commit/ed807014262aca939d24d9e0e9356aa64ad5ae73))
* **ices:** restore $OLDPWD around plugin directory hooks ([712cac1](https://github.com/zdharma-continuum/zinit/commit/712cac1952fb4d35861082748068ae33c757f125))
* **ices:** restore cwd even when the ice body cds ([264526a](https://github.com/zdharma-continuum/zinit/commit/264526ab26715e54fdc7fa36d5b23b881459e19f))
* **install:** restore cwd after the configure hook ([d875651](https://github.com/zdharma-continuum/zinit/commit/d875651d5986f42b6ba8b37ca07f66d45d083749))
* **install:** restore cwd on early atclone return ([736403c](https://github.com/zdharma-continuum/zinit/commit/736403cb39e66ec7da7c4c373fdb99961bde5a83))
# [3.15.0](https://github.com/zdharma-continuum/zinit/compare/v3.14.0...v3.15.0) (2026-07-01)
### Bug Fixes
* .zi-check-for-git-changes runs git fetch before checking for changes ([1107460](https://github.com/zdharma-continuum/zinit/commit/1107460bcd533c1a9003d1cf3db2918425f11c4a))
* add markdownlint exceptions to linting ([507b4e5](https://github.com/zdharma-continuum/zinit/commit/507b4e5722ecfde21c42cc4e6502b0049e3ef192))
* avoid apostrophe that breaks typeset -f round-trip of :zinit-tmp-subst-autoload ([#783](https://github.com/zdharma-continuum/zinit/issues/783)) ([d2d4237](https://github.com/zdharma-continuum/zinit/commit/d2d4237715081ea138eb1a9d4a7d1634eec7a36e))
* correct SSH URL format for private repos ([#721](https://github.com/zdharma-continuum/zinit/issues/721)) ([991e4a8](https://github.com/zdharma-continuum/zinit/commit/991e4a816efc426bb1c2c0b13a01acff298b8005))
* corrected print-out message in self-update routine ([bb37f3b](https://github.com/zdharma-continuum/zinit/commit/bb37f3bbd829485b006ef95ca24edbb462347731))
* impl gh-r version detection using GitHub API ([#731](https://github.com/zdharma-continuum/zinit/issues/731)) ([f1e503d](https://github.com/zdharma-continuum/zinit/commit/f1e503dc3b6ac689331180e577b4e7da79e17b02)), closes [#r](https://github.com/zdharma-continuum/zinit/issues/r)
* prevent "permission denied" errors from empty hook handlers ([#729](https://github.com/zdharma-continuum/zinit/issues/729)) ([2167408](https://github.com/zdharma-continuum/zinit/commit/2167408db27720031983d1067c156837cf522ff3))
* prevent double extraction when exclamation mark modifier is used in extract'!' ([4fd38b3](https://github.com/zdharma-continuum/zinit/commit/4fd38b34e76fb97fb20d2345256e80526a4921c8)), closes [#r](https://github.com/zdharma-continuum/zinit/issues/r) [#r](https://github.com/zdharma-continuum/zinit/issues/r)
* remove `local -A OPTS` that shadows caller's parallel flag ([#774](https://github.com/zdharma-continuum/zinit/issues/774)) ([e88ed77](https://github.com/zdharma-continuum/zinit/commit/e88ed77319c9a2e0187b964f9ad99f17a33d5999))
* resolve a bug where the `-q` option for quiet mode was never dispatched ([6cf2f29](https://github.com/zdharma-continuum/zinit/commit/6cf2f2990d45d72f58d88433c9831b2ea64e8d76))
* resolve a second issue where `git -C <path>` had to be used instead of `git --work-tree <path>` ([2e83176](https://github.com/zdharma-continuum/zinit/commit/2e83176b23d7be5db48c8bfcdea67197692d2569))
* resolves a bug with github action trying to push updated docs back to external forks ([#763](https://github.com/zdharma-continuum/zinit/issues/763)) ([34a1811](https://github.com/zdharma-continuum/zinit/commit/34a18112e8866a7a7570b0ee1da44298677cc8d2))
* silenced `zinit self-update` when in quiet mode (`-q`) ([8d154b0](https://github.com/zdharma-continuum/zinit/commit/8d154b0609e1dbb0387fb15cd93507c794ee9ec2))
* trust archive permissions instead of `file(1)` heuristics in `ziextract` ([#771](https://github.com/zdharma-continuum/zinit/issues/771)) ([1334994](https://github.com/zdharma-continuum/zinit/commit/1334994f20d58e7279d308401dea2b680c0cade1))
* update `git-chglog` to `git-cliff` in gh-r tests ([18fc2cc](https://github.com/zdharma-continuum/zinit/commit/18fc2cc5b903450d17f340898e4abbbb48ad975c)), closes [#r](https://github.com/zdharma-continuum/zinit/issues/r)
* Update various tools in gh-r tests ([#759](https://github.com/zdharma-continuum/zinit/issues/759)) ([01eb65f](https://github.com/zdharma-continuum/zinit/commit/01eb65f8cea521779dd0eb23ac1d92239e36d8d6)), closes [#r](https://github.com/zdharma-continuum/zinit/issues/r)
### Features
* validate ice arguments ([#778](https://github.com/zdharma-continuum/zinit/issues/778)) ([424b241](https://github.com/zdharma-continuum/zinit/commit/424b241bc7112bde7bfb906f8726b43bed0ecd1f))
* **zsh:** allow configuring settings like HOME_DIR/BIN_DIR via zstyle ([8f89f88](https://github.com/zdharma-continuum/zinit/commit/8f89f88cfdda42afbf5e1f7a3f2d510caff7354d))
## [3.13.1](https://github.com/zdharma-continuum/zinit/compare/v3.13.0...v3.13.1) (2024-01-22)
### Bug Fixes
* `plugins` command correctly handles keyword argument ([#626](https://github.com/zdharma-continuum/zinit/issues/626)) ([f26d387](https://github.com/zdharma-continuum/zinit/commit/f26d387e51c9103f2ba7142a8c1a25ba1d62e065))
# [3.13.0](https://github.com/zdharma-continuum/zinit/compare/v3.12.1...v3.13.0) (2024-01-18)
### Bug Fixes
* **ci:** remove duplicate gh-r zunit job ([#623](https://github.com/zdharma-continuum/zinit/issues/623)) ([70cefc0](https://github.com/zdharma-continuum/zinit/commit/70cefc086a8b2277476e7f4fa3e00e0f7d4fd4cf))
* debug logging logic and format ([#592](https://github.com/zdharma-continuum/zinit/issues/592)) ([3c7e5be](https://github.com/zdharma-continuum/zinit/commit/3c7e5be07d79b8f1a7fbd5dfd150a09a6309e461))
* handle zinit --help ([#597](https://github.com/zdharma-continuum/zinit/issues/597)) ([8cf9104](https://github.com/zdharma-continuum/zinit/commit/8cf9104ac08da3f7f108a32e0a3b117e22681d46))
* link ice check in .zinit-download-snippet function ([#608](https://github.com/zdharma-continuum/zinit/issues/608)) ([358ef03](https://github.com/zdharma-continuum/zinit/commit/358ef03785a18e694e94fd4560e0582c4024bcc3))
* pin dua gh-r test to v2.20.3 ([#605](https://github.com/zdharma-continuum/zinit/issues/605)) ([0ba778a](https://github.com/zdharma-continuum/zinit/commit/0ba778ac734e33c960fe08bbd56a351b1b86dcd4))
* silence unzip command in ziextract ([#614](https://github.com/zdharma-continuum/zinit/issues/614)) ([71764bf](https://github.com/zdharma-continuum/zinit/commit/71764bf2caa553f52435ed374bb48b74b0a8ad96))
* tar permissions when `ziextract` ran as root user ([#557](https://github.com/zdharma-continuum/zinit/issues/557)) ([e2d477c](https://github.com/zdharma-continuum/zinit/commit/e2d477cde4e87d13ebc6b99e7f95022f75ca075e))
* update labeler config to v5 ([#604](https://github.com/zdharma-continuum/zinit/issues/604)) ([794723c](https://github.com/zdharma-continuum/zinit/commit/794723cc4829e0f9293fc441100913ac7f02566a))
### Features
* configure, make, cmake, and build ices ([#613](https://github.com/zdharma-continuum/zinit/issues/613)) ([#616](https://github.com/zdharma-continuum/zinit/issues/616)) ([22e66db](https://github.com/zdharma-continuum/zinit/commit/22e66db478716005d6fec52cd412fad3fc94a9a2))
* **delete:** fix unsetting plugin state & add `--debug` / `--quiet` flags ([#622](https://github.com/zdharma-continuum/zinit/issues/622)) ([3f4b685](https://github.com/zdharma-continuum/zinit/commit/3f4b68562265e6b06f55124e34fab0fe58c53adf))
* remove zpextract and use ziextract ([#611](https://github.com/zdharma-continuum/zinit/issues/611)) ([2ccac85](https://github.com/zdharma-continuum/zinit/commit/2ccac85e376965a6e6d9fe1dc3f1470b706e9fac))
## [3.12.1](https://github.com/zdharma-continuum/zinit/compare/v3.12.0...v3.12.1) (2023-11-20)
### Bug Fixes
* container zshelldoc install ([#591](https://github.com/zdharma-continuum/zinit/issues/591)) ([8170753](https://github.com/zdharma-continuum/zinit/commit/8170753a5d21f2e54ba30901cdb0afb6399a7b51))
* from'gh-r' skips compile by default ([#590](https://github.com/zdharma-continuum/zinit/issues/590)) ([1f52eee](https://github.com/zdharma-continuum/zinit/commit/1f52eee1b1ef4a76b779d2017f2e7d2151516544))
* respect delete flags after positional arguments ([#587](https://github.com/zdharma-continuum/zinit/issues/587)) ([e18f9a7](https://github.com/zdharma-continuum/zinit/commit/e18f9a7da273fa44079b16a90e89df76664fcbee))
* set home dir to test env in gh-r tests ([#582](https://github.com/zdharma-continuum/zinit/issues/582)) ([9b33288](https://github.com/zdharma-continuum/zinit/commit/9b33288b4aa88a1d41786eacfe31eb966b6c0455))
* use $MACHTYPE instead of arch command ([#588](https://github.com/zdharma-continuum/zinit/issues/588)) ([bcf70e8](https://github.com/zdharma-continuum/zinit/commit/bcf70e8268dd09737d262919dcba0ff3301a705d))
# [3.12.0](https://github.com/zdharma-continuum/zinit/compare/v3.11.0...v3.12.0) (2023-08-30)
### Bug Fixes
* build container for tagged releases ([f933dc0](https://github.com/zdharma-continuum/zinit/commit/f933dc028e9968ed434c21775c2bfc85a722ee04))
* gh-r linux regex & gh-r zunit tests ([#564](https://github.com/zdharma-continuum/zinit/issues/564)) ([207ab9f](https://github.com/zdharma-continuum/zinit/commit/207ab9f281214bc07da82e7e542126745bf878dd))
* gh-r zunit tests ([#561](https://github.com/zdharma-continuum/zinit/issues/561)) ([97b087e](https://github.com/zdharma-continuum/zinit/commit/97b087e68ae0c87cc31bcc9172cedf1cf5fcab68))
* Ignore .yaml and .py files when installing completions ([#528](https://github.com/zdharma-continuum/zinit/issues/528)) ([113cfc4](https://github.com/zdharma-continuum/zinit/commit/113cfc47fb6ec1ed753222b7ba4542ef48ca2fde))
* jq has moved from stedolan/jq to jqlang/jq ([#530](https://github.com/zdharma-continuum/zinit/issues/530)) ([de85908](https://github.com/zdharma-continuum/zinit/commit/de85908f8d0b89ff6327adfa285ca5a0c4302f2d))
* math expression in plugins command ([#559](https://github.com/zdharma-continuum/zinit/issues/559)) ([68a6b42](https://github.com/zdharma-continuum/zinit/commit/68a6b42caf224b2ca2c172d58daf9faf5c86beb9))
* pin fclones version to v0.31.0 ([497d519](https://github.com/zdharma-continuum/zinit/commit/497d519d99c3d3cdb8e71dfdf4583cadef9220a0))
* quote parens so that they aren't used as globs ([#549](https://github.com/zdharma-continuum/zinit/issues/549)) ([1375adf](https://github.com/zdharma-continuum/zinit/commit/1375adf8f8edadbdcfc18445d852c7f08e723887))
* self-update check for updates ([#562](https://github.com/zdharma-continuum/zinit/issues/562)) ([b456a2d](https://github.com/zdharma-continuum/zinit/commit/b456a2dba65673f4cf5a9a8c2bc16d7d0dcb3ace))
* update gomi repo owner ([#568](https://github.com/zdharma-continuum/zinit/issues/568)) ([19ca2dc](https://github.com/zdharma-continuum/zinit/commit/19ca2dc361f9995a3e6a8a8aed0ade435168cd3d))
### Features
* build container with zsh 5.9 ([#525](https://github.com/zdharma-continuum/zinit/issues/525)) ([238e843](https://github.com/zdharma-continuum/zinit/commit/238e843d60de27b8f3deaf2d0b5e6657b293c9eb))
# [3.11.0](https://github.com/zdharma-continuum/zinit/compare/v3.10.0...v3.11.0) (2023-05-04)
### Bug Fixes
* add `.gitignore` with '*' pattern in a plugins `._zinit/` directory ([#397](https://github.com/zdharma-continuum/zinit/issues/397)) ([fccb508](https://github.com/zdharma-continuum/zinit/commit/fccb5080ab4b1df83f01906082eea444f218776f)), closes [#395](https://github.com/zdharma-continuum/zinit/issues/395)
* broken update command ([336ca85](https://github.com/zdharma-continuum/zinit/commit/336ca85ade5d4c5c99bd903610baf9961753192b))
* cleanup style, naming, and completion ([6c82d67](https://github.com/zdharma-continuum/zinit/commit/6c82d6788dec6a60c4c217d03c45c327bc0e59a1))
* compile and completion log messages ([c4446da](https://github.com/zdharma-continuum/zinit/commit/c4446da57e5375f4a89ea94e1e8c04eacfc4e494))
* csearch ignores lua files ([4d1840b](https://github.com/zdharma-continuum/zinit/commit/4d1840b883e86cc46df2050c01bd0731e29023aa))
* makefile clean target less verbose ([3396f5e](https://github.com/zdharma-continuum/zinit/commit/3396f5e3aa1fb81d128d4f34b9ff868011d68981))
* pin git-mkver gh-r test to v.1.2.2 ([a05cc1a](https://github.com/zdharma-continuum/zinit/commit/a05cc1ab59db5b82c5a0f7ee0b6bbef84f0e8b0e))
* pin git-mkver unit test to v1.2.2 ([08f02e0](https://github.com/zdharma-continuum/zinit/commit/08f02e00d0fbc86b10d44d18f5b774c9c00806cc))
* regenerate docs ([e0177e2](https://github.com/zdharma-continuum/zinit/commit/e0177e20382d8336d55bc2637a6f2c515d25ce19))
### Features
* expand gh-r zunit tests ([c323116](https://github.com/zdharma-continuum/zinit/commit/c3231164836c8ca3ca9ebded8d95c31c0a186567))
* refactor debug commands ([930b25e](https://github.com/zdharma-continuum/zinit/commit/930b25ee3c6cc66931eda0030c422fddd69ef9c4))
* refactor ls, list, and loaded commands ([a865907](https://github.com/zdharma-continuum/zinit/commit/a86590762ac2bb5244db5d3cd7d99d32a9dc11fe))
# [3.10.0](https://github.com/zdharma-continuum/zinit/compare/v3.9.0...v3.10.0) (2023-04-02)
### Bug Fixes
* absolute path support in the symbol browser ([d29a8ba](https://github.com/zdharma-continuum/zinit/commit/d29a8ba2b757b936663c16d12e46d3638f44027a))
* assign to functions hash to make %x work ([bd65a01](https://github.com/zdharma-continuum/zinit/commit/bd65a017345ac891b6b14eb5feb4182bc9c74ace))
* broken symbolic link after `creinstall .` ([da0d6b7](https://github.com/zdharma-continuum/zinit/commit/da0d6b712c6466d11165ac9e27a6cd7de856e537))
* bump node version in release workflow ([938f483](https://github.com/zdharma-continuum/zinit/commit/938f48375b20545078b63d6c1dba0a905599afe4))
* change prefix `~zi::` to `__zi::` ([0e45493](https://github.com/zdharma-continuum/zinit/commit/0e45493e36ff350c79c164895bd4718103e2cf7a))
* container build & shell make targets ([a72fb83](https://github.com/zdharma-continuum/zinit/commit/a72fb83f0999a7fa4a26c6e1bb71d6cab3858b4f))
* container build & shell make targets ([14b2cda](https://github.com/zdharma-continuum/zinit/commit/14b2cda0397c343b1bfdc041cba7c4ab216e3803))
* container build & shell make targets ([370808d](https://github.com/zdharma-continuum/zinit/commit/370808dd5186f4b9c8a214e7ef6f4350df243b5b))
* container build & shell make targets ([47bd74f](https://github.com/zdharma-continuum/zinit/commit/47bd74f8a7c74761e9b03943d3c40fc523df585f))
* container build & shell make targets ([f8eb967](https://github.com/zdharma-continuum/zinit/commit/f8eb967b0e98f135b43cb5065aceb8a4f058aa09))
* container build & shell make targets ([3af321e](https://github.com/zdharma-continuum/zinit/commit/3af321e8e4975a07634df08acda383e4cf53e99c))
* do not run `make docs` ([3802893](https://github.com/zdharma-continuum/zinit/commit/3802893c74988fc03bad086601c905a1046a9fc1))
* failing zunit tests & bootstrap script ([d618467](https://github.com/zdharma-continuum/zinit/commit/d618467ff090a6dbfb327ca0a29141d0c9312b24))
* file modelines ([75bb735](https://github.com/zdharma-continuum/zinit/commit/75bb73547ed24ab6d25e1aed03684caebba39f5e))
* gh-r & bpick ice log format and content ([ad88a89](https://github.com/zdharma-continuum/zinit/commit/ad88a890ad25505acb764f9551ee00d5264daa9a))
* gh-r parsing logic for arm64 & logging style ([7e48651](https://github.com/zdharma-continuum/zinit/commit/7e486519d7aad48a8b6009ae5075f0efec2409f9))
* gh-r pattern for 64bit linux-gnu systems ([b5a31c0](https://github.com/zdharma-continuum/zinit/commit/b5a31c07f2bd2d823ce9e99b98228ec68db523bd))
* lsd repo owner changed to lsd-rs organization ([#489](https://github.com/zdharma-continuum/zinit/issues/489)) ([824d9d3](https://github.com/zdharma-continuum/zinit/commit/824d9d36177dac00a81333205e2b3dfbc35cb758))
* make gh-r release search case-insensitive ([3eb75b7](https://github.com/zdharma-continuum/zinit/commit/3eb75b7ee9db4dd01455811cf4ca4539dd07246b))
* make target docker cmd flags ([dd04896](https://github.com/zdharma-continuum/zinit/commit/dd048964491b9a63f4622b591b9a227d5e981408))
* pin `ggsrun` version in gh-r z-unit test ([9f67798](https://github.com/zdharma-continuum/zinit/commit/9f677989e8386469bc2d5dcb0d2cb5d62d489e34))
* the starship example does not work properly ([4933b62](https://github.com/zdharma-continuum/zinit/commit/4933b62f400a1b6b29b82a9ff233911b336a33c5))
* update pygmentize flags in glance subcommand ([#488](https://github.com/zdharma-continuum/zinit/issues/488)) ([b773763](https://github.com/zdharma-continuum/zinit/commit/b773763bdc37d414a5d954ccb00877374177f0ec))
* use correct return code in zinit-confirm ([d467738](https://github.com/zdharma-continuum/zinit/commit/d467738c1b1c834e938b4b4bb6e83cab5bfdc429))
* vim modelines & zsdoc pdf rendering ([2b460a7](https://github.com/zdharma-continuum/zinit/commit/2b460a74f236178cd8d06b55069049381d79256e))
### Features
* delete subcommand refactor ([9eee215](https://github.com/zdharma-continuum/zinit/commit/9eee215e3f8ee7d8404e4e54f8ef57a57a21fde2)), closes [#57](https://github.com/zdharma-continuum/zinit/issues/57) [#239](https://github.com/zdharma-continuum/zinit/issues/239)
* zinit completion improvements ([b8d12e5](https://github.com/zdharma-continuum/zinit/commit/b8d12e555d4cadff7769ef67c5d4c0d403f0b11e))
### Reverts
* "Merge branch 'refactor/zinit-function-names' into main" ([515688b](https://github.com/zdharma-continuum/zinit/commit/515688bc976e793422d21ba9debfdd1a982c611e))
# [3.9.0](https://github.com/zdharma-continuum/zinit/compare/v3.8.0...v3.9.0) (2022-12-17)
### Bug Fixes
* remove broken gh-r zunit test for "warp" ([#430](https://github.com/zdharma-continuum/zinit/issues/430)) ([64fa4ae](https://github.com/zdharma-continuum/zinit/commit/64fa4aef3ae517afe5444b24df9603e9d1a77a55))
### Features
* add `completions` ice ([#417](https://github.com/zdharma-continuum/zinit/issues/417)) ([59975d7](https://github.com/zdharma-continuum/zinit/commit/59975d70d7101651b0bb01f4e22c23db0dae8133))
* display version via `version` sub command ([bfb01e6](https://github.com/zdharma-continuum/zinit/commit/bfb01e65d7b9a98c643f3ee0a92f2df06372f52e))
### Performance Improvements
* reduce scheduler task check to 10 second interval ([#429](https://github.com/zdharma-continuum/zinit/issues/429)) ([1681ce4](https://github.com/zdharma-continuum/zinit/commit/1681ce40ebf98e5bf48b78ac5d6c060c1ecada99))
### Reverts
* "perf: reduce scheduler task check to 10 second interval ([#429](https://github.com/zdharma-continuum/zinit/issues/429))" ([#432](https://github.com/zdharma-continuum/zinit/issues/432)) ([cfd3261](https://github.com/zdharma-continuum/zinit/commit/cfd32618921ce0626a6deadc794da962750a845d))
# [3.8.0](https://github.com/zdharma-continuum/zinit/compare/v3.7.0...v3.8.0) (2022-11-07)
### Bug Fixes
* account for systems where musl is present ([#269](https://github.com/zdharma-continuum/zinit/issues/269)) ([8620574](https://github.com/zdharma-continuum/zinit/commit/8620574a5533695525260fd88df8d249c701217f))
* alist repository for gh-r test ([#305](https://github.com/zdharma-continuum/zinit/issues/305)) ([fb3c082](https://github.com/zdharma-continuum/zinit/commit/fb3c082551ee9f48676c3183d5a4e9e842d3d874))
* allow zinit to be run from non-interactive scripts ([#227](https://github.com/zdharma-continuum/zinit/issues/227)) ([c3d1bb5](https://github.com/zdharma-continuum/zinit/commit/c3d1bb586c77a98566c552358fd9aee084e30da8)), closes [#199](https://github.com/zdharma-continuum/zinit/issues/199)
* broken yaml syntax in issue template ([#355](https://github.com/zdharma-continuum/zinit/issues/355)) ([f729e06](https://github.com/zdharma-continuum/zinit/commit/f729e065db88a5cd0daa8a6f2bd2f8ee0439545a))
* calico gh-r zunit test ([#356](https://github.com/zdharma-continuum/zinit/issues/356)) ([56fb9e0](https://github.com/zdharma-continuum/zinit/commit/56fb9e0b1df21de809a2efc935882b49e9161618))
* 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))
* 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)
* gh-r logic ignores [36]86 assets ([#235](https://github.com/zdharma-continuum/zinit/issues/235)) ([d60638f](https://github.com/zdharma-continuum/zinit/commit/d60638f2217875056a061b3411c4bcc678dce5f6)), closes [#225](https://github.com/zdharma-continuum/zinit/issues/225) [#246](https://github.com/zdharma-continuum/zinit/issues/246) [#247](https://github.com/zdharma-continuum/zinit/issues/247)
* gh-r removes linux32 assets on 64 bit OS ([1864c0b](https://github.com/zdharma-continuum/zinit/commit/1864c0be09faa0e4d9a7c549cafed7d296d7517e))
* gh-r retrieves release data GH REST API ([#373](https://github.com/zdharma-continuum/zinit/issues/373)) ([4a2a120](https://github.com/zdharma-continuum/zinit/commit/4a2a120b341793b1abaef5f12fbb4808277d8570)), closes [#374](https://github.com/zdharma-continuum/zinit/issues/374)
* modify regex in gh-r for assets to not consider for selection ([#244](https://github.com/zdharma-continuum/zinit/issues/244)) ([6ef8439](https://github.com/zdharma-continuum/zinit/commit/6ef84398b2c92073d88f440dfbfd554cb8e75343))
* more cleaning up urls ([672ae51](https://github.com/zdharma-continuum/zinit/commit/672ae514142b433708ea10486556fe3f0ba54e3e)), closes [#47](https://github.com/zdharma-continuum/zinit/issues/47)
* names of ctag Make target deps ([#407](https://github.com/zdharma-continuum/zinit/issues/407)) ([9987d5c](https://github.com/zdharma-continuum/zinit/commit/9987d5c781d4a95698ed649dc59b11c34006b1c1))
* package are broken again ([24f10f6](https://github.com/zdharma-continuum/zinit/commit/24f10f6367cbab6039bd0c1ca07dd9449bbc3557))
* permissions for PR labeler GH action workflow ([#236](https://github.com/zdharma-continuum/zinit/issues/236)) ([8a0d567](https://github.com/zdharma-continuum/zinit/commit/8a0d5678d1ee0eeed91d2c3a094578a2cd39ba04))
* read without -r is generally bad. ([00c70a4](https://github.com/zdharma-continuum/zinit/commit/00c70a434d50a1591bcdc73185150b2fdce96c77))
* remove curl option "--tcp-fastopen" which is not always available ([#299](https://github.com/zdharma-continuum/zinit/issues/299)) ([308c9d4](https://github.com/zdharma-continuum/zinit/commit/308c9d4cd82f3e41d2ae21ff31fba0dc4a7c6cb5))
* remove macOS 10.5 & 11 from test matrix ([c613193](https://github.com/zdharma-continuum/zinit/commit/c61319378df5b0deae68fc467b9a2449fcf67336))
* remove use less line ([4f87076](https://github.com/zdharma-continuum/zinit/commit/4f870766011d36c871d8afd07afe56733c8de76d))
* rename `docs` to `doc` to match doc dir ([#212](https://github.com/zdharma-continuum/zinit/issues/212)) ([3a7dc95](https://github.com/zdharma-continuum/zinit/commit/3a7dc95f02340fb56693ca0f304e31be8c8a9652))
* rm linux32 assets in aarch64/arm64 gh-r regex ([#414](https://github.com/zdharma-continuum/zinit/issues/414)) ([529aa20](https://github.com/zdharma-continuum/zinit/commit/529aa20f42a249f609b9e8248d6fd00d609a35ce))
* syntax error when checking for `realpath` command ([#259](https://github.com/zdharma-continuum/zinit/issues/259)) ([05559eb](https://github.com/zdharma-continuum/zinit/commit/05559ebdbcda77622daaf3935d20fdf9b9c09c6c)), closes [#257](https://github.com/zdharma-continuum/zinit/issues/257)
* trigger for PR labeler GH action workflow ([#237](https://github.com/zdharma-continuum/zinit/issues/237)) ([49af866](https://github.com/zdharma-continuum/zinit/commit/49af86688bc8c5882744a679f9c0094e2f4c7fa6))
* typo & triggers in documentation workflow ([#308](https://github.com/zdharma-continuum/zinit/issues/308)) ([161d7c1](https://github.com/zdharma-continuum/zinit/commit/161d7c1ee1fc2bbb43442cd90b48e502bf62603f))
* unmatched "(" in windows gh-r patterns ([#280](https://github.com/zdharma-continuum/zinit/issues/280)) ([1f4ba5a](https://github.com/zdharma-continuum/zinit/commit/1f4ba5ae0ccf928d1914dc3a11d00393e0fd94a8))
* update `zdharma` to `zdharma-continuum` ([66b1700](https://github.com/zdharma-continuum/zinit/commit/66b17007523321f9afee91dbe75b487de5db4fec))
* update docs for new jq-check ([6207427](https://github.com/zdharma-continuum/zinit/commit/62074272563f88a32a701f56f914297930a9da19))
* use [*] inside arbitrary strings. ([73a8c92](https://github.com/zdharma-continuum/zinit/commit/73a8c92d43f57bca514e44b9fed14e941168c61f))
* workflow pkg mgmt due to base OS changes ([195f72d](https://github.com/zdharma-continuum/zinit/commit/195f72d54b80051fc71d1f73909f5dabe6745649))
* ziextract execs discovery regex ([#410](https://github.com/zdharma-continuum/zinit/issues/410)) ([105b38a](https://github.com/zdharma-continuum/zinit/commit/105b38a195e2a67eaba9d7a69bcef7738c57d12d))
* zunit install in GH workflow ([#412](https://github.com/zdharma-continuum/zinit/issues/412)) ([f4787dc](https://github.com/zdharma-continuum/zinit/commit/f4787dcac803ed9055c4032c516dba66737beebf))
### Features
* ability to set program for `zinit ls` to use ([#221](https://github.com/zdharma-continuum/zinit/issues/221)) ([bad7af3](https://github.com/zdharma-continuum/zinit/commit/bad7af3ae2d8aab18feb11a0251987fe3c08c31b)), closes [#170](https://github.com/zdharma-continuum/zinit/issues/170)
* add `-a` (actual time) to `zinit times` cmd ([#223](https://github.com/zdharma-continuum/zinit/issues/223)) ([450d3c1](https://github.com/zdharma-continuum/zinit/commit/450d3c10a8f6728ee8c76bfb99f777658b8d3f35))
* add `krew` and `prebuilt-ripgrep` gh-r zunit tests ([#267](https://github.com/zdharma-continuum/zinit/issues/267)) ([f25b4ae](https://github.com/zdharma-continuum/zinit/commit/f25b4ae2b9951bf0d1306a17ef512a1868211b78))
* add compile vim from source zunit test ([#232](https://github.com/zdharma-continuum/zinit/issues/232)) ([126528c](https://github.com/zdharma-continuum/zinit/commit/126528ccd50e98c0e71f06971ae16aceb571fb97))
* add configure"" ice ([#334](https://github.com/zdharma-continuum/zinit/issues/334)) ([40a46c6](https://github.com/zdharma-continuum/zinit/commit/40a46c6d2250af7e01d91b2f8ec3e01cf392c3d1))
* add GH action to remove old workflow logs ([#248](https://github.com/zdharma-continuum/zinit/issues/248)) ([6647bdc](https://github.com/zdharma-continuum/zinit/commit/6647bdc31c5b82378195ce71055099a7b36734a1))
* add PR labeler to show what parts of Zinit are changed ([#211](https://github.com/zdharma-continuum/zinit/issues/211)) ([42e83d7](https://github.com/zdharma-continuum/zinit/commit/42e83d7f99254c16e408f52848b914f7aa264372))
* add releases via semantic-release ([73542b4](https://github.com/zdharma-continuum/zinit/commit/73542b490981e43adca4a09b64c327fe811d01e1))
* add releases via semantic-release ([#415](https://github.com/zdharma-continuum/zinit/issues/415)) ([cfa2f0e](https://github.com/zdharma-continuum/zinit/commit/cfa2f0ebcd674706d5cb91533cf362f6f4ddd7ee))
* expand linted file types to markdown and shell ([96fe03f](https://github.com/zdharma-continuum/zinit/commit/96fe03f85baf8eae33270a09a5ca82f108f6cc25))
* **git-process-output:** simplify progress-bar ([#204](https://github.com/zdharma-continuum/zinit/issues/204)) ([c888917](https://github.com/zdharma-continuum/zinit/commit/c888917edbafa3772870ad1f320da7a5f169cc6f))
* update output messaging to be more informative ([047320a](https://github.com/zdharma-continuum/zinit/commit/047320a9234be4de8299ff4796e28e2363e77984))
# [v3.7.0](https://github.com/zdharma-continuum/zinit/compare/v3.1...v3.7.0)

101
CODE_OF_CONDUCT.md Normal file
View file

@ -0,0 +1,101 @@
# Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for
everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity
and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion,
or sexual identity and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our community include:
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall community
Examples of unacceptable behavior include:
- The use of sexualized language or imagery, and sexual attention or advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take
appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits,
issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for
moderation decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing
the community in public spaces. Examples of representing our community include using an official e-mail address, posting
via an official social media account, or acting as an appointed representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible
for enforcement at . All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem
in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the
community.
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation
and an explanation of why the behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series of actions.
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including
unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding
interactions in community spaces as well as external channels like social media. Violating these terms may lead to a
temporary or permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified
period of time. No public or private interaction with the people involved, including unsolicited interaction with those
enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate
behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within the community.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq.
Translations are available at https://www.contributor-covenant.org/translations.
[homepage]: https://www.contributor-covenant.org

14
LICENSE
View file

@ -1,7 +1,7 @@
This software is licensed under MIT.
MIT License
-----------
Copyright (c) 2016-2020 Sebastian Gniazdowski and contributors
Copyright (c) 2021-2022 zdharma-continuum
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@ -10,13 +10,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

54
Makefile Normal file
View file

@ -0,0 +1,54 @@
.EXPORT_ALL_VARIABLES:
ZSH := $(shell command -v zsh 2> /dev/null)
SRC := 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
clean:
rm -rf *.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)"
doc/container: container
./scripts/docker-run.sh --docs --debug
# Run ctags to generate Emacs and Vim's format tag file.
tags: tags/emacs tags/vim
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 \
--pattern-length-limit=250 --maxdepth=1; \
else \
ctags -e -R --languages=sh --langmap=sh:.zsh; \
fi; \
printf "Created the Emacs \`TAGS\` file.\\n"; \
else \
printf 'Error: Please install a Ctags (e.g.: either the Exuberant or Universal %b' \
'version) utility first.\n'; \
fi
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; \
else \
ctags -R --languages=sh --langmap=sh:.zsh; \
fi; \
printf "Created the Vim's style \`tags\` file.\\n"; \
else \
printf 'Error: Please install a ctags first.\n'; \
fi
test:
zunit run
zwc:
$(or $(ZSH),:) -fc 'for f in *.zsh; do zcompile -R -- $$f.zwc $$f || exit; done'

1405
README.md

File diff suppressed because it is too large Load diff

1
VERSION Normal file
View file

@ -0,0 +1 @@
3.17.0

376
_zinit Normal file
View file

@ -0,0 +1,376 @@
#compdef zinit
#autoload
#
# Zinit ZSH completion function
# Copyright (c) 2016-2020 Sebastian Gniazdowski
# Copyright (c) 2016-2023 zdharma-continuum
# Homepage: https://github.com/zdharma-continuum/zinit
# License: MIT License
#
# FUNCTION: __zinit_commands [[[
__zinit_commands(){
local -a commands
commands=(
'add-fpath:Add plugin folder to $FPATH'
'bindkeys:List of plugin defined key bindings'
'cclear:Clear completions list'
'cd:Go to a plugin or snippet direcorty'
'cdclear:Clear the compdef replay list'
'cdisable:Disable completions'
'cdreplay:Replay compdef list'
'cenable:Enable completions'
'changes:View plugins git log'
'compile:Compile plugin (or all plugins if --all passed)'
'compiled:List of compiled plugins'
'compinit:Refresh installed completions'
'completions:List status of all installed completions'
'create:Generate Zsh plugin boilerplate'
'creinstall:Install completions for plugin'
'csearch:Search for available completions from any plugin'
'cuninstall:Uninstall completions for plugin'
'debug:Functions for debugging Zinit'
'delete:Uninstall a plugin or snippet'
'edit:Edit a plugins or snippet with \$EDITOR'
'env-whitelist:Specify names (also patterns) of parameters to be left unchanged during an unload'
'glance:Look at plugins source'
'help:Usage information'
'load:Load plugin'
'man:Display Zinit'\''s manpage'
'module:Manage binary Zsh module shipped with Zinit'
'plugins:List status of all installed plugins'
'recall:Fetch saved ice modifiers and construct '
'recently:Show plugins that changed recently'
'report:Show plugins report'
'run:Run a command inside plugins folder'
'self-update:Fetch the newest version of Zinit from GitHub using `git`(1) and recompile'
'snippet:Source a local or remote file'
'snippets:List status of all installed snippets'
'srv:Control a service, command'
'status:Git status for plugin'
'stress:Test plugin for compatibility with set of options'
'times:Display brief statistics for your Zinit installation'
'uncompile:Remove compiled plugin'
'uninstall:Uninstall a formula or cask'
'unload:Unload a plugin or snippet'
'update:Upgrade outdated plugins and snippets using the same options they were originally installed with'
'version:Print the version numbers of Zinit to standard output'
'zstatus:Overall Zinit status'
)
_describe -t commands 'zinit commands' commands
} # ]]]
###
# Commands in the debug context
###
_zinit_debug_commands=(
'clear:Clear report of debug tracing session'
'report:Show report of debug tracing session'
'revert:Revert changes detected during debug tracing session'
'start:Start debug tracing session'
'status:Show current state of debug mode'
'stop:Stop debug tracing session'
)
# FUNCTION: __zinit_completion_caching_policy [[[
__zinit_completion_caching_policy(){
local -a tmp
(( $#tmp )) || return 0
tmp=( $ZINIT[BIN_DIR]/*.git/index(om[1]N) )
[[ -z $tmp || $tmp -nt $1 ]]
} # ]]]
# FUNCTION: __zinit_installed [[[
__zinit_installed() {
_alternative \
'plugins:installed:__zinit_installed_plugins' \
'snippets:installed:__zinit_installed_snippets'
} # ]]]
# FUNCTION: __zinit_installed_plugins [[[
__zinit_installed_plugins(){
# [[ -prefix '-' ]] && return 0
typeset -a list
local expl
list=( "${ZINIT[PLUGINS_DIR]}"/*(N:t) )
list=( "${list[@]//---//}" )
list=( "${list[@]:#_local/zinit}" )
list=( "${list[@]:#custom}" )
_wanted list expl 'plugins' compadd -a - list
} # ]]]
# FUNCTION: __zinit_installed_snippets [[[
__zinit_installed_snippets(){
# [[ -prefix '-' ]] && return 0
typeset -a snippets
local expl
snippets=( "${ZINIT[SNIPPETS_DIR]}"/**/._zinit(D/:h) )
snippets=( ${(Q)snippets[@]#${ZINIT[SNIPPETS_DIR]}/} )
# formulae=( ${(qq)formulae[@]/(#b)(http|https|ftp|ftps|scp)--/${match[1]}://} )
# formulae=( ${formulae[@]/--//} )
#
_wanted snippets expl 'snippets' compadd -a - snippets
} # ]]]
# FUNCTION: __zinit_list_aliases [[[
__zinit_list_aliases(){
local -a aliases
aliases=( ls list uninstall delete )
builtin print -- "$aliases"
} # ]]]
# FUNCTION: _zinit_add_fpath [[[
_zinit_add_fpath(){
_arguments -A \
'(-h --help)'{-h,--help}'[Show this help message]' && ret=0
} # ]]]
# FUNCTION: _zinit_bindkeys [[[
_zinit_bindkeys(){
_message 'Hit enter to list the defined key bindings replay' && ret=0
} # ]]]
# FUNCTION: _zinit_cclear [[[
_zinit_cclear(){
_arguments -A \
'(-h --help)'{-h,--help}'[Show this help message]' \
'(-q --quiet)'{-q,--quiet}'[Turn off messages from the operation]' \
&& ret=0
} # ]]]
# FUNCTION: _zinit_cd [[[
_zinit_cd(){
_arguments - plugin '1::plugin:__zinit_installed_plugins' && ret=0
} # ]]]
# FUNCTION: _zinit_cdclear [[[
_zinit_cdclear(){
_arguments -A \
'(-h --help)'{-h,--help}'[Show this help message]' \
'(-q --quiet)'{-q,--quiet}'[Turn off messages from the operation]' \
&& ret=0
} # ]]]
# FUNCTION: _zinit_cdisable [[[
_zinit_cdisable(){
_message 'Press enter to disable completions' && ret=0
} # ]]]
# FUNCTION: _zinit_cdlist [[[
_zinit_cdlist(){
_message 'List of compdef replays' && ret=0
} # ]]]
# FUNCTION: _zinit_cdreplay [[[
_zinit_cdreplay(){
_arguments -A \
'(-h --help)'{-h,--help}'[Show this help message]' \
'(-q --quiet)'{-q,--quiet}'[Turn off messages from the operation]' \
&& ret=0
} # ]]]
# FUNCTION: _zinit_cenable [[[
_zinit_cenable(){
_message 'Hit enter to enable completions' && ret=0
} # ]]]
# FUNCTION: _zinit_changes [[[
_zinit_changes(){
_message 'View git log of a plugin' && ret=0
} # ]]]
# FUNCTION: _zinit_compiled [[[
_zinit_compiled(){
_message 'Hit enter to get list of compiled plugins and snippets'
} # ]]]
# FUNCTION: _zinit_compinit [[[
_zinit_compinit(){
_message "Refresh completions" && ret=0
} # ]]]
# FUNCTION: _zinit_completions [[[
_zinit_completions(){
_message "Display a list of completions" && ret=0
} # ]]]
# FUNCTION: _zinit_create [[[
_zinit_compile(){
_arguments \
'(-h --help)'{-h,--help}'[Show this help message]' \
'(-q --quiet)'{-q,--quiet}'[Make some output more quiet]' \
+ '(operation)' \
'(-a --all)'{-a,--all}'[Compile all plugins]' \
'*::installed:__zinit_installed' \
&& ret=0
} # ]]]
# FUNCTION: _zinit_create [[[
_zinit_create(){
_arguments \
'1:Plugin Name' && ret=0
} # ]]]
# FUNCTION: _zinit_creinstall [[[
_zinit_creinstall(){
_arguments - plugin '1::plugin:__zinit_installed_plugins' && ret=0
} # ]]]
# FUNCTION: _zinit_csearch [[[
_zinit_csearch(){
ret=0
} # ]]]
# FUNCTION: _zinit_cunistall [[[
_zinit_cunistall(){
_arguments - installed '*::installed:__zinit_installed' && ret=0
} # ]]]
# FUNCTION: _zinit_delete [[[
_zinit_delete(){
_arguments \
{-d,--debug}'[Enable xtrace]' \
{-h,--help}'[Show this help message]' \
{-q,--quiet}'[Make some output more quiet]' \
{-y,--yes}'[Automatically confirm any yes/no prompts]' \
+ '(operation)' \
'*::installed:__zinit_installed' \
{-a,--all}'[Delete all plugins and snippets]' \
{-c,--clean}'[Delete only the currently-not loaded plugins and snippets]' \
&& ret=0
} # ]]]
_zinit_debug(){
_arguments \
'1: :_zinit_debug_cmds'
} # ]]]
# FUNCTION: _zinit_edit [[[
_zinit_edit(){
_arguments \
- installed '*::plugin:__zinit_installed_plugins' \
- snippet '*::snippet:__zinit_installed_snippets' && ret=0
} # ]]]
# FUNCTION: _zinit_env_whitelist [[[
_zinit_env_whitelist(){
_arguments -A \
'(-h --help)'{-h,--help}'[Show this help message]' \
'(-v --verbose)'{-v,--verbose}'[Make some output more verbose]' \
&& ret=0
} # ]]]
# FUNCTION: _zinit_glance [[[
_zinit_glance(){
_arguments - installed '1:installed:__zinit_installed' && ret=0
} # ]]]
# FUNCTION: _zinit_list [[[
_zinit_list(){
_message 'Hit enter to list the defined key bindings replay' && ret=0
} # ]]]
# FUNCTION: _zinit_loaded [[[
_zinit_loaded(){
_message 'Hit enter to list the defined key bindings replay' && ret=0
} # ]]]
# FUNCTION: _zinit_man [[[
_zinit_man(){
_message "Hit enter to view the Zinit man page" && ret=0
} # ]]]
# FUNCTION: _zinit_module [[[
_zinit_module(){
_arguments \
- subcommand '*::subcommand:(build help info)' && ret=0
} # ]]]
# FUNCTION: _zinit_recall [[[
_zinit_recall(){
_message 'Hit enter to list the defined key bindings replay' && ret=0
} # ]]]
# FUNCTION: _zinit_recently [[[
_zinit_recently(){
ret=0
} # ]]]
# FUNCTION: _zinit_report [[[
_zinit_report(){
_message 'Hit enter to list the defined key bindings replay' && ret=0
} # ]]]
# FUNCTION: _zinit_run [[[
_zinit_run(){
_arguments \
- installed '1:installed:__zinit_installed' \
'2:command to run:' && ret=0
} # ]]]
# FUNCTION: _zinit_self_update [[[
_zinit_self_update(){
_arguments -A \
'(-h --help)'{-h,--help}'[Show this help message]' \
'(-n --no-pager)'{-n,--no-pager}'[Disable the use of the pager]' \
'(-q --quiet)'{-q,--quiet}'[Turn off messages from the operation]' \
&& ret=0
} # ]]]
# FUNCTION: _zinit_snippet [[[
_zinit_snippet(){
_arguments -A \
'(-c --command)'{-c,--command}'[Load the snippet as a command (i.e., make executable and apend to $PATH])' \
'(-f --force)'{-f,--force}'[Force new download of the snippet file]' \
'(-h --help)'{-h,--help}'[Show this help message]'
_arguments - snippet '*::snippet:__zinit_installed_snippets' && ret=0
} # ]]]
# FUNCTION: _zinit_status [[[
_zinit_status(){
_message 'Display current status of Zinit' && ret=0
} # ]]]
# FUNCTION: _zinit_stress [[[
_zinit_stress(){
_message 'Stress' && ret=0
} # ]]]
# FUNCTION: _zinit_times [[[
_zinit_times(){
_arguments \
'--help[Show this help message]' \
+ '(operation)' \
'(-a --all)'{-a,--all}'[show both load times and loading moments]' \
'(-m --moments)'{-m,--moments}'[Display loading moments]' \
'(-s --seconds)'{-s,--seconds}'[Load times displayed in seconds]' \
&& ret=0
} # ]]]
# FUNCTION: _zinit_uncompile [[[
_zinit_uncompile(){
_arguments \
'(-h --help)'{-h,--help}'[Show this help message]' \
'(-q --quiet)'{-q,--quiet}'[Make some output more quiet]' \
+ '(operation)' \
'(-a --all)'{-a,--all}'[Uncompile all plugins]' \
'*::installed:__zinit_installed' \
&& ret=0
} # ]]]
# FUNCTION: _zinit_unload [[[
_zinit_unload(){
_arguments -A \
'(-h --help)'{-h,--help}'[Show this help message]' \
'(-q --quiet)'{-q,--quiet}'[Turn off messages from the operation]' \
- installed '*:installed:__zinit_installed'
} # ]]]
# FUNCTION: _zinit_update [[[
_zinit_update(){
_arguments \
'(-h --help)'{-h,--help}'[Show this help message]' \
'(-n --no-pager)'{-n,--no-pager}'[Disable the use of the pager]' \
'(-q --quiet)'{-q,--quiet}'[Turn off almost-all messages from the update operation FOR the objects which don'\''t have any new version available]' \
'(-r --reset)'{-r,--reset}'[Reset the repository before updating (or remove the files for single-file snippets and gh-r plugins)]' \
'(-s --snippets)'{-s,--snippets}'[Update only snippets (i.e.: skip updating plugins)]' \
'(-u --urge)'{-u,--urge}'[Cause all the hooks like: atpull'\'\'', cp'\'\'', etc. to execute even when there aren'\''t any new commits / any new version of the gh-r file / etc.… available for download↔ simulate a non-empty update]' \
'(-v --verbose)'{-v,--verbose}'[Turn on more messages from the operation]' \
- set1 \
'(-p --parallel)'{-p,--parallel}'[Turn on concurrent, multi-thread update (of all objects)]' \
'(-a --all)'{-a,--all}'[Update all plugins and snippets]' \
- set2 \
'1:installed:__zinit_installed'
} # ]]]
# FUNCTION: _zunit_load [[[
_zinit_load() {
_message 'Hit enter to list the defined key bindings replay' && ret=0
} # ]]]
# FUNCTION: _zinit [[[
_zinit(){
local curcontext="$curcontext" state state_descr line expl
local tmp ret=1
_arguments -A \
'(-h --help)'{-h,--help}'[Show this help message]'
_arguments -C \
"1: :->cmds" \
"*::arg:->args"
case "$state" in
cmds)
__zinit_commands && return 0
;;
args)
local cmd="${line[1]}"
curcontext="${curcontext%:*}-${cmd}:${curcontext##*:}"
local completion_func="_zinit_${cmd//-/_}"
_call_function ret "${completion_func}" && return ret
_message "a completion function is not defined for command or alias: ${cmd}"
return 1
;;
esac
} # ]]]
(( $+functions[_zinit_debug_cmds] )) || _zinit_debug_cmds() {
_describe -t commands 'commands' _zinit_debug_commands "$@"
}
_zinit "$@"
#vim: filetype=zsh foldmarker=[[[,]]] foldmethod=marker shiftwidth=2 softtabstop=2 tabstop=2:

232
_zplugin
View file

@ -1,232 +0,0 @@
#compdef zplugin
local context state state_descr line ret=1
typeset -A opt_args
typeset -a commands
commands=(
zstatus:'overall Zplugin status'
self-update:'updates Zplugin'
help:'usage information'
man:'manual'
load:'load plugin'
unload:'unload plugin'
snippet:"source local or remote file (-f: force - don't use cache)"
update:'update plugin (Git)'
update-all:'update all plugins (Git)'
status:'status for plugin (Git)'
status-all:'status for all plugins (Git)'
report:'show plugin'"'"'s report'
all-reports:'show all plugin reports'
loaded:'show what plugins are loaded'
list:'show what plugins are loaded'
cd:"go into plugin's directory"
create:'create plugin (also together with Github repository)'
edit:"edit plugin's file with \$EDITOR"
glance:"look at plugin's source (pygmentize, {,source-}highlight)"
stress:'test plugin for compatibility with set of options'
changes:"view plugin's git log"
recently:"show plugins that changed recently, argument is e.g. 1 month 2 days"
clist:'list completions in use'
completions:'list completions in use'
cdisable:'disable completion'
cenable:'enable completion'
creinstall:'install completions for plugin'
cuninstall:'uninstall completions for plugin'
csearch:'search for available completions from any plugin'
compinit:'refresh installed completions'
dtrace:"start tracking what's going on in session"
dstart:"start tracking what's going on in session"
dstop:"stop tracking what's going on in session"
dunload:'revert changes recorded between dstart and dstop'
dreport:"report what was going on in session"
dclear:'clear report of what was going on in session'
compile:'compile plugin'
compile-all:'compile all downloaded plugins'
uncompile:'remove compiled version of plugin'
uncompile-all:'remove compiled versions of all downloaded plugins'
compiled:'show which plugins are compiled'
cdlist:'show compdef replay list'
cdreplay:'replay compdefs (to be done after compinit)'
cdclear:'clear compdef replay list'
)
_arguments -C \
'1: :->command'\
'*: :->argument' && ret=0
case $state in
command)
_describe -t commands "Zplugin command" commands && ret=0
;;
argument)
case $words[2] in
help)
_message "Hit enter to get usage information" && ret=0
;;
man)
_message "Hit enter to view manual" && ret=0
;;
zstatus)
_message "Hit enter to get overall status information" && ret=0
;;
load|light|update|status|compile|stress|cd|edit|glance|changes)
typeset -a plugins
plugins=( "$ZPLG_PLUGINS_DIR"/*(N:t) )
plugins=( "${plugins[@]/---//}" )
plugins=( "${plugins[@]:#_local/zplugin}" )
plugins=( "${plugins[@]:#custom}" )
_wanted plugins expl "Plugins" \
compadd "$@" -a - plugins && ret=0
;;
unload|report)
typeset -a plugins
plugins=( "${ZPLG_REGISTERED_PLUGINS[@]:#_local/zplugin}" )
_wanted plugins expl "Plugins" \
compadd "$@" -a - plugins && ret=0
;;
all-reports)
_message "Hit enter to get all reports (for all loaded plugins)" && ret=0
;;
loaded|list)
_message "Hit enter or give part of plugin name" && ret=0
;;
clist|completions)
_message "Hit enter to get list of completions" && ret=0
;;
cdisable)
# Find enabled completions
typeset -a completions
completions=( "$ZPLG_COMPLETIONS_DIR"/_*(N:t) )
completions=( "${completions[@]#_}" )
compadd "$@" -a - completions && ret=0
;;
cenable)
# Find disabled
typeset -a completions
completions=( "$ZPLG_COMPLETIONS_DIR"/[^_]*(N:t) )
compadd "$@" -a - completions && ret=0
;;
creinstall)
# Complete only plugins that have any completions
# We must iterate each plugin to check
# for completions that can be installed
typeset -a plugins completions
local p c user plugin
for p in "${ZPLG_PLUGINS_DIR[@]}"/*; do
completions=( "$p"/_*(N) )
for c in "${completions[@]}"; do
p="${p:t}"
user="${p%%---*}"
plugin="${p#*---}"
plugins+=( "$user/$plugin" )
break
done
done
_wanted plugins expl "Plugins" \
compadd "$@" -a - plugins && ret=0
;;
cuninstall)
# We must iterate each plugin and check if
# it has completions that are installed
typeset -a plugins completions
local p c user plugin
for p in "${ZPLG_PLUGINS_DIR[@]}"/*; do
completions=( "$p"/_*(N) )
for c in "${completions[@]}"; do
cfile="${c:t}"
bkpfile="${cfile#_}"
# Completion installed, either enabled or disabled?
if [[ -e "$ZPLG_COMPLETIONS_DIR"/"$cfile" || -e "$ZPLG_COMPLETIONS_DIR"/"$bkpfile" ]]; then
p="${p:t}"
user="${p%%---*}"
plugin="${p#*---}"
plugins+=( "$user/$plugin" )
break
fi
done
done
_wanted plugins expl "Plugins" \
compadd "$@" -a - plugins && ret=0
;;
compinit)
_message "Hit enter to refresh completion system" && ret=0
;;
snippet)
typeset -a list
list=( "-f" )
_files || _wanted soptions expl "Options" \
compadd "$@" -a - list
;;
dstart|dtrace)
_message "Hit enter to start tracking this session" && ret=0
;;
dstop)
_message "Hit enter to stop tracking this session" && ret=0
;;
dunload)
_message "Hit enter to revert changes recorded between dstart and dstop" && ret=0
;;
dreport)
_message "Hit enter to show report of what was going on in session" && ret=0
;;
dclear)
_message "Hit enter to clear report of what was going on in session" && ret=0
;;
compile-all)
_message 'Hit enter to compile all downloaded plugins' && ret=0
;;
uncompile)
typeset -a plugins
plugins=( "$ZPLG_PLUGINS_DIR"/*(N) )
typeset -a show_plugins p matches
for p in "${plugins[@]}"; do
matches=( $p/*.zwc(N) )
if [ "$#matches" -ne "0" ]; then
p="${p:t}"
[ "$p" = "_local---zplugin" ] && continue
[ "$p" = "custom" ] && continue
p="${p/---//}"
show_plugins+=( "$p" )
fi
done
_wanted plugins expl "Plugins" \
compadd "$@" -a - show_plugins && ret=0
;;
uncompile-all)
_message 'Hit enter remove compiled versions of all downloaded plugins' && ret=0
;;
compiled)
_message 'Hit enter to get list of compiled plugins' && ret=0
;;
cdlist)
_message 'Hit enter to show compdef replay list' && ret=0
;;
cdreplay)
_message 'Hit enter to replay recorded compdefs' && ret=0
;;
cdclear)
_message 'Hit enter to clear compdef replay list' && ret=0
;;
recently)
typeset -a timespecs
timespecs=(
"3 days":"code modified during last 3 days"
"1 week":"code modified during last 7 days (default)"
"1 month":"code modified during last month"
)
_describe -t timespecs "Time spec" timespecs && ret=0
;;
create)
_message 'Plugin spec or just enter, to create new plugin' && ret=0
;;
*)
ret=1
;;
esac
esac
return "$ret"

735
doc/CHANGELOG.md Normal file
View file

@ -0,0 +1,735 @@
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
- [Changelog](#changelog)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
# Changelog
All notable changes to this project will be documented in this file.
- 29-11-2021
- zinit calls no longer silently fail when ices such as `atclone`, `atpull` or `compile` fail. Any hook returning with
!= 0 will log a warning to stdout at runtime:
```zsh
zinit null atclone'echo "intentional failure"; return 69' \
for zdharma-continuum/null
echo $?
69
```
- 28-11-2021
- **‼️ BREAKING CHANGE** zinit now requires [jq](https://github.com/stedolan/jq) for JSON parsing. This only affects
the `pack` ice. Users who do not have jq installed will be greeted with a warning when they try to install packages.
To install jq with zinit, you can follow
[these instructions in the wiki](https://github.com/zdharma-continuum/zinit/wiki/%F0%9F%A7%8A-Recommended-ices#jq)
- `zinit pack` now better supports installation from local files (previously only relative paths worked), and **custom
repositories!** By default, zinit uses
[zhdarma-continuum/zinit-packages](https://github.com/p/zdharma-continuum/zinit-packages).
To use a custom repo you can set `ZINIT[PACKAGES_REPO]=github_org/repo`.
For installing from a specific branch you can:
1. Leverage the `ver` ice (eg: `ver"my-branch`)
1. Override zinit's default branch with `ZINIT[PACKAGES_BRANCH]=my-branch`
zinit package repos that are not hosted on GitHub can be installed from the local filesystem like so:
`zinit pack"local/path/to/package.json:profile" for mypackage`
- 22-11-2021
- We updated zinit's main branch from `master` to `main`. `zinit self-update` will try to update the branch locally.
If it fails please try to:
```zsh
cd ${ZINIT[BIN_DIR]}
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
```
- 21-11-2021
- [(z)unit tests](https://github.com/zdharma-continuum/zinit/actions/workflows/tests.yaml) have been added to our dear
repository. This should help us to sniff out some bugs and improve the overall quality of zinit. Stay tuned! More
information available [here](https://github.com/zdharma-continuum/zinit/pull/96).
- 20-11-2021
- zinit is now [XDG compliant](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html). This
means that the default value of `ZINIT[HOME_DIR]` is now `XDG_DATA_HOME/zinit`, ie `HOME/.local/share/zinit`, we
won't clutter your `HOME` anymore! Fear not though: if you update zinit without moving your config to the new
default location it will still fall back to `HOME/.zinit` if this directory exists. In the same spirit, if you
overrode `ZINIT[HOME_DIR]` yourself in your `zshrc` we will use that value instead. NOTE: Since its rewrite the
installer has been installing zinit's repo to `XDG_DATA_HOME/zinit/zinit.git` (see 16-11-2021 entry)
- 18-11-2021
- The packages (`zinit pack`) have all been migrated to
[a new repository](https://github.com/zdharma-continuum/zinit-packages). Nothing fundamentally changes for users,
the original repos have only been archived and not deleted, so that older zinit versions can still use these.
For more information, please refer to [this issue](https://github.com/zdharma-continuum/zinit/issues/69) and/or to
[the corresponding PR](https://github.com/zdharma-continuum/zinit/pull/75)
- The zinit module has been relocated to [its own repository](https://github.com/zdharma-continuum/zinit-module)
* 17-11-2021
- Containers! If you want to try out zinit inside a container, you can now. Several versions of zsh are available, as
well as arm64. Check out the available tags on
[ghcr](https://github.com/zdharma-continuum/zinit/pkgs/container/zinit).
```shell
docker run -it --rm ghcr.io/zdharma-continuum/zinit:latest
```
- 16-11-2021
- A brand-new installer has been developed. A few new features have been added. There are a bunch of new env vars you
can set:
- `NO_INPUT=1`: non-interactive mode (`NO_INPUT=1`)
- `NO_EDIT=1`: do not modify `.zshrc`
- `ZSHRC=/home/user01/.config/zsh/zshrc`: custom path to your `.zshrc`
- `ZINIT_REPO=zdharma-continuum/zinit`: Install zinit from a custom GitHub repo
- `ZINIT_BRANCH=master`: zinit branch to install
- `ZINIT_COMMIT=master`: zinit commit to install (takes precedence over `ZINIT_BRANCH`)
- `ZINIT_INSTALL_DIR=~/.local/share/zinit/zinit.git`: Where to install the zinit repo
⚠️ Please note that the download URL for the installer has changed. It is now:
https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh
For more details check out [PR #61](https://github.com/zdharma-continuum/zinit/pull/61)
- 11-11-2021
- The annexes repos have been renamed to improve discoverability. They used to be called `z-a-${name}` and have been
renamed to `zinit-annex-${name}`. You don't *need* to update your configs right away since GitHub redirects to the
new URLs.
- 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
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
will not necessarily be part of your `manpath`. You may need to set `$MANPATH`. See #8 (and #7) for more details.
- 21-01-2020
- A few tips for the project rename following the field reports (the issues created by users):
- the `ZPLGM` hash is now `ZINIT`,
- the annexes are moved under [zinit-zsh](https://github.com/zinit-zsh) organization (it needs a logo, could you
create one, if you're skilled in graphics?).
- 19-01-2020
- The name has been changed to **Zinit** based on the results of the
[poll](https://web.archive.org/web/20201008014128/https://github.com/zdharma/zinit/issues/235)
- In general, you don't have to do anything after the name change.
- Only a run of `zinit update --all` might be necessary.
- You might also want to rename your `zplugin` calls in `zshrc` to `zinit`.
- Zinit will reuse `~/.zplugin` directory if it exists, otherwise it'll create `~/.zinit`.
- 15-01-2020
- There's a new function, `zpextract`, which unpacks the given file. It supports many formats (notably also `dmg`
images) if there's a format that's unsupported please don't hesitate to
[make a request](https://github.com/zdharma-continuum/zinit/issues/new?assignees=&labels=%F0%9F%8E%81+feature+request%2C%F0%9F%8E%B2+triage&template=feature-request.yml&title=%F0%9F%8E%81+Feature+request%3A+)
for it to be added. A few facts:
- the function is available only at the time of the plugin/snippet installation,
- it's to be used within `atclone` and `atpull` ices,
- it has an optional `--move` option which moves all the files from a subdirectory up one level,
- one other option `--norm` prevents the archive from being deleted upon unpacking.
- snippets now aren't re-downloaded unless they're newer on the HTTP server; use this with the `--norm` option of
`zpextract` to prevent unnecessary updates; for example, the
[firefox-dev package](https://github.com/zdharma-continuum/zsh-package-firefox-dev) uses this option for this
purpose,
- GitHub doesn't report proper `Last-Modified` HTTP server for the files in the repositories so the feature doesn't
yet work with such files.
- 13-12-2019
- The packages have been disconnected from NPM registry and now live only on Zsh Packages organization. Publishing to
NPM isn't needed.
- There are two interesting packages, [any-gem](https://github.com/zdharma-continuum/zsh-package-any-gem) and
[any-node](https://github.com/zdharma-continuum/zsh-package-any-node). They allow to install any Gem(s) or Node
module(s) locally in a newly created plugin directory. For example:
```zsh
zinit pack param='GEM -> rails' for any-gem
zinit pack param='MOD -> doctoc' for any-node
# To have the command in zshrc, add an id-as'' ice so that
# Zinit knows that the package is already installed
# (also: the Unicode arrow is allowed)
zinit id-as=jekyll pack param='GEM → jekyll' for any-gem
```
The binaries will be exposed without altering the PATH via shims
([Bin-Gem-Node](https://github.com/zinit-zsh/zinit-annex-bin-gem-node) annex is needed). Shims are correctly removed
when deleting a plugin with `zinit delete …`.
- 11-12-2019
- Zinit now supports installing special-Zsh NPM packages! Bye-bye the long and complex ice-lists! Check out the
[Wiki](https://zdharma-continuum.github.io/zinit/wiki/NPM-Packages/) for an introductory document on the feature.
- 25-11-2019
- A new subcommand `run` that executes a command in the given plugin's directory. It has an `-l` option that will
reuse the previously provided plugin. So that it's possible to do:
```zsh
zplg run my/plugin ls
zplg run -l cat \*.plugin.zsh
zplg run -l pwd
```
- 07-11-2019
- Added a prefix-char: `@` that can be used before plugins if their name collides with one of the ice-names. For
example `sharkdp/fd` collides with the `sh` ice (which causes the plugin to be loaded with the POSIX `sh` emulation
applied). To load it, do e.g.:
```zsh
zinit as"null" wait"2" lucid from"gh-r" for \
mv"exa* -> exa" sbin"exa" ogham/exa \
mv"fd* -> fd" sbin"fd/fd" @sharkdp/fd \
sbin"fzf" junegunn/fzf-bin
```
i.e.: precede the plugin name with `@`. Note: `sbin''` is an ice added by the
[zinit-annex-bin-gem-node](https://github.com/zinit/zinit-annex-bin-gem-node) annex, it provides the command to the
command line without altering `$PATH`.
See the [Zinit Wiki](https://zdharma-continuum.github.io/zinit/wiki/For-Syntax/) for more information on the
for-syntax.
- 06-11-2019
- A new syntax, called for-syntax. Example:
```zsh
zinit as"program" atload'print Hi!' for \
atinit'print First!' zdharma/null \
atinit'print Second!' svn OMZ::plugins/git
```
The output:
```
First!
Hi!
Second!
Hi!
```
And also:
```zsh
% print -rl $path | egrep -i '(/git|null)'
/root/.zinit/snippets/OMZ::plugins/git
/root/.zinit/plugins/zdharma---null
```
To load in light mode, use a new `light-mode` ice. More examples and information can be found on the
[Zinit Wiki](https://zdharma-continuum.github.io/zinit/wiki/For-Syntax/).
- 03-11-2019
- A new value for the `as''` ice `null`. Specifying `as"null"` is like specifying `pick"/dev/null" nocompletions`,
i.e.: it disables the sourcing of the default script file of a plugin or snippet and also disables the installation
of completions.
- 30-10-2019
- A new ice `trigger-load''` create a function that loads given plugin/snippet, with an option (to use it, precede
the ice content with `!`) to automatically forward the call afterwards. Example use:
```zsh
# Invoking the command `crasis' will load the plugin that
# provides the function `crasis', and it will be then
# immediately invoked with the same arguments
zinit ice trigger-load'!crasis'
zinit load zdharma/zinit-crasis
```
- 22-10-2019
- A new ice `countdown` causes an interruptable (by Ctrl-C) countdown 5…4…3…2…1…0 to be displayed before running the
`atclone''`, `atpull''` and `make` ices.
- 21-10-2019
- The `times` command has a new option `-m` it shows the **moments** of the plugin load times i.e.: how late after
loading Zinit a plugin has been loaded.
- 20-10-2019
- The `zinit` completion now completes also snippets! The command `snippet`, but also `delete`, `recall`, `edit`,
`cd`, etc. all receive such completing.
- The `ice` subcommand can now be skipped just pass in the ices, e.g.:
```zsh
zinit atload"zicompinit; zicdreplay" blockf
zinit light zsh-users/zsh-completions
```
- The `compile` command is able to compile snippets.
- The plugins that add their subdirectories into `$fpath` can be now `blockf`-ed the functions located in the dirs
will be correctly auto-loaded.
- 12-10-2019
- Special value for the `id-as''` ice `auto`. It sets the plugin/snippet ID automatically to the last component of
its spec, e.g.:
```zsh
zinit ice id-as"auto"
zinit load robobenklein/zinc
```
will load the plugin as `id-as'zinc'`.
- 14-09-2019
- There's a Vim plugin which extends syntax highlighting of zsh scripts with coloring of the Zinit commands.
[Project homepage](https://github.com/zinit/zinit-vim-syntax).
- 13-09-2019
- New ice `aliases` which loads plugin with the aliases mechanism enabled. Use for plugins that define **and use**
aliases in their scripts.
- 11-09-2019
- New ice-mods `sh`,`bash`,`ksh`,`csh` that load plugins (and snippets) with the **sticky emulation** feature of Zsh
all functions defined within the plugin will automatically switch to the desired emulation mode before executing and
switch back thereafter. In other words it is now possible to load e.g. bash plugins with Zinit, provided that the
emulation level done by Zsh is sufficient, e.g.:
```zsh
zinit ice bash pick"bash_it.sh" \
atinit"BASH_IT=${ZINIT[PLUGINS_DIR]}/Bash-it---bash-it" \
atclone"yes n | ./install.sh"
zinit load Bash-it/bash-it
```
This script loads correctly thanks to the emulation, however it isn't functional because it uses `type -t …` to
check if a function exists.
- 10-09-2019
- A new ice-mod `reset''` that ivokes `git reset --hard` (or the provided command) before `git pull` and `atpull''`
ice. It can be used it to implement altering (i.e. patching) of the plugin's files inside the `atpull''` ice `git`
will report no conflicts when doing `pull`, and the changes can be then again introduced by the `atpull''` ice..
- Three new Zplugin annexes (i.e. [extensions](https://zdharma-continuum.github.io/zplugin/wiki/Annexes/)):
- [zinit-annex-man](https://github.com/zplugin/zinit-annex-man)
Generates man pages and code-documentation man pages from plugin's README.md and source files (the code
documentation is obtained from [Zshelldoc](https://github.com/zdharma/zshelldoc)).
- [zinit-annex-test](https://github.com/zplugin/zinit-annex-test)
Runs tests (if detected `test' target in a `Makefile`or any`\*.zunit\` files) on plugin installation and non-empty
update.
- [zinit-annex-patch-dl](https://github.com/zplugin/zinit-annex-patch-dl)
Allows easy download and applying of patches, to e.g. aid building a binary program equipped in the plugin.
- A new variable is being recognized by the installation script: `$ZPLG_BIN_DIR_NAME`. It configures the directory
within `$ZPLG_HOME` to which Zplugin should be cloned.
- 09-08-2019
- A new ice-mod `wrap-track''` which gets `;`-separated list of functions that are to be tracked **once** when
executing. In other words you can extend the tracking beyond the moment of loading of a plugin.
- The unloading of Zle widgets is now more smart it takes into account the chains of plugins that can overload the
Zle widgets, and solves the interactions that result out of it.
- 29-07-2019
- `delete` now supports following options:
- `--all` deletes all plugins and snippets (a purge, similar to
`rm -rf ${ZPLGM[PLUGINS_DIR]} ${ZPLGM[SNIPPETS_DIR]}`)
- `--clean` deletes only plugins and snippets that are **currently not loaded** in the current session.
- 09-07-2019
- Zplugin can now have **its own plugins**, called **z-plugins**! Check out an example but fully functional z-plugin
[zdharma/z-p-submods](https://github.com/zdharma/z-p-submods) and a document that explains on how to implement your
own z-plugin ([here](../../wiki/Z-PLUGINS)).
- 08-07-2019
- You can now do `zplugin ice wait ...` and it will work as `zplugin ice wait'0' ...` :) I.e. when there's no value to
the `wait''` ice then a value of `0` is being substituted.
- 02-07-2019
- [Cooperation of Fast-Syntax-Highlighting and Zplugin](https://asciinema.org/a/254630) a new precise highlighting
for Zplugin in F-Sy-H.
- 01-07-2019
- `atclone''`, `atpull''` & `make''` get run in the same subshell, thus an e.g. export done in `atclone''` will be
visible during the `make`.
- 26-06-2019
- `notify''` contents gets evaluated, i.e. can contain active code like `$(tail -1 /var/log/messages)`, etc.
- 23-06-2019
- New ice mod `subscribe''`/`on-update-of''` which works like the `wait''` ice-mod, i.e. defers loading of a plugin,
but it **looks at modification time of the given file(s)**, and when it changes, it then triggers loading of the
plugin/snippet:
```zsh
% zplugin ice on-update-of'{~/files-*,/tmp/files-*}' lucid \
atload"echo I have been loaded" \
notify"Yes that's true :)"
% zplugin load zdharma/null
% touch ~/files-1
The plugin has been loaded
%
Yes that's true :)
```
The plugin/snippet will be sourced as many times as the file gets updated.
- 22-06-2019
- New ice mod `reset-prompt` that will issue `zle .reset-prompt` after loading the plugin or snippet, causing the
prompt to be recomputed. Useful with themes & turbo-mode.
- New ice-mod `notify''` which will cause to display an under-prompt notification when the plugin or snippet gets
loaded. E.g.:
```zsh
% zplugin ice wait"0" lucid notify"zdharma/null has been loaded"
% zplugin light zdharma/null
%
zdharma/null has been loaded
```
In case of problems with the loading a warning message will be output:
```
% zplugin ice notify atload'return 7'
% zplugin light zdharma/null
%
notify: Plugin not loaded / loaded with problem, the return code: 7
```
Refer to [Ice Modifiers](#ice-modifiers) section for a complete description.
- 29-05-2019
- Turbo-Mode, i.e. the `wait''` ice-mode now supports a suffix the letter `a`, `b` or `c`. The meaning is
illustrated by the following example:
```zsh
zplugin ice wait"0b" as"command" pick"wd.sh" atinit"echo Firing 1" lucid
zplugin light mfaerevaag/wd
zplugin ice wait"0a" as"command" pick"wd.sh" atinit"echo Firing 2" lucid
zplugin light mfaerevaag/wd
# The output
Firing 2
Firing 1
```
As it can be seen, the second plugin has been loaded first. That's because there are now three sub-slots (the `a`,
`b` and `c`) in which the plugin/snippet loadings can be put into. Plugins from the same time-slot with suffix `a`
will be loaded before plugins with suffix `b`, etc.
In other words, instead of `wait'1'` you can enter `wait'1a'`, `wait'1b'` and `wait'1c'` to this way **impose
order** on the loadings **regardless of the order of `zplugin` commands**.
- 26-05-2019
- Turbo-Mode now divides the scheduled events (i.e. loadings of plugins or snippets) into packs of 5. In other words,
after loading each series of 5 plugins or snippets the prompt is activated, i.e. it is feed an amount of CPU time.
This will help to deliver the promise of background loading without interferences visible to the user. If you have
some two slow-loading plugins and/or snippets, you can put them into some separate blocks of 5 events.
- 18-05-2019
- New ice-mod `nocd` it prevents changing current directory into the plugin's directory before evaluating
`atinit''`, `atload''` etc. ice-mods.
- 12-03-2019
- Finally reorganizing the `README.md`. Went on asciidoc path, the side-documents are written in it and the
`README.md` will also be converted (example page: [Introduction](doc/INTRODUCTION.adoc))
- 12-10-2018
- New `id-as''` ice-mod. You can nickname a plugin or snippet, to e.g. load it twice, with different `pick''` ice-mod,
or from Github binary releases and regular Github repository at the same time. More information in
[blog post](https://zdharma-continuum.github.io/2018-10-12/Nickname-a-plugin-or-snippet).
- 30-08-2018
- New `as''` ice-mod value: `completion`. Can be used to install completion-only "plugins", even single files:
```zsh
zplugin ice as"completion" mv"hub* -> _hub"
zplugin snippet https://github.com/github/hub/blob/master/etc/hub.zsh_completion
```
- Uplift of Git-output, it now has an animated progress-bar:
![image](https://raw.githubusercontent.com/zdharma/zplugin/images/zplg-progress-bar.gif)
- 15-08-2018
- New `$ZPLGM` field `COMPINIT_OPTS` (also see [Customizing Paths](#customizing-paths--other)). You can pass `-C` or
`-i` there to mute the `insecure directories` messages. Typical use case could be:
```zsh
zplugin ice wait"5" atinit"ZPLGM[COMPINIT_OPTS]=-C; zpcompinit; zpcdreplay" lucid
zplugin light zdharma/fast-syntax-highlighting
```
- 13-08-2018
- `self-update` (subcommand used to update Zplugin) now lists new commits downloaded by the update:
![image](https://raw.githubusercontent.com/zdharma/zplugin/images/zplg-self-update.png)
- New subcommand `bindkeys` that lists what bindkeys each plugin has set up.
- 25-07-2018
- If you encountered a problem with loading Turbo-Mode plugins, it is fixed now. This occurred in versions available
between `10` and `23` of July. Issue `zplugin self-update` if you installed/updated in this period.
- New bug-fix release `v2.07`.
- 13-07-2018
- New `multisrc''` ice, it allows to specify multiple files for sourcing and it uses brace expansion syntax, so for
example you can:
```zsh
zplugin ice depth"1" multisrc="lib/{functions,misc}.zsh" pick"/dev/null"; zplugin load robbyrussell/oh-my-zsh
zplugin ice svn multisrc"{functions,misc}.zsh" pick"/dev/null"; zplugin snippet OMZ::lib
array=( {functions,misc}.zsh ); zplg ice svn multisrc"\${array[@]}" pick"/dev/null"; zplugin snippet OMZ::lib
array=( {functions,misc}.zsh ); zplg ice svn multisrc"${array[@]}" pick"/dev/null"; zplugin snippet OMZ::lib
array=( {functions,misc}.zsh ); zplg ice svn multisrc"\$array" pick"/dev/null"; zplugin snippet OMZ::lib
array=( {functions,misc}.zsh ); zplg ice svn multisrc"$array" pick"/dev/null"; zplugin snippet OMZ::lib
zplugin ice svn multisrc"misc.zsh functions.zsh" pick"/dev/null"; zplugin snippet OMZ::lib
```
- 12-07-2018
- For docker and new machine provisioning, there's a trick that allows to install all
[turbo-mode](#turbo-mode-zsh--53) plugins by scripting:
```zsh
zsh -i -c -- '-zplg-scheduler burst'
```
- 10-07-2018
- Ice `wait'0'` now means actually short time you can load plugins and snippets **very quickly** after prompt.
- 02-03-2018
- Zplugin exports `$ZPFX` parameter. Its default value is `~/.zplugin/polaris` (user can override it before sourcing
Zplugin). This directory is like `/usr/local`, a prefix for installed software, so it's possible to use ice like
`make"PREFIX=$ZPFX"` or `atclone"./configure --prefix=$ZPFX"`. Zplugin also setups `$MANPATH` pointing to the
`polaris` directory. Checkout [gallery](GALLERY.md) for examples.
- [New README section](#hint-extending-git) about extending Git with Zplugin.
- 05-02-2018
- I work much on this README however multi-file Wiki might be better to read it
[just has been created](https://github.com/zdharma/zplugin/wiki).
- 16-01-2018
- New ice-mod `compile` which takes pattern to select additional files to compile, e.g.
`zplugin ice compile"(hsmw-*|history-*)"` (for `zdharma/history-search-multi-word` plugin). See
[Ice Modifiers](#ice-modifiers).
- 14-01-2018
- Two functions have been exposed: `zpcdreplay` and `zpcompinit`. First one invokes compdef-replay, second one is
equal to `autoload compinit; compinit` (it also respects `$ZPLGM[ZCOMPDUMP_PATH]`). You can use e.g.
`atinit'zpcompinit'` ice-mod in a syntax-highlighting plugin, to initialize completion right-before setting up
syntax highlighting (because that should be done at the end).
- 13-01-2018
- New customizable path `$ZPLGM[ZCOMPDUMP_PATH]` that allows to point zplugin to non-standard `.zcompdump` location.
- Tilde-expansion is now performed on the [customizable paths](#customizing-paths--other) you can assign paths like
`~/.zplugin`, there's no need to use `$HOME/.zplugin`.
- 31-12-2017
- For the new year there's a new feature: user-services spawned by Zshell :) Check out
[available services](https://github.com/zservices). They are configured like their READMEs say, and controlled via:
```
% zplugin srv redis next # current serving shell will drop the service, next Zshell will pick it up
% zplugin srv redis quit # the serving shell will quit managing the service, next Zshell will pick it up
% zplugin srv redis stop # stop serving, do not pass it to any shell, just hold the service
% zplugin srv redis start # start stopped service, without changing the serving shell
% zplugin srv redis restart # restart service, without changing the serving shell
```
This feature allows to configure everything in `.zshrc`, without the the need to deal with `systemd` or `launchd`,
and can be useful e.g. to configure shared-variables (across Zshells), stored in `redis` database (details on
[zservices/redis](https://github.com/zservices/redis)).
- 24-12-2017
- Xmas present [fast-syntax-highlighting](https://github.com/zdharma/fast-syntax-highlighting) now highlights the
quoted part in `atinit"echo Initializing"`, i.e. it supports ICE syntax :)
- 08-12-2017
- SVN snippets are compiled on install and update
- Resolved how should ice-mods be remembered general rule is that using `zplugin ice ...` makes memory-saved and
disk-saved ice-mods not used, and replaced on update. Calling e.g. `zplugin update ...` without preceding `ice` uses
memory, then disk-saved ices.
- 07-12-2017
- New subcommand `delete` that obtains plugin-spec or URL and deletes plugin or snippet from disk. It's good to forget
wrongly passed Ice-mods (which are storred on disk e.g. for `update --all`).
- 04-12-2017
- It's possible to set plugin loading and unloading on condition. ZPlugin supports plugin unloading, so it's possible
to e.g. **unload prompt and load another one**, on e.g. directory change. Checkout
[full story](#automatic-loadunload-on-condition) and [Asciinema video](https://asciinema.org/a/150825).
- 29-11-2017
- **[Turbo Mode](https://github.com/zdharma/zplugin#turbo-mode-zsh--53)** **39-50% or more faster Zsh startup!**
- Subcommand `update` can update snippets, via given URL (up to this point snippets were updated via
`zplugin update --all`).
- Completion management is enabled for snippets (not only plugins).
- 13-11-2017
- New ice modifier `make`. It causes the `make`-command to be executed after cloning or updating plugins and
snippets. For example there's `Zshelldoc` that uses `Makefile` to build final scripts:
```SystemVerilog
zplugin ice as"program" pick"build/zsd*" make; zplugin light zdharma/zshelldoc
```
The above doesn't trigger the `install` target, but this does:
```SystemVerilog
zplugin ice as"program" pick"build/zsd*" make"install PREFIX=/tmp"; zplugin light zdharma/zshelldoc
```
- Fixed problem with binary-release selection (`from"gh-r"`) by adding Ice-mod `bpick`, which should be used for this
purpose instead of `pick`, which selects file within plugin tree.
- 06-11-2017
- The subcommand `completions` now prints `3` completions per line (not `1`). This makes large amount of completions to look
better. Argument can be given, e.g. `6`, to increase the grouping.
- New Ice-mod `silent` that mutes `stderr` & `stdout` of a plugin or snippet.
- 04-11-2017
- New subcommand `ls` which lists snippets-directory in a formatted and colorized manner. Example:
![zplugin-ls](https://raw.githubusercontent.com/zdharma/zplugin/images/zplg-ls.png)
- 29-10-2017
- Subversion protocol (supported by Github) can be used to clone **subdirectories** when using snippets. This allows
to load multi-file snippets. For example:
```SystemVerilog
zstyle ':prezto:module:prompt' theme smiley
zplugin ice svn silent; zplugin snippet PZT::modules/prompt
```
- Snippets support `Prezto` modules (with dependencies), and can use **PZT::** URL-shorthand, like in the example
above. One can load `Prezto` module as single file snippet, or use Subversion to download whole directory (see also
description of [Ice Modifiers](#ice-modifiers)):
```zsh
# Single file snippet, URL points to file
zplg snippet PZT::modules/helper/init.zsh
# Multi-file snippet, URL points to directory to clone with Subversion
# The file to source (init.zsh) is automatically detected
zplugin ice svn; zplugin snippet PZT::modules/prompt
# Use of Subversion to load an OMZ plugin
zplugin ice svn; zplugin snippet OMZ::plugins/git
```
- Fixed a bug with `cURL` usage (snippets) for downloading, it will now be properly used
- 13-10-2017
- Snippets can use "**OMZ::**" prefix to easily point to `Oh-My-Zsh` plugins and libraries, e.g.:
```SystemVerilog
zplugin snippet OMZ::lib/git.zsh
zplugin snippet OMZ::plugins/git/git.plugin.zsh
```
- 12-10-2017
- The `cd` subcommand can now obtain URL and move session to **snippet** directory
- The `times` subcommand now includes statistics on snippets. Also, entries are displayed in order of loading:
```zsh
% zplugin times
Plugin loading times:
0.010 sec - OMZ::lib/git.zsh
0.001 sec - OMZ::plugins/git/git.plugin.zsh
0.003 sec - zdharma/history-search-multi-word
0.003 sec - rimraf/k
0.003 sec - zsh-users/zsh-autosuggestions
```
- 24-09-2017
- **[Code documentation](zsdoc)** for contributors and interested people.
- 13-06-2017
- Plugins can now be absolute paths:
```SystemVerilog
zplugin load %HOME/github/{directory}
zplugin load /Users/sgniazdowski/github/{directory}
zplugin load %/Users/sgniazdowski/github/{directory}
```
Completions are not automatically installed, but user can run `zplg creinstall %HOME/github/{directory}`, etc.
- 23-05-2017
- New `ice` modifier: `if`, to which you can provide a conditional expression:
```SystemVerilog
% zplugin ice if"(( 0 ))"
% zplugin snippet --command https://github.com/b4b4r07/httpstat/blob/master/httpstat.sh
% zplugin ice if"(( 1 ))"
% zplugin snippet --command https://github.com/b4b4r07/httpstat/blob/master/httpstat.sh
Setting up snippet httpstat.sh
Downloading httpstat.sh...
```

138
doc/HACKING.md Normal file
View file

@ -0,0 +1,138 @@
# HACKING.md
## Documentation
### README: Update the table of contents
1. Install [doctoc](https://github.com/thlorenz/doctoc)
2. To update the TOC, run the following command:
```zsh
doctoc --github README.md
```
### Update asciidoc and/or zshelldoc
> [!IMPORTANT]
> Make sure you have [docker](https://www.docker.com/) or [podman](https://podman.io/) installed.
1. From the root of the repo, run:
```zsh
make doc-container
```
If, for some reason, you want to build the zshelldocs or the PDF manually, you'll need:
1. Patience, zsd is very finicky about locales. You have been warned.
2. [zshelldoc (zsd)](https://github.com/zdharma-continuum/zshelldoc)
3. [asciidoc](https://asciidoc.org/)
4. `make doc`
### Generate the manpage (doc/zinit.1)
1. Install [pandoc](https://pandoc.org/)
2. From the root of the repo run:
```zsh
pandoc --standalone --to man README.md -o doc/zinit.1
```
### Updating the gh-pages (zdharma-continuum.github.io)
1. Check out the [documentation branch](https://github.com/zdharma-continuum/zinit/tree/documentation)
```shell
git fetch origin documentation
git checkout documentation
```
2. Do your modifications and push your changes
3. Keep an eye on [the CI logs](https://github.com/zdharma-continuum/zinit/actions/workflows/gh-pages.yaml)
4. If all went well, head to https://zdharma-continuum.github.io/ to see your changes live.
> [!NOTE]
> If you really **need** to push directly, without CI, please refer to [the README in the
documentation](https://github.com/zdharma-continuum/zinit/blob/documentation/README.md)
## Testing
We run our tests with [zunit](https://zunit.xyz).
To add a new test case:
1. Install [zunit](https://zunit.xyz) and [revolver](https://github.com/molovo/revolver):
```zsh
zinit for \
as"program" \
atclone"ln -sfv revolver.zsh-completion _revolver" \
atpull"%atclone" \
pick"revolver" \
@molovo/revolver \
as"completion" \
atclone"./build.zsh; ln -sfv zunit.zsh-completion _zunit" \
atpull"%atclone" \
sbin"zunit" \
@zunit-zsh/zunit
```
2. Create a new `.zunit` file in the `tests/` dir. Here's a template:
```zsh
#!/usr/bin/env zunit
@setup {
load setup
setup
}
@teardown {
load teardown
teardown
}
@test 'zinit-annex-bin-gem-node installation' {
# This spawns the official zinit container and executes a single zinit command
# inside it
run ./scripts/docker-run.sh --wrap --debug --zunit \
zinit light as"null" for zdharma-continuum/null
# Verify the exit code of the command above
assert $state equals 0
assert "$output" contains "Downloading"
local artifact="${PLUGINS_DIR}/zdharma-continuum---null/readme.md"
# Check if we downloaded the file correctly and if it is readable
assert "$artifact" is_file
assert "$artifact" is_readable
}
```
You should, of course, also check out the existing tests ;)
3. To run your new test:
```zsh
zunit --verbose tests/your_test.zunit
```
### Debugging tests
If you ever need to inspect the `ZINIT[HOME_DIR]` dir, where zinit's internal data is stored, you can do so by commenting
out the `@teardown` section in your test. Then you can re-run said test and head over to `${TMPDIR:-/tmp}/zunit-zinit`.
Good luck!
## Misc
### Get the list of supported ices
To get the list in a quick-and-dirty fashion, you issue:
```zsh
zinit --help | tail -1
```
See
[zinit-autoload.zsh](https://github.com/zdharma-continuum/zinit/blob/2feb41cf70d2f782386bbaa6fda691e3bdc7f1ac/zinit-autoload.zsh#L3445-L3447)
for implementation details.

View file

@ -1,357 +0,0 @@
zsh-5.0.8, OS X 10.11.2
non-interactive zsh, emulate zsh:
noaliases off
allexport off
noalwayslastprompt off
alwaystoend off
noappendhistory off
autocd off
autocontinue off
noautolist off
noautomenu off
autonamedirs off
noautoparamkeys off
noautoparamslash off
autopushd off
noautoremoveslash off
autoresume off
nobadpattern off
nobanghist off
nobareglobqual off
bashautolist off
bashrematch off
nobeep off
nobgnice off
braceccl off
bsdecho off
nocaseglob off
nocasematch off
cbases off
cdablevars off
chasedots off
chaselinks off
nocheckjobs off
noclobber off
combiningchars off
completealiases off
completeinword off
continueonerror off
correct off
correctall off
cprecedences off
cshjunkiehistory off
cshjunkieloops off
cshjunkiequotes off
cshnullcmd off
cshnullglob off
nodebugbeforecmd off
dvorak off
emacs off
noequals off
errexit off
errreturn off
noevallineno off
noexec off
extendedglob off
extendedhistory off
noflowcontrol off
forcefloat off
nofunctionargzero off
noglob off
noglobalexport off
noglobalrcs off
globassign off
globcomplete off
globdots off
globsubst off
nohashcmds off
nohashdirs on
hashexecutablesonly off
nohashlistall off
histallowclobber off
nohistbeep off
histexpiredupsfirst off
histfcntllock off
histfindnodups off
histignorealldups off
histignoredups off
histignorespace off
histlexwords off
histnofunctions off
histnostore off
histreduceblanks off
nohistsavebycopy off
histsavenodups off
histsubstpattern off
histverify off
nohup off
ignorebraces off
ignoreclosebraces off
ignoreeof off
incappendhistory off
incappendhistorytime off
interactive off
interactivecomments off
ksharrays off
kshautoload off
kshglob off
kshoptionprint on
kshtypeset off
kshzerosubscript off
nolistambiguous off
nolistbeep off
listpacked off
listrowsfirst off
nolisttypes off
localloops off
localoptions off
localpatterns off
localtraps off
login off
longlistjobs off
magicequalsubst off
mailwarning off
markdirs off
menucomplete off
monitor off
nomultibyte off
nomultifuncdef off
nomultios off
nonomatch off
nonotify off
nullglob off
numericglobsort off
octalzeroes off
overstrike off
pathdirs off
pathscript off
pipefail off
posixaliases off
posixargzero off
posixbuiltins off
posixcd off
posixidentifiers off
posixjobs off
posixstrings off
posixtraps off
printeightbit off
printexitvalue off
privileged off
promptbang off
nopromptcr off
nopromptpercent off
nopromptsp off
promptsubst off
pushdignoredups off
pushdminus off
pushdsilent off
pushdtohome off
rcexpandparam off
rcquotes off
norcs off
recexact off
rematchpcre off
restricted off
rmstarsilent off
rmstarwait off
sharehistory off
shfileexpansion off
shglob off
shinstdin off
shnullcmd off
shoptionletters off
noshortloops off
shwordsplit off
singlecommand off
singlelinezle off
sourcetrace off
sunkeyboardhack off
transientrprompt off
trapsasync off
typesetsilent off
nounset off
verbose off
vi off
warncreateglobal off
xtrace off
zle off
non-interactive zsh, emulate ksh:
noaliases off
allexport off
noalwayslastprompt off
alwaystoend off
noappendhistory off
autocd off
autocontinue off
noautolist off
noautomenu off
autonamedirs off
noautoparamkeys off
noautoparamslash off
autopushd off
noautoremoveslash off
autoresume off
badpattern off
banghist on
bareglobqual off
bashautolist off
bashrematch off
nobeep off
bgnice off
braceccl off
bsdecho off
nocaseglob off
nocasematch off
cbases off
cdablevars off
chasedots off
chaselinks off
checkjobs off
noclobber off
combiningchars off
completealiases off
completeinword off
continueonerror off
correct off
correctall off
nocprecedences off
cshjunkiehistory off
cshjunkieloops off
cshjunkiequotes off
cshnullcmd off
cshnullglob off
nodebugbeforecmd off
dvorak off
emacs off
equals off
errexit off
errreturn off
evallineno off
noexec off
extendedglob off
extendedhistory off
noflowcontrol off
forcefloat off
functionargzero off
noglob off
globalexport off
noglobalrcs off
globassign off
globcomplete off
globdots off
noglobsubst off
nohashcmds off
nohashdirs on
hashexecutablesonly off
nohashlistall off
histallowclobber off
nohistbeep off
histexpiredupsfirst off
histfcntllock off
histfindnodups off
histignorealldups off
histignoredups off
histignorespace off
histlexwords off
histnofunctions off
histnostore off
histreduceblanks off
nohistsavebycopy off
histsavenodups off
histsubstpattern off
histverify off
hup off
ignorebraces off
ignoreclosebraces off
ignoreeof off
incappendhistory off
incappendhistorytime off
interactive off
nointeractivecomments on
noksharrays off
nokshautoload off
nokshglob off
nokshoptionprint off
nokshtypeset off
kshzerosubscript off
nolistambiguous off
nolistbeep off
listpacked off
listrowsfirst off
nolisttypes off
localloops off
nolocaloptions off
localpatterns off
nolocaltraps off
login off
longlistjobs off
magicequalsubst off
mailwarning off
markdirs off
menucomplete off
monitor off
nomultibyte off
multifuncdef off
multios off
nomatch off
notify on
nullglob off
numericglobsort off
octalzeroes off
overstrike off
pathdirs off
nopathscript off
pipefail off
noposixaliases off
posixargzero off
noposixbuiltins off
noposixcd off
noposixidentifiers off
noposixjobs off
noposixstrings off
noposixtraps off
printeightbit off
printexitvalue off
privileged off
nopromptbang on
nopromptcr off
promptpercent on
nopromptsp off
nopromptsubst on
pushdignoredups off
pushdminus off
pushdsilent off
pushdtohome off
rcexpandparam off
rcquotes off
norcs off
recexact off
rematchpcre off
restricted off
normstarsilent on
rmstarwait off
nosharehistory on
noshfileexpansion off
noshglob off
shinstdin off
noshnullcmd off
noshoptionletters off
shortloops off
noshwordsplit off
singlecommand off
nosinglelinezle on
sourcetrace off
sunkeyboardhack off
transientrprompt off
trapsasync off
notypesetsilent off
nounset off
verbose off
vi off
warncreateglobal off
xtrace off
zle off

View file

@ -1,50 +0,0 @@
echo ${(<TAB>, zsh-5.0.8, OS X 10.11.2
parameter flag
# -- evaluate as numeric expression
% -- expand prompt sequences
0 -- split words on null bytes
@ -- double-quoted splitting of scalars
A -- create array parameter
B -- include index of beginning of match in #, %, / expressions
C -- capitalize words
D -- perform directory name abbreviation
E -- include index of end of match in #, %, / expressions
F -- join arrays with newlines
I -- search <argument>th match in #, %, / expressions
L -- lower case all letters
M -- include matched portion in #, %, / expressions
N -- include length of match in #, % expressions
O -- sort in descending order (lexically if no other sort option)
P -- use parameter value as name of parameter for redirected lookup
Q -- remove one level of quoting
R -- include rest (unmatched portion) in #, %, / expressions
S -- search substrings in #, %, / expressions
U -- upper case all letters
V -- visibility enhancements for special characters
W -- count words including empty words (with ${(W)#...})
X -- report parsing errors and eXit substitution
Z -- split words as if zsh command line (with options)
a -- sort in array index order (with O to reverse)
b -- backslash quote pattern characters only
c -- count characters in an array (with ${(c)#...})
e -- perform single-word shell expansions
f -- split the result on newlines
g -- process echo array sequences (needs options)
i -- sort case-insensitively
j -- join arrays with specified string
k -- subsitute keys of associative arrays
l -- left-pad resulting words
m -- count multibyte width in padding calculation
n -- sort decimal integers numerically
o -- sort in ascending order (lexically if no other sort option)
p -- handle print escapes or variables in parameter flag arguments
q -- quote with backslashes
r -- right-pad resulting words
s -- split words on specified string
t -- substitute type of parameter
u -- substitute first occurrence of each unique word
v -- substitute values of associative arrays (with (k))
w -- count words in array or string (with ${(w)#...})
z -- split words as if zsh command line
~ -- treat strings in parameter flag arguments as patterns

View file

@ -1,357 +0,0 @@
Remembered state of Zsh during loading of a sophisticated plugin first
with no problem second one with slight (extendedglob) recognized problem
RESULT: prefix ||, option/MATCH: |noksharrays|
noaliases off
allexport off
noalwayslastprompt off
alwaystoend off
noappendhistory off
autocd on
autocontinue off
noautolist off
noautomenu on
autonamedirs off
noautoparamkeys off
noautoparamslash off
autopushd on
noautoremoveslash off
autoresume off
nobadpattern off
nobanghist off
nobareglobqual off
bashautolist off
bashrematch off
nobeep off
nobgnice off
braceccl off
bsdecho off
nocaseglob off
nocasematch off
cbases on
cdablevars off
chasedots off
chaselinks off
nocheckjobs off
noclobber off
combiningchars off
completealiases off
completeinword on
continueonerror off
correct off
correctall off
cprecedences off
cshjunkiehistory off
cshjunkieloops off
cshjunkiequotes off
cshnullcmd off
cshnullglob off
nodebugbeforecmd off
dvorak off
emacs off
noequals off
errexit off
errreturn off
noevallineno off
noexec off
extendedglob on
extendedhistory off
noflowcontrol off
forcefloat off
nofunctionargzero off
noglob off
noglobalexport off
noglobalrcs off
globassign off
globcomplete off
globdots off
globsubst off
nohashcmds off
nohashdirs off
hashexecutablesonly off
nohashlistall off
histallowclobber off
nohistbeep off
histexpiredupsfirst off
histfcntllock off
histfindnodups off
histignorealldups off
histignoredups on
histignorespace off
histlexwords off
histnofunctions off
histnostore off
histreduceblanks off
nohistsavebycopy off
histsavenodups off
histsubstpattern off
histverify off
nohup off
ignorebraces off
ignoreclosebraces off
ignoreeof on
incappendhistory on
incappendhistorytime off
interactive on
interactivecomments on
ksharrays off
kshautoload off
kshglob off
kshoptionprint on
kshtypeset off
kshzerosubscript off
nolistambiguous off
nolistbeep off
listpacked on
listrowsfirst off
nolisttypes off
localloops off
localoptions off
localpatterns off
localtraps off
login off
longlistjobs off
magicequalsubst off
mailwarning off
markdirs off
menucomplete off
monitor on
nomultibyte off
nomultifuncdef off
nomultios off
nonomatch off
nonotify off
nullglob off
numericglobsort on
octalzeroes on
overstrike off
pathdirs off
pathscript off
pipefail off
posixaliases off
posixargzero off
posixbuiltins off
posixcd off
posixidentifiers off
posixjobs off
posixstrings off
posixtraps off
printeightbit off
printexitvalue off
privileged off
promptbang off
nopromptcr on
nopromptpercent off
nopromptsp off
promptsubst on
pushdignoredups on
pushdminus off
pushdsilent off
pushdtohome off
rcexpandparam off
rcquotes off
norcs off
recexact off
rematchpcre off
restricted off
rmstarsilent off
rmstarwait off
sharehistory off
shfileexpansion off
shglob off
shinstdin on
shnullcmd off
shoptionletters off
noshortloops off
shwordsplit off
singlecommand off
singlelinezle off
sourcetrace off
sunkeyboardhack off
transientrprompt off
trapsasync off
typesetsilent off
nounset off
verbose off
vi off
warncreateglobal off
xtrace off
zle on
RESULT: prefix |localoptions|, option/MATCH: ||
noaliases off
allexport off
noalwayslastprompt off
alwaystoend off
noappendhistory off
autocd off
autocontinue off
noautolist off
noautomenu on
autonamedirs off
noautoparamkeys off
noautoparamslash off
autopushd on
noautoremoveslash off
autoresume off
nobadpattern off
nobanghist off
nobareglobqual off
bashautolist off
bashrematch off
nobeep off
nobgnice off
braceccl off
bsdecho off
nocaseglob off
nocasematch off
cbases on
cdablevars off
chasedots off
chaselinks off
nocheckjobs off
noclobber off
combiningchars off
completealiases off
completeinword on
continueonerror off
correct off
correctall off
cprecedences off
cshjunkiehistory off
cshjunkieloops off
cshjunkiequotes off
cshnullcmd off
cshnullglob off
nodebugbeforecmd off
dvorak off
emacs off
noequals off
errexit off
errreturn off
noevallineno off
noexec off
extendedglob off
extendedhistory off
noflowcontrol off
forcefloat off
nofunctionargzero off
noglob off
noglobalexport off
noglobalrcs off
globassign off
globcomplete off
globdots off
globsubst off
nohashcmds off
nohashdirs off
hashexecutablesonly off
nohashlistall off
histallowclobber off
nohistbeep off
histexpiredupsfirst off
histfcntllock off
histfindnodups off
histignorealldups off
histignoredups on
histignorespace off
histlexwords off
histnofunctions off
histnostore off
histreduceblanks off
nohistsavebycopy off
histsavenodups off
histsubstpattern off
histverify off
nohup off
ignorebraces off
ignoreclosebraces off
ignoreeof on
incappendhistory on
incappendhistorytime off
interactive on
interactivecomments on
ksharrays off
kshautoload off
kshglob off
kshoptionprint on
kshtypeset off
kshzerosubscript off
nolistambiguous off
nolistbeep off
listpacked on
listrowsfirst off
nolisttypes off
localloops off
localoptions on
localpatterns on
localtraps on
login off
longlistjobs off
magicequalsubst off
mailwarning off
markdirs off
menucomplete off
monitor on
nomultibyte off
nomultifuncdef off
nomultios off
nonomatch off
nonotify off
nullglob off
numericglobsort off
octalzeroes off
overstrike off
pathdirs off
pathscript off
pipefail off
posixaliases off
posixargzero off
posixbuiltins off
posixcd off
posixidentifiers off
posixjobs off
posixstrings off
posixtraps off
printeightbit off
printexitvalue off
privileged off
promptbang off
nopromptcr on
nopromptpercent off
nopromptsp off
promptsubst on
pushdignoredups off
pushdminus off
pushdsilent off
pushdtohome off
rcexpandparam off
rcquotes off
norcs off
recexact off
rematchpcre off
restricted off
rmstarsilent off
rmstarwait off
sharehistory off
shfileexpansion off
shglob off
shinstdin on
shnullcmd off
shoptionletters off
noshortloops off
shwordsplit off
singlecommand off
singlelinezle off
sourcetrace off
sunkeyboardhack off
transientrprompt off
trapsasync off
typesetsilent off
nounset off
verbose off
vi off
warncreateglobal off
xtrace off
zle on

View file

@ -1,51 +0,0 @@
horosgrisa/autoenv
adolfoabegg/browse-commit
arzzen/calc.plugin.zsh
walesmd/caniuse.plugin.zsh
mollifier/cd-gitroot
MikeDacre/cdbk
willghatch/zsh-cdr
rutchkiwi/copyzshell (required OMZ directory structure simulation)
veelenga/crystal-zsh
jgrowl/depot_tools
gusaiani/elixir-oh-my-zsh
b4b4r07/emoji-cli
b4b4r07/enhancd
uvaes/fzf-marks
voronkovich/get-jquery.plugin.zsh
fontno/ghost_zeus
peterhurford/git-aliases.zsh
unixorn/git-extra-commands
peterhurford/git-it-on.zsh
tevren/gitfast-zsh-plugin
zsh-users/zsh-syntax-highlighting
voronkovich/gitignore.plugin.zsh
bbenne10/goenv
or17191/going_places
Seinh/git-prune
joepvd/grep2awk (failed, improper bindkey, the same with antigen)
robertzk/hipchat.zsh (unfull, HIPCHAT_API_TOKEN was required)
willghatch/zsh-hooks (problematic usage, the same with antigen)
mgryszko/jvm (problematic usage, the same with antigen)
rimraf/k
d12frosted/kitsunebook.plugin.zsh (a completion done via manual compdef call)
lesaint/lesaint-mvn
Temikus/mac-packaging
hlohm/mfunc (doesn't fully work, the same with antigen)
horosgrisa/mysql-colorize
voronkovich/mysql.plugin.zsh
bric3/nice-exit-code
chrissicool/zsh-bash
zsh-users/zaw
benclark/parallels-zsh-plugin
oz/safe-paste (works but has issues, the same on antigen)
willghatch/zsh-saneopt
willghatch/zsh-snippets (misses a bindkey, the same with antigen, otherwise works)
Tarrasch/zsh-colors
dbkaplun/smart-cd
skipped:
Stibbons/crayon-syntax-zsh (a wordpress plugin)
jsks/czhttpd (not a plugin, a software, a command)
Vifon/deer (not a plugin, provides manual installation instructions)

BIN
doc/img/m.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

BIN
doc/img/update.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -1,43 +0,0 @@
#!/bin/sh
#
# Clone or pull
#
ZPLG_HOME="${ZDOTDIR:-$HOME}/.zplugin"
if ! test -d "$ZPLG_HOME"; then
mkdir "$ZPLG_HOME"
chmod g-rwX "$ZPLG_HOME"
fi
echo ">>> Downloading zplugin to $ZPLG_HOME/bin"
if test -d "$ZPLG_HOME/bin/.git"; then
cd "$ZPLG_HOME/bin"
git pull origin master
else
cd "$ZPLG_HOME"
git clone https://github.com/psprint/zplugin.git bin
fi
echo ">>> Done"
#
# Modify .zshrc
#
if grep zplugin "$ZPLG_HOME/../.zshrc" >/dev/null 2>&1; then
echo ">>> .zshrc already updated, not making changes"
exit 0
fi
echo ">>> Updating .zshrc (3 lines of code, at the bottom)"
cat <<-EOF >> "$ZPLG_HOME/../.zshrc"
### Added by Zplugin's installer
source '$ZPLG_HOME/bin/zplugin.zsh'
autoload -Uz _zplugin
(( \${+_comps} )) && _comps[zplugin]=_zplugin
### End of Zplugin's installer chunk
EOF
echo ">>> Done"

1775
doc/zinit.1 Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,391 +0,0 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "README" "" "April 2016" "" ""
Zplugin gives \fBreports\fR from plugin load\. Plugins are no longer black boxes, report will tell what aliases, functions, bindkeys, Zle widgets, zstyles, completions, variables, \fBPATH\fR and \fBFPATH\fR elements a plugin has set up\. Supported is \fBunloading\fR of plugin and ability to list, uninstall, reinstall and selectively disable, enable plugin\'s completions\. Also, every plugin is compiled and user can control this function\. The system does not use \fB$FPATH\fR, it\'s kept clean!
.
.P
Code is immune to \fBKSH_ARRAYS\fR, \fBemulate sh\fR, \fBemulate ksh\fR, thoroughly tested to support any user setup, be as transparent as plain \fBsource\fR command\. Compdef replays functionality is provided to allow user call \fBcompinit\fR only once in \fB\.zshrc\fR\.
.
.P
.
.SH "Introduction"
.
.P
\fBExample use:\fR
.
.IP "" 4
.
.nf
% \. ~/github/zplugin/zplugin\.zsh
% zplugin load zsh\-users/zsh\-syntax\-highlighting
% zplugin load psprint/zsh\-cmd\-architect
.
.fi
.
.IP "" 0
.
.P
\fBExample plugin report:\fR
.
.IP "" 4
.
.nf
% zpl report psprint/zsh\-cmd\-architect
Plugin report for psprint/zsh\-cmd\-architect
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
Source zsh\-cmd\-architect\.plugin\.zsh
Autoload h\-list
Autoload h\-list\-input
Autoload h\-list\-draw
Autoload zca
Autoload zca\-usetty\-wrapper
Autoload zca\-widget
Zle \-N zca\-widget
Bindkey ^T zca\-widget
Functions created:
h\-list h\-list\-draw
h\-list\-input zca
zca\-usetty\-wrapper zca\-widget
Options changed:
autolist was unset
menucomplete was unset
PATH elements added:
/Users/sgniazdowski/github/zsh\-cmd\-architect/bin
FPATH elements added:
/Users/sgniazdowski/github/zsh\-cmd\-architect
Completions:
_xauth [disabled]
.
.fi
.
.IP "" 0
.
.P
.
.P
\fBExample plugin unload:\fR
.
.IP "" 4
.
.nf
% zpl unload psprint/zsh\-cmd\-architect
Deleting function h\-list
Deleting function h\-list\-draw
Deleting function h\-list\-input
Deleting function zca
Deleting function zca\-usetty\-wrapper
Deleting function zca\-widget
Deleting bindkey ^T zca\-widget
Setting option autolist
Setting option menucomplete
Removing PATH element /Users/sgniazdowski/github/zsh\-cmd\-architect/bin
Removing FPATH element /Users/sgniazdowski/github/zsh\-cmd\-architect
Unregistering plugin psprint/zsh\-cmd\-architect
Plugin\'s report saved to $LASTREPORT
.
.fi
.
.IP "" 0
.
.P
.
.P
\fBExample \fBcsearch\fR invocation (completion management):\fR
.
.IP "" 4
.
.nf
# zplg csearch
[+] is installed, [\-] uninstalled, [+\-] partially installed
[+] _local/zplugin _zplugin
[\-] benclark/parallels\-zsh\-plugin _parallels
[+] mollifier/cd\-gitroot _cd\-gitroot
[\-] or17191/going_places _favrm, _go
[\-] psprint/zsh\-cmd\-architect _xauth
[\-] psprint/zsh\-editing\-workbench _cp
[+] tevren/gitfast\-zsh\-plugin _git
.
.fi
.
.IP "" 0
.
.P
.
.P
\fBExample \fBcompile\fR invocation:\fR
.
.IP "" 4
.
.nf
# zplg compile zsh\-users/zsh\-syntax\-highlighting
Compiling zsh\-syntax\-highlighting\.plugin\.zsh\.\.\.
# zplg compiled
zsh\-users/zsh\-syntax\-highlighting:
zsh\-syntax\-highlighting\.plugin\.zsh\.zwc
# zplg uncompile zsh\-users/zsh\-syntax\-highlighting
Removing zsh\-syntax\-highlighting\.plugin\.zsh\.zwc
# zplg compiled
No compiled plugins
# zplg compile\-all
zsh\-users/zsh\-syntax\-highlighting
Compiling zsh\-syntax\-highlighting\.plugin\.zsh\.\.\.
.
.fi
.
.IP "" 0
.
.P
.
.P
\fBExample \fBcreate\fR invocation:\fR
.
.IP "" 4
.
.nf
% zplg create psprint/testplugin
Github user name or just "_local": psprint
Plugin name: testplugin2
Plugin is psprint/testplugin2
Creating Github repository
Enter host password for user \'psprint\':
Cloning into \'psprint\-\-\-testplugin2\'\.\.\.
warning: You appear to have cloned an empty repository\.
Checking connectivity\.\.\. done\.
Remote repository psprint/testplugin2 set up as origin
You\'re in plugin\'s local folder
The files aren\'t added to git
Your next step after commiting will be:
git push \-u origin master
% ls
\.git README\.md
LICENSE testplugin2\.plugin\.zsh
.
.fi
.
.IP "" 0
.
.P
.
.SH "Installation"
Execute:
.
.IP "" 4
.
.nf
sh \-c "$(curl \-fsSL https://raw\.githubusercontent\.com/psprint/zplugin/master/doc/install\.sh)"
.
.fi
.
.IP "" 0
.
.P
To update run the command again (or just execute \fBdoc/install\.sh\fR)\.
.
.P
\fBZplugin\fR will be installed into \fB~/\.zplugin/bin\fR\. \fB\.zshrc\fR will be updated with three lines of code that will be added to the bottom (the lines will be sourcing \fBzplugin\.zsh\fR and setting up completion)\.
.
.P
Completion will be available, for command \fBzplugin\fR and aliases \fBzpl\fR, \fBzplg\fR\.
.
.P
After installing and reloading shell give \fBZplugin\fR a quick try with \fBzplugin help\fR\.
.
.SH "Manual installation"
To manually install \fBZplugin\fR clone the repo to e\.g\. \fB~/\.zplugin/bin\fR:
.
.IP "" 4
.
.nf
mkdir ~/\.zplugin
git clone https://github\.com/psprint/zplugin\.git ~/\.zplugin/bin
.
.fi
.
.IP "" 0
.
.P
and source it from \fB\.zshrc\fR (\fBabove compinit\fR):
.
.IP "" 4
.
.nf
source ~/\.zplugin/bin/zplugin\.zsh
.
.fi
.
.IP "" 0
.
.P
If you place the \fBsource\fR below \fBcompinit\fR, then add those two lines after the \fBsource\fR: \fBsh autoload \-Uz _zplugin (( ${+_comps} )) && _comps[zplugin]=_zplugin\fR
.
.P
After installing and reloading shell give \fBZplugin\fR a quick try with \fBzplugin help\fR\.
.
.SS "Compilation"
It\'s good to compile \fBzplugin\fR into \fBZsh\fR bytecode:
.
.IP "" 4
.
.nf
zcompile ~/\.zplugin/bin/zplugin\.zsh
.
.fi
.
.IP "" 0
.
.P
Zplugin will compile each newly downloaded plugin\. You can clear compilation of a plugin by invoking \fBzplugin uncompile {plugin\-name}\fR\. There are also commands \fBcompile\fR, \fBcompile\-all\fR, \fBuncompile\-all\fR, \fBcompiled\fR that control the functionality of compiling plugins\.
.
.SH "Usage"
.
.nf
% zpl help
Usage:
\-h|\-\-help|help \- usage information
man \- manual
self\-update \- updates Zplugin
load {plugin\-name} \- load plugin
light {plugin\-name} \- light plugin load, without reporting
unload {plugin\-name} \- unload plugin
snippet [\-f] {url} \- source local or remote file (\-f: force \- don\'t use cache)
update {plugin\-name} \- update plugin (Git)
update\-all \- update all plugins (Git)
status {plugin\-name} \- status for plugin (Git)
status\-all \- status for all plugins (Git)
report {plugin\-name} \- show plugin\'s report
all\-reports \- show all plugin reports
loaded|list [keyword] \- show what plugins are loaded (filter with `keyword\')
cd {plugin\-name} \- cd into plugin\'s directory
create {plugin\-name} \- create plugin (also together with Github repository)
edit {plugin\-name} \- edit plugin\'s file with $EDITOR
glance {plugin\-name} \- look at plugin\'s source (pygmentize, {,source\-}highlight)
stress {plugin\-name} \- test plugin for compatibility with set of options
changes {plugin\-name} \- view plugin\'s git log
recently [time\-spec] \- show plugins that changed recently, argument is e\.g\. 1 month 2 days
clist|completions \- list completions in use
cdisable {cname} \- disable completion `cname\'
cenable {cname} \- enable completion `cname\'
creinstall {plugin\-name} \- install completions for plugin
cuninstall {plugin\-name} \- uninstall completions for plugin
csearch \- search for available completions from any plugin
compinit \- refresh installed completions
dtrace|dstart \- start tracking what\'s going on in session
dstop \- stop tracking what\'s going on in session
dunload \- revert changes recorded between dstart and dstop
dreport \- report what was going on in session
dclear \- clear report of what was going on in session
compile {plugin\-name} \- compile plugin
compile\-all \- compile all downloaded plugins
uncompile {plugin\-name} \- remove compiled version of plugin
uncompile\-all \- remove compiled versions of all downloaded plugins
compiled \- list plugins that are compiled
.
.fi
.
.P
To use themes created for \fBOh\-My\-Zsh\fR you might want to first source the \fBgit\fR library there:
.
.IP "" 4
.
.nf
zplugin snippet \'http://github\.com/robbyrussell/oh\-my\-zsh/raw/master/lib/git\.zsh\'
.
.fi
.
.IP "" 0
.
.P
Then you can use the themes either as plugins (\fBzplugin load {user/theme\-name}\fR) or as snippets (\fBzplugin snippet {file path or URL}\fR; plugin method recommended)\. Some themes require not only \fBOh\-My\-Zsh\'s\fR \fBgit\fR library, but also \fBgit\fR plugin (error about function \fBcurrent_branch\fR appears)\. Source it as snippet directly from \fBOh\-My\-Zsh\fR:
.
.IP "" 4
.
.nf
zplugin snippet \'https://github\.com/robbyrussell/oh\-my\-zsh/raw/master/plugins/git/git\.plugin\.zsh\'
.
.fi
.
.IP "" 0
.
.P
Such lines should be added to \fB\.zshrc\fR\. Snippets are cached locally, use \fB\-f\fR option to download a fresh version of a snippet\.
.
.P
Most themes require \fBpromptsubst\fR option (\fBsetopt promptsubst\fR in \fBzshrc\fR), if it isn\'t set prompt will appear as something like: \fB$(build_prompt)\fR\.
.
.SH "Clean \.zshrc With Compdef Replaying"
\fBZplugin\fR provides a feature which brings order into \fB\.zshrc\fR\. When to call \fBcompinit\fR? Some plugins require completion being in place, other update \fB$FPATH\fR and want \fBcompinit\fR to be called later\. \fBZplugin\fR is like a pre\-initialized completion for the first type of plugins\. They will thus work without real \fBcompinit\fR in place\. You should call \fBcompinit\fR only once after loading all plugins, in following way:
.
.IP "" 4
.
.nf
source ~/\.zplugin/bin/zplugin\.zsh
zplugin load "some/plugin"
\.\.\.
zplugin load "other/plugin"
autoload \-Uz compinit
compinit
zplugin cdreplay \-q # \-q is for quiet
.
.fi
.
.IP "" 0
.
.P
Performance gains are huge, example shell startup time with double \fBcompinit\fR: \fB0\.980\fR sec, with \fBcdreplay\fR and single \fBcompinit\fR: \fB0\.156\fR sec\.
.
.SS "Ignoring Compdefs"
If you want to ignore compdefs provided by some plugins or snippets, place their load commands before commands loading other plugins or snippets, and issue \fBzplugin cdclear\fR:
.
.IP "" 4
.
.nf
source ~/\.zplugin/bin/zplugin\.zsh
zplugin snippet https://github\.com/robbyrussell/oh\-my\-zsh/blob/master/plugins/git/git\.plugin\.zsh
zplugin cdclear # <\- forget completions provided up to this moment
zplugin load "some/plugin"
\.\.\.
zplugin load "other/plugin"
autoload \-Uz compinit
compinit
zplugin cdreplay \-q # <\- execute compdefs provided by rest of plugins
zplugin cdlist # look at gathered compdefs
.
.fi
.
.IP "" 0
.
.SH "Non\-Github (local) plugins"
Use \fBcreate\fR command with user name \fB_local\fR (the default) to create plugin\'s skeleton\. It will be not connected with Github repository (because of user name being \fB_local\fR)\. To enter the plugin\'s directory use \fBcd\fR command with just plugin\'s name (without \fB_local\fR)\.
.
.P
The special user name \fB_local\fR is optional also for other commands, e\.g\. for \fBload\fR (i\.e\. \fBzplugin load myplugin\fR is sufficient, there\'s no need for \fBzplugin load _local/myplugin\fR)\.
.
.SH "IRC channel"
Simply connect to chat\.freenode\.net:6697 \fIircs://chat\.freenode\.net:6697/%23zplugin\fR (SSL) or chat\.freenode\.net:6667 \fIirc://chat\.freenode\.net:6667/%23zplugin\fR and join #zplugin\.
.
.P
Following is a quick access via Webchat \fIhttps://kiwiirc\.com/client/chat\.freenode\.net:+6697/#zplugin\fR

57
doc/zsdoc/Makefile Normal file
View file

@ -0,0 +1,57 @@
# 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.
all: man pdf
# MANUALS
# Converted with a2x from asciidoc package
man: man/zinit.zsh.1 man/zinit-side.zsh.1 man/zinit-install.zsh.1 man/zinit-autoload.zsh.1
man/zinit.zsh.1:
@mkdir -p man
a2x --verbose -L --doctype manpage --format manpage -D man zinit.zsh.adoc
man/zinit-side.zsh.1:
@mkdir -p man
a2x --verbose -L --doctype manpage --format manpage -D man zinit-side.zsh.adoc
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
# 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
clean:
rm -rf man pdf data
.PHONY: man pdf clean
# vim:noet:sts=8:ts=8

22
doc/zsdoc/README.md Normal file
View file

@ -0,0 +1,22 @@
# Code documentation
Here is `Asciidoc` code documentation generated using [Zshelldoc](https://github.com/zdharma-continuum/zshelldoc). There
are `4` Zinit's source files, the main one is [zinit.zsh](zinit.zsh.adoc). The documentation lists all functions,
interactions between them, their comments and features used.
Github allows to directly view `Asciidoc` documents:
- [zinit.zsh](zinit.zsh.adoc) always loaded, in `.zshrc`
([pdf](https://zdharma-continuum.github.io/zinit/wiki/zinit.zsh))
- [zinit-side.zsh](zinit-side.zsh.adoc) common functions, loaded by `*-install` and `*-autoload` scripts
([pdf](https://zdharma-continuum.github.io/zinit/wiki/zinit-side.zsh))
- [zinit-install.zsh](zinit-install.zsh.adoc) functions used only when installing a plugin or snippet
([pdf](https://zdharma-continuum.github.io/zinit/wiki/zinit-install.zsh))
- [zinit-autoload.zsh](zinit-autoload.zsh.adoc) functions used only in interactive `Zinit` invocations
([pdf](https://zdharma-continuum.github.io/zinit/wiki/zinit-autoload.zsh/))
# PDFs, man pages, etc.
Formats other than `Asciidoc` can be produced by using provided Makefile. For example, issuing `make pdf` will create
and populate a new directory `pdf` (requires `asciidoctor`, install with `gem install asciidoctor-pdf --pre`).
`make man` will create man pages (requires package `asciidoc`, uses its command `a2x`, which is quite slow).

View file

@ -0,0 +1,185 @@
NAME
zinit-additional.zsh - a shell script
Documentation automatically generated with `zshelldoc'
== FUNCTIONS
+zinit-debug
.zinit-debug-clear
.zinit-debug-report
.zinit-debug-revert
.zinit-debug-start
.zinit-debug-status
.zinit-debug-stop
.zinit-service
.zinit-wrap-track-functions
:zinit-tmp-subst-source
=== DETAILS
==== 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-debug
____
Debug command entry point
____
Has 35 line(s). Doesn't call other functions.
Uses feature(s): _setopt_, _zmodload_, _zparseopts_
Called by:
zinit.zsh/zinit
==== .zinit-debug-clear
____
Clear latest debug report
____
Has 7 line(s). Calls functions:
.zinit-debug-clear
|-- zinit-autoload.zsh/.zinit-clear-report-for
`-- zinit.zsh/+zi-log
Called by:
zinit-autoload.zsh/.zinit-unload
==== .zinit-debug-report
____
Displays debug report (data recorded in interactive session).
____
Has 6 line(s). Calls functions:
.zinit-debug-report
|-- zinit-autoload.zsh/.zinit-show-report
`-- zinit.zsh/+zi-log
Uses feature(s): _source_
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== .zinit-debug-revert
____
Revert changes made during debug mode
____
Has 7 line(s). Calls functions:
.zinit-debug-revert
|-- zinit-autoload.zsh/.zinit-unload
`-- zinit.zsh/+zi-log
Uses feature(s): _source_
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== .zinit-debug-start
____
Start debug mode
____
Has 13 line(s). Calls functions:
.zinit-debug-start
|-- zinit.zsh/+zi-log
|-- zinit.zsh/.zinit-diff
`-- zinit.zsh/.zinit-tmp-subst-on
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== .zinit-debug-status
____
Revert changes made during debug mode
____
Has 2 line(s). Calls functions:
.zinit-debug-status
`-- zinit.zsh/+zi-log
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== .zinit-debug-stop
____
Stop debug mode
____
Has 14 line(s). Calls functions:
.zinit-debug-stop
|-- zinit.zsh/+zi-log
|-- zinit.zsh/.zinit-diff
`-- zinit.zsh/.zinit-tmp-subst-off
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== .zinit-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'')
____
Has 37 line(s). Calls functions:
.zinit-service
|-- zinit.zsh/.zinit-load
`-- zinit.zsh/.zinit-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
Has 19 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-tmp-subst-source
Has 25 line(s). Calls functions:
:zinit-tmp-subst-source
`-- zinit.zsh/+zi-log
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

View file

@ -0,0 +1,854 @@
NAME
zinit-install.zsh - a shell script
Documentation automatically generated with `zshelldoc'
== FUNCTIONS
+zinit-cmake-hook
.zi::get-architecture
.zinit-at-eval
.zinit-compinit
.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
__zinit-cmake-base-hook
zicp
ziextract
zimv
∞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-file-cp-mv-operation
∞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
AUTOLOAD compinit
=== DETAILS
==== Script Body
Has 6 line(s). No functions are called (may set up e.g. a hook, a Zle widget bound to a key, etc.).
Uses feature(s): _source_
==== +zinit-cmake-hook
Has 1 line(s). Calls functions:
+zinit-cmake-hook
`-- __zinit-cmake-base-hook
`-- zinit.zsh/+zi-log
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== .zi::get-architecture
Has 39 line(s). Calls functions:
.zi::get-architecture
`-- zinit.zsh/+zi-log
Uses feature(s): _setopt_
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== .zinit-at-eval
Has 9 line(s). Calls functions:
.zinit-at-eval
`-- zinit.zsh/@zinit-substitute
Uses feature(s): _eval_
Called by:
∞zinit-atpull-e-hook
∞zinit-atpull-hook
==== .zinit-compinit
____
User-exposed `compinit' frontend which first ensures that all
completions managed by Zinit are forgotten by Zshell. After
that it runs normal `compinit', which should more easily detect
Zinit's completions.
No arguments.
____
Has 26 line(s). Calls functions:
.zinit-compinit
|-- .zinit-forget-completion
|-- compinit
`-- zinit.zsh/+zi-log
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
zinit.zsh/zinit
==== .zinit-download-file-stdout
____
Downloads file to stdout. Supports following backend commands:
curl, wget, lftp, lynx. Used by snippet loading.
____
Has 59 line(s). Calls functions:
.zinit-download-file-stdout
`-- zinit.zsh/+zi-log
Uses feature(s): _setopt_, _trap_, _type_
Called by:
.zinit-download-snippet
.zinit-get-cygwin-package
.zinit-get-package
.zinit-setup-plugin-dir
==== .zinit-download-snippet
____
Downloads snippet
file with curl, wget, lftp or lynx,
directory, with Subversion when svn-ICE is active.
Github supports Subversion protocol and allows to clone subdirectories.
This is used to provide a layer of support for Oh-My-Zsh and Prezto.
____
Has 377 line(s). Calls functions:
.zinit-download-snippet
|-- .zinit-download-file-stdout
|   `-- zinit.zsh/+zi-log
|-- .zinit-get-url-mtime
|-- .zinit-install-completions
|   |-- .zinit-compinit
|   |   |-- .zinit-forget-completion
|   |   |-- compinit
|   |   `-- zinit.zsh/+zi-log
|   |-- .zinit-forget-completion
|   |-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
|   |-- zinit-side.zsh/.zinit-exists-physically-message
|   |-- zinit.zsh/+zi-log
|   `-- zinit.zsh/.zinit-any-to-user-plugin
|-- .zinit-mirror-using-svn
|   `-- zinit.zsh/.zinit-cd-quiet
|-- zinit-side.zsh/.zinit-store-ices
|-- zinit.zsh/+zi-log
|-- zinit.zsh/.zinit-cd-quiet
`-- zinit.zsh/is-at-least
Uses feature(s): _is-at-least_, _setopt_, _trap_, _zcompile_
Called by:
.zinit-update-snippet
zinit.zsh/.zinit-load-snippet
==== .zinit-extract
Has 30 line(s). Calls functions:
.zinit-extract
|-- ziextract
|   `-- zinit.zsh/+zi-log
`-- zinit.zsh/+zi-log
Uses feature(s): _setopt_
Called by:
∞zinit-extract-hook
==== .zinit-forget-completion
____
Implements alternation of Zsh state so that already initialized
completion stops being visible to Zsh.
$1 - completion function name, e.g. "_cp"; can also be "cp"
____
Has 20 line(s). Doesn't call other functions.
Uses feature(s): _setopt_, _unfunction_
Called by:
.zinit-compinit
.zinit-install-completions
zinit-autoload.zsh/.zinit-uninstall-completions
zinit.zsh/zinit
==== .zinit-get-cygwin-package
Has 70 line(s). Calls functions:
.zinit-get-cygwin-package
|-- .zinit-download-file-stdout
|   `-- zinit.zsh/+zi-log
`-- zinit.zsh/+zi-log
Uses feature(s): _setopt_
Called by:
.zinit-setup-plugin-dir
==== .zinit-get-latest-gh-r-url-part
____
Gets version string of latest release of given Github
package. Connects to Github releases page.
____
Has 66 line(s). Calls functions:
.zinit-get-latest-gh-r-url-part
`-- zinit.zsh/+zi-log
Uses feature(s): _setopt_
Called by:
.zinit-setup-plugin-dir
zinit-autoload.zsh/.zinit-update-or-status
==== .zinit-get-package
Has 197 line(s). Calls functions:
.zinit-get-package
|-- .zinit-download-file-stdout
|   `-- zinit.zsh/+zi-log
|-- .zinit-jq-check
|   `-- zinit.zsh/+zi-log
|-- .zinit-json-to-array
|   `-- .zinit-jq-check
|   `-- zinit.zsh/+zi-log
|-- ziextract
|   `-- zinit.zsh/+zi-log
|-- zinit.zsh/+zi-log
`-- zinit.zsh/@zinit-substitute
Uses feature(s): _eval_, _setopt_, _trap_
Called by:
zinit.zsh/.zinit-load
==== .zinit-get-url-mtime
____
For the given URL returns the date in the Last-Modified
header as a time stamp
____
Has 35 line(s). Doesn't call other functions.
Uses feature(s): _read_, _setopt_, _trap_, _type_
Called by:
.zinit-download-snippet
==== .zinit-install-completions
____
Installs all completions of given plugin. After that they are visible to
'compinit'. Visible completions can be selectively disabled and enabled. User
can access completion data with 'completions' subcommand.
$1 - plugin spec (4 formats: user---plugin, user/plugin, user, plugin)
$2 - plugin if $1 (i.e., user) given
$3 - if 1, then reinstall, otherwise only install completions that are not present
____
Has 62 line(s). Calls functions:
.zinit-install-completions
|-- .zinit-compinit
|   |-- .zinit-forget-completion
|   |-- compinit
|   `-- zinit.zsh/+zi-log
|-- .zinit-forget-completion
|-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
|-- zinit-side.zsh/.zinit-exists-physically-message
|-- zinit.zsh/+zi-log
`-- zinit.zsh/.zinit-any-to-user-plugin
Uses feature(s): _setopt_
Called by:
.zinit-download-snippet
.zinit-setup-plugin-dir
zinit.zsh/zinit
==== .zinit-jq-check
____
Check if jq is available and outputs an error message with instructions if
that's not the case
____
Has 8 line(s). Calls functions:
.zinit-jq-check
`-- zinit.zsh/+zi-log
Called by:
.zinit-get-package
.zinit-json-get-value
.zinit-json-to-array
==== .zinit-json-get-value
____
Wrapper around jq that return the value of a property
$1: JSON structure
$2: jq path
____
Has 4 line(s). Calls functions:
.zinit-json-get-value
`-- .zinit-jq-check
`-- zinit.zsh/+zi-log
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== .zinit-json-to-array
____
Wrapper around jq that sets key/values of an associative array, replicating
the structure of a given JSON object
$1: JSON structure
$2: jq path
$3: name of the associative array to store the key/value pairs in
____
Has 13 line(s). Calls functions:
.zinit-json-to-array
`-- .zinit-jq-check
`-- zinit.zsh/+zi-log
Uses feature(s): _eval_, _setopt_
Called by:
.zinit-get-package
==== .zinit-mirror-using-svn
____
Used to clone subdirectories from Github. If in update mode
(see $2), then invokes `svn update', in normal mode invokes
`svn checkout --non-interactive -q <URL>'. In test mode only
compares remote and local revision and outputs true if update
is needed.
$1 - URL
$2 - mode, "" - normal, "-u" - update, "-t" - test
$3 - subdirectory (not path) with working copy, needed for -t and -u
____
Has 29 line(s). Calls functions:
.zinit-mirror-using-svn
`-- zinit.zsh/.zinit-cd-quiet
Uses feature(s): _setopt_
Called by:
.zinit-download-snippet
==== .zinit-setup-plugin-dir
____
Clones given plugin into PLUGIN_DIR. Supports multiple
sites (respecting `from' and `proto' ice modifiers).
Invokes compilation of plugin's main file.
$1 - user
$2 - plugin
____
Has 222 line(s). Calls functions:
.zinit-setup-plugin-dir
|-- .zinit-download-file-stdout
|   `-- zinit.zsh/+zi-log
|-- .zinit-get-cygwin-package
|   |-- .zinit-download-file-stdout
|   |   `-- zinit.zsh/+zi-log
|   `-- zinit.zsh/+zi-log
|-- .zinit-get-latest-gh-r-url-part
|   `-- zinit.zsh/+zi-log
|-- .zinit-install-completions
|   |-- .zinit-compinit
|   |   |-- .zinit-forget-completion
|   |   |-- compinit
|   |   `-- zinit.zsh/+zi-log
|   |-- .zinit-forget-completion
|   |-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
|   |-- zinit-side.zsh/.zinit-exists-physically-message
|   |-- zinit.zsh/+zi-log
|   `-- zinit.zsh/.zinit-any-to-user-plugin
|-- ziextract
|   `-- zinit.zsh/+zi-log
|-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
|-- zinit-side.zsh/.zinit-store-ices
|-- zinit.zsh/+zi-log
|-- zinit.zsh/.zinit-cd-quiet
`-- zinit.zsh/.zinit-get-object-path
Uses feature(s): _setopt_, _trap_
Called by:
zinit-autoload.zsh/.zinit-update-or-status
zinit.zsh/.zinit-load
==== .zinit-single-line
____
Display cURL progress bar on a single line
____
Has 20 line(s). Doesn't call other functions.
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
Has 76 line(s). Calls functions:
.zinit-update-snippet
|-- .zinit-download-snippet
|   |-- .zinit-download-file-stdout
|   |   `-- zinit.zsh/+zi-log
|   |-- .zinit-get-url-mtime
|   |-- .zinit-install-completions
|   |   |-- .zinit-compinit
|   |   |   |-- .zinit-forget-completion
|   |   |   |-- compinit
|   |   |   `-- zinit.zsh/+zi-log
|   |   |-- .zinit-forget-completion
|   |   |-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
|   |   |-- zinit-side.zsh/.zinit-exists-physically-message
|   |   |-- zinit.zsh/+zi-log
|   |   `-- zinit.zsh/.zinit-any-to-user-plugin
|   |-- .zinit-mirror-using-svn
|   |   `-- zinit.zsh/.zinit-cd-quiet
|   |-- zinit-side.zsh/.zinit-store-ices
|   |-- zinit.zsh/+zi-log
|   |-- zinit.zsh/.zinit-cd-quiet
|   `-- zinit.zsh/is-at-least
|-- zinit.zsh/+zi-log
|-- zinit.zsh/.zinit-get-object-path
`-- zinit.zsh/.zinit-pack-ice
Uses feature(s): _eval_, _setopt_
Called by:
zinit-autoload.zsh/.zinit-update-or-status-snippet
==== __zinit-cmake-base-hook
____
FUNCTION: __zinit-cmake-base-hook [[[
A base common implementation of the cmake ice
____
Has 23 line(s). Calls functions:
__zinit-cmake-base-hook
`-- zinit.zsh/+zi-log
Uses feature(s): _eval_, _setopt_
Called by:
+zinit-cmake-hook
==== zicp
Has 30 line(s). Doesn't call other functions.
Uses feature(s): _setopt_
Called by:
zimv
==== ziextract
____
If the file is an archive, it is extracted by this function.
Executable permissions are determined solely by the execute bit already
stored in the archive — i.e. whatever the package author intended.
No heuristics (file(1), shebang scanning, etc.) are applied.
$1 - url
$2 - file
____
Has 284 line(s). Calls functions:
ziextract
`-- zinit.zsh/+zi-log
Uses feature(s): _setopt_, _unfunction_, _zparseopts_
Called by:
.zinit-extract
.zinit-get-package
.zinit-setup-plugin-dir
==== zimv
Has 3 line(s). Calls functions:
zimv
`-- zicp
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== ∞zinit-atclone-hook
Has 22 line(s). Calls functions:
∞zinit-atclone-hook
|-- zinit-side.zsh/.zinit-countdown
|-- zinit.zsh/.zinit-cd-quiet
|-- zinit.zsh/.zinit-restore-dir
`-- zinit.zsh/@zinit-substitute
Uses feature(s): _eval_
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== ∞zinit-atpull-e-hook
Has 20 line(s). Calls functions:
∞zinit-atpull-e-hook
|-- .zinit-at-eval
|   `-- zinit.zsh/@zinit-substitute
|-- zinit-side.zsh/.zinit-countdown
|-- zinit.zsh/.zinit-cd-quiet
`-- zinit.zsh/.zinit-restore-dir
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== ∞zinit-atpull-hook
Has 20 line(s). Calls functions:
∞zinit-atpull-hook
|-- .zinit-at-eval
|   `-- zinit.zsh/@zinit-substitute
|-- zinit-side.zsh/.zinit-countdown
|-- zinit.zsh/.zinit-cd-quiet
`-- zinit.zsh/.zinit-restore-dir
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== ∞zinit-compile-plugin-hook
Has 20 line(s). Calls functions:
∞zinit-compile-plugin-hook
`-- zinit-autoload.zsh/.zinit-compile-plugin
Uses feature(s): _setopt_, _source_
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== ∞zinit-configure-base-hook
____
A base common implementation of the configure ice
____
Has 49 line(s). Calls functions:
∞zinit-configure-base-hook
|-- zinit.zsh/+zi-log
|-- zinit.zsh/.zinit-cd-quiet
|-- zinit.zsh/.zinit-restore-dir
`-- zinit.zsh/@zinit-substitute
Uses feature(s): _eval_, _setopt_
Called by:
∞zinit-configure-e-hook
∞zinit-configure-hook
==== ∞zinit-configure-e-hook
Has 1 line(s). Calls functions:
∞zinit-configure-e-hook
`-- ∞zinit-configure-base-hook
|-- zinit.zsh/+zi-log
|-- zinit.zsh/.zinit-cd-quiet
|-- zinit.zsh/.zinit-restore-dir
`-- zinit.zsh/@zinit-substitute
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== ∞zinit-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:
∞zinit-configure-hook
`-- ∞zinit-configure-base-hook
|-- zinit.zsh/+zi-log
|-- zinit.zsh/.zinit-cd-quiet
|-- zinit.zsh/.zinit-restore-dir
`-- zinit.zsh/@zinit-substitute
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== ∞zinit-cp-hook
Has 1 line(s). Calls functions:
∞zinit-cp-hook
`-- ∞zinit-file-cp-mv-operation
|-- zinit.zsh/+zi-log
|-- zinit.zsh/.zinit-cd-quiet
`-- zinit.zsh/@zinit-substitute
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== ∞zinit-extract-hook
Has 10 line(s). Calls functions:
∞zinit-extract-hook
|-- .zinit-extract
|   |-- ziextract
|   |   `-- zinit.zsh/+zi-log
|   `-- zinit.zsh/+zi-log
`-- zinit.zsh/@zinit-substitute
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== ∞zinit-file-cp-mv-operation
Has 49 line(s). Calls functions:
∞zinit-file-cp-mv-operation
|-- zinit.zsh/+zi-log
|-- zinit.zsh/.zinit-cd-quiet
`-- zinit.zsh/@zinit-substitute
Called by:
∞zinit-cp-hook
∞zinit-mv-hook
==== ∞zinit-make-base-hook
____
A base common implementation of the make ice
____
Has 57 line(s). Calls functions:
∞zinit-make-base-hook
|-- zinit.zsh/+zi-log
`-- zinit.zsh/@zinit-substitute
Uses feature(s): _eval_, _setopt_
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.zsh/+zi-log
`-- 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.zsh/+zi-log
`-- zinit.zsh/@zinit-substitute
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== ∞zinit-make-hook
Has 1 line(s). Calls functions:
∞zinit-make-hook
`-- ∞zinit-make-base-hook
|-- zinit.zsh/+zi-log
`-- zinit.zsh/@zinit-substitute
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== ∞zinit-mv-hook
Has 1 line(s). Calls functions:
∞zinit-mv-hook
`-- ∞zinit-file-cp-mv-operation
|-- zinit.zsh/+zi-log
|-- zinit.zsh/.zinit-cd-quiet
`-- zinit.zsh/@zinit-substitute
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== ∞zinit-ps-on-update-hook
Has 18 line(s). Calls functions:
∞zinit-ps-on-update-hook
`-- zinit.zsh/+zi-log
Uses feature(s): _eval_
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== ∞zinit-reset-hook
Has 79 line(s). Calls functions:
∞zinit-reset-hook
`-- zinit.zsh/+zi-log
Uses feature(s): _eval_
Not called by script or any function (may be e.g. a hook, a Zle widget, etc.).
==== compinit
____
Initialisation for new style completion. This mainly contains some helper
functions and setup. Everything else is split into different files that
will automatically be made autoloaded (see the end of this file). The
names of the files that will be considered for autoloading are those that
begin with an underscores (like `_condition).
The first line of each of these files is read and must indicate what
should be done with its contents:
`#compdef <names ...>'
____
Has 573 line(s). Doesn't call other functions.
Uses feature(s): _autoload_, _bindkey_, _compdef_, _compdump_, _eval_, _read_, _setopt_, _unfunction_, _zle_, _zstyle_
Called by:
.zinit-compinit

View file

@ -0,0 +1,285 @@
NAME
zinit-side.zsh - a shell script
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
=== DETAILS
==== 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
____
Returns ANSI-colorified "user/plugin" string, from any supported
plugin spec (user---plugin, user/plugin, user plugin, plugin).
$1 - plugin spec (4 formats: user---plugin, user/plugin, user, plugin)
$2 - plugin (only when $1 - i.e. user - given)
$REPLY - ANSI-colorified "user/plugin" string
____
Has 22 line(s). Calls functions:
.zinit-any-colorify-as-uspl2
|-- zinit.zsh/.zinit-any-to-pid
`-- zinit.zsh/.zinit-any-to-user-plugin
Called by:
.zinit-exists-physically-message
zinit-autoload.zsh/.zinit-clear-completions
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-times
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
==== .zinit-compute-ice
____
Computes ICE array
- input
- static
- saved
taking priorities into account.
Can also pack resulting ices into ZINIT_SICE (see $2).
Returns filepath to snippet directory and optional snippet file name (only
valid if ICE[svn] is not set).
$1 - URL (also plugin-spec)
$2 - "pack" or "nopack" or "pack-nf" - packing means ICE
wins with static ice; "pack-nf" means that disk-ices will
be ignored (no-file?)
$3 - name of output associative array, "ICE" is the default
$4 - name of output string parameter, to hold path to directory ("local_dir")
$5 - name of output string parameter, to hold filename ("filename")
$6 - name of output string parameter, to hold is-snippet 0/1-bool ("is_snippet")
$REPLY - snippet directory filepath
____
Has 110 line(s). Calls functions:
.zinit-compute-ice
|-- .zinit-exists-physically-message
|   |-- .zinit-any-colorify-as-uspl2
|   |   |-- zinit.zsh/.zinit-any-to-pid
|   |   `-- zinit.zsh/.zinit-any-to-user-plugin
|   |-- .zinit-exists-physically
|   |   `-- zinit.zsh/.zinit-any-to-user-plugin
|   |-- zinit.zsh/+zi-log
|   |-- zinit.zsh/.zinit-any-to-pid
|   `-- zinit.zsh/.zinit-any-to-user-plugin
|-- .zinit-two-paths
|   |-- .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
|   `-- zinit.zsh/.zinit-get-object-path
|-- zinit.zsh/.zinit-any-to-user-plugin
`-- zinit.zsh/.zinit-pack-ice
Uses feature(s): _setopt_
Called by:
zinit-autoload.zsh/.zinit-compile-plugin
zinit-autoload.zsh/.zinit-edit
zinit-autoload.zsh/.zinit-recall
zinit-autoload.zsh/.zinit-uncompile-plugin
zinit-autoload.zsh/.zinit-update-or-status-snippet
zinit-autoload.zsh/.zinit-update-or-status
==== .zinit-countdown
____
Displays a countdown 5...4... etc.
$REPLY - 1 if Ctrl-C is pressed, otherwise 0
____
Has 20 line(s). Calls functions:
.zinit-countdown
`-- zinit.zsh/+zi-log
Uses feature(s): _trap_
Called by:
zinit-install.zsh/∞zinit-atclone-hook
zinit-install.zsh/∞zinit-atpull-e-hook
zinit-install.zsh/∞zinit-atpull-hook
==== .zinit-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)
____
Has 8 line(s). Calls functions:
.zinit-exists-physically
`-- zinit.zsh/.zinit-any-to-user-plugin
Called by:
.zinit-exists-physically-message
zinit-autoload.zsh/.zinit-create
zinit-autoload.zsh/.zinit-update-or-status
==== .zinit-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)
____
Has 25 line(s). Calls functions:
.zinit-exists-physically-message
|-- .zinit-any-colorify-as-uspl2
|   |-- zinit.zsh/.zinit-any-to-pid
|   `-- zinit.zsh/.zinit-any-to-user-plugin
|-- .zinit-exists-physically
|   `-- zinit.zsh/.zinit-any-to-user-plugin
|-- zinit.zsh/+zi-log
|-- zinit.zsh/.zinit-any-to-pid
`-- zinit.zsh/.zinit-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
==== .zinit-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.
$1 - plugin spec (4 formats: user---plugin, user/plugin, user, plugin)
$2 - plugin (only when $1 - i.e. user - given)
____
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
Called by:
.zinit-two-paths
zinit-autoload.zsh/.zinit-compile-plugin
zinit-autoload.zsh/.zinit-glance
zinit-autoload.zsh/.zinit-stress
==== .zinit-store-ices
____
Saves ice mods in given hash onto disk.
$1 - directory where to create or delete files
$2 - name of hash that holds values
$3 - additional keys of hash to store, space separated
$4 - additional keys of hash to store, empty-meaningful ices, space separated
$5 URL, if applicable
$6 mode, svn=1, 0=single file
____
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-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
____
Has 24 line(s). Calls functions:
.zinit-two-paths
|-- .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
`-- zinit.zsh/.zinit-get-object-path
Uses feature(s): _setopt_
Called by:
.zinit-compute-ice
zinit-autoload.zsh/.zinit-update-or-status

2126
doc/zsdoc/zinit.zsh.adoc Normal file

File diff suppressed because it is too large Load diff

41
docker/Dockerfile Normal file
View file

@ -0,0 +1,41 @@
ARG VERSION=latest
FROM alpine:${VERSION}
ARG PUSERNAME=user01
ARG PUID=1000
ARG PGID=1000
ARG TERM=xterm-256color
ARG ZINIT_ZSH_VERSION
ENV PUSERNAME=${PUSERNAME} PUID=${PUID} PGID=${PGID} \
SHELL=/bin/zsh TERM=${TERM} ZINIT_ZSH_VERSION=${ZINIT_ZSH_VERSION}
RUN apk --no-cache --virtual base add \
coreutils curl git libuser rsync sudo zsh && \
apk --no-cache --virtual zsh-build-tools add \
autoconf bash build-base ncurses-dev && \
apk --no-cache --virtual dev-tools add \
go jq nodejs-dev npm ruby-dev neovim
RUN sed -ir 's#^(root:.+):/bin/ash#\1:/bin/zsh#' /etc/passwd && \
adduser -D -s /bin/zsh -u "${PUID}" -h "/home/${PUSERNAME}" \
"${PUSERNAME}" && \
printf "${PUSERNAME} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/user && \
mkdir -p /src /data /data-static && \
chown -R "${PUID}:${PGID}" /data /data-static && \
ln -sfv /src/docker/zshenv /home/${PUSERNAME}/.zshenv && \
ln -sfv /src/docker/zshrc /home/${PUSERNAME}/.zshrc
WORKDIR /home/${PUSERNAME}
VOLUME ["/src", "/data"]
COPY --chown=${PUSERNAME} . /src
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'
CMD ["/bin/zsh"]

26
docker/init.zsh Normal file
View file

@ -0,0 +1,26 @@
# Fix permissions on /data
if [[ -z "$QUIET" ]]
then
echo "Setting owner of /data to ${PUID}:${PGID}" >&2
fi
sudo chown "${PUID}:${PGID}" /data
sudo chown -R "${PUID}:${PGID}" /data
# sync files between /data-static and /data
if [[ -z "$NOTHING_FANCY" ]]
then
if [[ -z "$QUIET" ]]
then
echo "Copying files from /data-static to /data" >&2
fi
rsync -raq /data-static/ /data
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

69
docker/utils.zsh Normal file
View file

@ -0,0 +1,69 @@
#!/usr/bin/env zsh
zinit::setup() {
source /src/zinit.zsh
}
zinit::reload() {
local zf
for zf in /src/*.zsh
do
source "$zf"
done
}
zinit::setup-keys() {
zinit snippet OMZL::key-bindings.zsh
}
zinit::setup-annexes() {
zinit light-mode compile'*handler' for \
zdharma-continuum/zinit-annex-bin-gem-node \
zdharma-continuum/zinit-annex-default-ice \
zdharma-continuum/zinit-annex-meta-plugins \
zdharma-continuum/zinit-annex-patch-dl \
zdharma-continuum/zinit-annex-readurl \
zdharma-continuum/zinit-annex-rust \
zdharma-continuum/zinit-annex-submods \
zdharma-continuum/zinit-annex-unscope
}
zinit::setup-annexes-extra() {
# Dependencies
sudo apk add ruby-dev grep tree
zinit::install-zshelldoc
zinit light-mode compile'*handler' for \
zdharma-continuum/zinit-annex-man \
zdharma-continuum/zinit-annex-test
}
zinit::install-zshelldoc() {
zinit light-mode \
make"PREFIX=$ZPFX install" \
for zdharma-continuum/zshelldoc
}
zinit::setup-minimal() {
zinit wait lucid light-mode for \
atinit"zicompinit; zicdreplay" \
zdharma-continuum/fast-syntax-highlighting \
atload"_zsh_autosuggest_start" \
zsh-users/zsh-autosuggestions \
blockf atpull'zinit creinstall -q .' \
zsh-users/zsh-completions
}
zinit::pack-zsh() {
local version="$1"
zinit pack"$version" for zsh
}
# 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

21
docker/zshenv Normal file
View file

@ -0,0 +1,21 @@
# Make sure TERM is set
# Without a TERM value some ices might be ignored
# https://github.com/zdharma-continuum/zinit/issues/97
export TERM=${TERM:-xterm-256color}
# Set SHELL
export SHELL=${SHELL:-${commands[zsh]}}
typeset -Ag ZINIT
# ZINIT_HOME_DIR is used at build time to force the installation of plugins
# etc to /data-static
export ZINIT[HOME_DIR]=${ZINIT_HOME_DIR:-/data}
export ZINIT[BIN_DIR]=/src
# 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

41
docker/zshrc Normal file
View file

@ -0,0 +1,41 @@
# 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
# load zinit
source /src/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

39
docker/zshrc-fancy Normal file
View file

@ -0,0 +1,39 @@
[[ -n "$NOTHING_FANCY" ]] && return
# Annexes
zinit::setup-annexes
# Setup keys
zinit::setup-keys
# Aliases
alias ls="ls --color=auto"
alias vim="nvim"
alias re-init="source /init.zsh"
# History
HISTFILE=${HOME}/.local/share/zsh/history
HISTSIZE=1000
SAVEHIST=1000
setopt extended_history
setopt hist_expire_dups_first
setopt hist_ignore_dups
setopt hist_ignore_space
setopt hist_verify
setopt share_history
mkdir -p ${HISTFILE:A:h}
# Completions
autoload -Uz compinit
compinit
zinit cdreplay -q
# 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

81
scripts/docker-build.sh Executable file
View file

@ -0,0 +1,81 @@
#!/usr/bin/env bash
build() {
cd "$(
cd "$(dirname "$0")" > /dev/null 2>&1
pwd -P
)" || exit 9
local image_name="${1:-zinit}"
local tag="${2:-latest}"
local zsh_version="${3}"
shift 3
local dockerfile="../docker/Dockerfile"
if [[ -n $zsh_version ]]; then
tag="zsh${zsh_version}-${tag}"
fi
echo -e "\e[34mBuilding image: ${image_name}\e[0m" >&2
local -a args
[[ -n $NO_CACHE ]] && args+=(--no-cache "$@")
if docker build \
--build-arg "PUSERNAME=$(id -u -n)" \
--build-arg "PUID=$(id -u)" \
--build-arg "PGID=$(id -g)" \
--build-arg "TERM=${TERM:-xterm-256color}" \
--build-arg "ZINIT_ZSH_VERSION=${zsh_version}" \
--file "$dockerfile" \
--tag "${image_name}:${tag}" \
"${args[@]}" \
"$(realpath ..)"; then
{
echo -e "\e[34mTo use this image for zunit tests run: \e[0m"
echo -e "\e[34mexport CONTAINER_IMAGE=\"${image_name}\" CONTAINER_TAG=\"${tag}\"\e[0m"
echo -e "\e[34mzunit run --verbose\e[0m"
} >&2
else
echo -e "\e[31m❌ Container failed to build.\e[0m" >&2
return 1
fi
}
if [[ ${BASH_SOURCE[0]} == "${0}" ]]; then
BUILD_ZSH_VERSION="${BUILD_ZSH_VERSION:-}"
CONTAINER_IMAGE="${CONTAINER_IMAGE:-ghcr.io/zdharma-continuum/zinit}"
CONTAINER_TAG="${CONTAINER_TAG:-latest}"
NO_CACHE="${NO_CACHE:-}"
while [[ -n $* ]]; do
case "$1" in
--image | -i)
CONTAINER_IMAGE="$2"
shift 2
;;
--no-cache | -N)
NO_CACHE=1
shift
;;
--zsh-version | -zv | --zv)
BUILD_ZSH_VERSION="${2}"
shift 2
;;
*)
break
;;
esac
done
build "${CONTAINER_IMAGE}" "${CONTAINER_TAG}" "${BUILD_ZSH_VERSION}" "$@"
fi
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=bash sw=2 ts=2 et

260
scripts/docker-run.sh Executable file
View file

@ -0,0 +1,260 @@
#!/usr/bin/env bash
parent_process() {
local ppid pcmd
ppid="$(ps -o ppid= -p "$$" | awk '{ print $1 }')"
if [[ -z $ppid ]]; then
echo "Failed to determine parent process" >&2
return 1
fi
if pcmd="$(ps -o cmd= -p "$ppid")"; then
echo "$pcmd"
return
fi
return 1
}
running_interactively() {
if [[ -n $CI ]]; then
return 1
fi
if ! [[ -t 1 ]]; then
# return false if running non-interactively, unless run with zunit
parent_process | grep -q zunit
fi
}
create_init_config_file() {
local tempfile
if [[ -z $* ]]; then
return 1
fi
tempfile="$(mktemp)"
echo "$*" > "$tempfile"
# DIRTYFIX perms...
chmod 666 "$tempfile"
echo "$tempfile"
}
run() {
local image="${CONTAINER_IMAGE:-ghcr.io/zdharma-continuum/zinit}"
local tag="${CONTAINER_TAG:-latest}"
local init_config="$1"
shift
local -a args=(--rm)
local cruntime=docker
local sudo_cmd
if [[ -z $CI ]] && command -v podman > /dev/null 2>&1; then
cruntime=podman
# rootless containers are a PITA
# https://www.tutorialworks.com/podman-rootless-volumes/
sudo_cmd=sudo
fi
if running_interactively; then
args+=(--tty=true --interactive=true)
fi
if [[ -n $init_config ]]; then
if [[ -r $init_config ]]; then
args+=(--volume "${init_config}:/init.zsh")
else
echo "❌ Init config file is not readable" >&2
return 1
fi
fi
if [[ -n $CONTAINER_WORKDIR ]]; then
args+=(--workdir "$CONTAINER_WORKDIR")
fi
# Inherit TERM
if [[ -n $TERM ]]; then
args+=(--env "TERM=${TERM}")
fi
if [[ -n ${CONTAINER_ENV[*]} ]]; then
local e
for e in "${CONTAINER_ENV[@]}"; do
args+=(--env "${e}")
done
fi
if [[ -n ${CONTAINER_VOLUMES[*]} ]]; then
local vol
for vol in "${CONTAINER_VOLUMES[@]}"; do
# shellcheck disable=2076
if [[ ! " ${args[*]} " =~ " --volume ${vol} " ]]; then
args+=(--volume "${vol}")
fi
done
fi
local -a cmd=("$@")
if [[ -n $WRAP_CMD ]]; then
local zsh_opts="ilsc"
[[ -n $ZSH_DEBUG ]] && zsh_opts="x${zsh_opts}"
cmd=(zsh "-${zsh_opts}" "${cmd[*]}")
fi
if [[ -n $DEBUG ]]; then
{
# The @Q below is necessary to keep the quotes intact
# https://stackoverflow.com/a/12985353/1872036
echo -e "🚀 \e[35mRunning command"
echo -e "\$ ${cruntime} run ${args[*]} ${image}:${tag} ${cmd[*]@Q}\e[0m"
} >&2
fi
${sudo_cmd} "${cruntime}" run "${args[@]}" "${image}:${tag}" "${cmd[@]}"
}
if [[ ${BASH_SOURCE[0]} == "${0}" ]]; then
CONTAINER_ENV=()
CONTAINER_IMAGE="${CONTAINER_IMAGE:-ghcr.io/zdharma-continuum/zinit}"
CONTAINER_TAG="${CONTAINER_TAG:-latest}"
CONTAINER_VOLUMES=()
CONTAINER_WORKDIR="${CONTAINER_WORKDIR:-}"
DEBUG="${DEBUG:-}"
INIT_CONFIG_VAL="${INIT_CONFIG_VAL:-}"
PRESET="${PRESET:-}"
WRAP_CMD="${WRAP_CMD:-}"
ZSH_DEBUG="${ZSH_DEBUG:-}"
while [[ -n $* ]]; do
case "$1" in
# Fetch init config from clipboard (Linux only)
--xsel | -b)
INIT_CONFIG_VAL="$(xsel -b)"
shift
;;
-c | --config | --init-config | --init)
INIT_CONFIG_VAL="$2"
shift 2
;;
-f | --config-file | --init-config-file | --file)
if ! [[ -r $2 ]]; then
echo "Unable to read from file: $2" >&2
exit 2
fi
INIT_CONFIG_VAL="$(cat "$2")"
shift 2
;;
-d | --debug)
DEBUG=1
shift
;;
-D | --dev | --devel)
DEVEL=1
shift
;;
--docs)
PRESET=docs
shift
;;
-i | --image)
CONTAINER_IMAGE="$2"
shift 2
;;
-t | --tag)
CONTAINER_TAG="$2"
shift 2
;;
# Additional container env vars
-e | --env | --environment)
CONTAINER_ENV+=("$2")
shift 2
;;
# Additional container volumes
-v | --volume)
CONTAINER_VOLUMES+=("$2")
shift 2
;;
# Whether to wrap the command in zsh -silc
-w | --wrap)
WRAP_CMD=1
shift
;;
--tests | --zunit | -z)
PRESET=zunit
shift
;;
# Whether to enable debug tracing of zinit (zsh -x)
# Only applies to wrapped commands (--w|--wrap)
--zsh-debug | -x | -Z)
ZSH_DEBUG=1
shift
;;
*)
break
;;
esac
done
GIT_ROOT_DIR="$(git rev-parse --show-toplevel)"
CMD=("$@")
case "$PRESET" in
zunit)
# Mount root of the repo to /src
# Mount /tmp/zunit-zinit to /data
CONTAINER_VOLUMES+=(
"${GIT_ROOT_DIR}:/src"
"${TMPDIR:-/tmp}/zunit-zinit:/data"
)
CONTAINER_ENV+=(
"QUIET=1"
"NOTHING_FANCY=1"
)
;;
docs)
# Mount root of the repo to /src
CONTAINER_VOLUMES+=(
"${GIT_ROOT_DIR}:/src"
)
CONTAINER_ENV+=(
"QUIET=1"
"NOTHING_FANCY=1"
"LC_ALL=en_US.UTF-8"
)
CONTAINER_WORKDIR=/src
# shellcheck disable=2016
INIT_CONFIG_VAL='zinit nocompile make'\''prefix=$ZPFX all install'\'' for zdharma-continuum/zshelldoc'
# shellcheck disable=2016
CMD=(zsh -ilsc
'sudo chown -R "$(id -u):$(id -g)" /src &&
@zinit-scheduler burst &&
sudo apk add tree &&
make -C /src doc')
;;
esac
if INIT_CONFIG="$(create_init_config_file "$INIT_CONFIG_VAL")"; then
trap 'rm -vf $INIT_CONFIG' EXIT INT
fi
if [[ -n $DEVEL ]]; then
# Mount root of the repo to /src
CONTAINER_VOLUMES+=(
"${GIT_ROOT_DIR}:/src"
)
fi
run "$INIT_CONFIG" "${CMD[@]}"
fi
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=bash sw=2 ts=2 et

333
scripts/install.sh Executable file
View file

@ -0,0 +1,333 @@
#!/usr/bin/env bash
{ # Colors
COLOR_RESET=''
COLOR_BOLD_RED=''
COLOR_BOLD_GREEN=''
COLOR_BOLD_YELLOW=''
COLOR_BOLD_BLUE=''
COLOR_BOLD_MAGENTA=''
COLOR_BOLD_CYAN=''
# The over-the-top fancy ones
COLOR_PALE_MAGENTA=''
COLOR_BOLD_WHITE_ON_BLACK=''
}
echo_fancy() {
emoji="$1"
color="$2"
shift 2
msg=""
# prepend emoji, unless NO_EMOJI is set
if [ -z "$NO_EMOJI" ]; then
msg="$emoji"
fi
# wrap every word in color (needed in case there are custom colors in
# the message itself), unless NO_COLOR is set
for str in "$@"; do
# FIXME: NO_COLOR only applies if there are no colors in the msg
if [ -z "$NO_COLOR" ]; then
msg="${msg}${color}"
fi
msg="${msg}${str}"
done
# Actual output
echo "${msg}${COLOR_RESET}" >&2
# fake "local" vars
unset emoji color str msg
}
echo_info() {
echo_fancy "🔵" "${COLOR_BOLD_BLUE}" "INFO: ${*}"
}
echo_success() {
echo_fancy "✅" "${COLOR_BOLD_GREEN}" "SUCCESS: ${*}"
}
echo_warning() {
echo_fancy "🚧" "${COLOR_BOLD_YELLOW}" "WARNING: ${*}"
}
echo_error() {
echo_fancy "❌" "${COLOR_BOLD_RED}" "ERROR: ${*}"
}
check_dependencies() {
zsh_min_version=5.8
if ! zsh -sfc \
'autoload is-at-least;
is-at-least $1 $ZSH_VERSION' "$zsh_min_version"; then
echo_warning "ZSH version 5.5+ is recommended for zinit." \
"It'll still work, but be warned."
fi
if ! command -v git > /dev/null 2>&1; then
echo_error "${COLOR_BOLD_GREEN}git${COLOR_RESET} is not installed"
exit 1
fi
unset zsh_min_version
}
show_environment() {
echo_info "About to setup zinit from $ZINIT_REPO" \
"(branch: $ZINIT_BRANCH - commit: ${ZINIT_COMMIT:-N/A})" \
"to ${ZINIT_INSTALL_DIR}"
}
create_zinit_home() {
if ! test -d "${ZINIT_HOME}"; then
mkdir -p "${ZINIT_HOME}"
chmod g-w "${ZINIT_HOME}"
chmod o-w "${ZINIT_HOME}"
fi
}
create_zinit_tmpdir() {
# use -d instead of --directory for macos (BSD) compatibility
ZINIT_TMPDIR="$(mktemp -d)"
if [ ! -d "$ZINIT_TMPDIR" ]; then
echo_error "Tempdir creation failed. This ain't good"
exit 1
fi
trap 'rm -rvf "$ZINIT_TMPDIR"' EXIT INT
}
# Get the download-progress bar tool
download_git_output_processor() {
url="https://raw.githubusercontent.com/${ZINIT_REPO}/${ZINIT_COMMIT:-${ZINIT_BRANCH}}/share/git-process-output.zsh"
script_path="${ZINIT_TMPDIR}/git-process-output.zsh"
echo_info "Fetching git-process-output.zsh from $url"
if command -v curl > /dev/null 2>&1; then
curl -fsSL -o "$script_path" "$url"
elif command -v wget > /dev/null 2>&1; then
wget -q -O "$script_path" "$url"
fi
# shellcheck disable=2181
if [ "$?" -eq 0 ]; then
chmod a+x "$script_path" 2> /dev/null
echo_success 'Download finished!'
else
echo_warning "Download failed."
fi
unset url script_path
}
zinit_git_exec() {
command git -C "${ZINIT_INSTALL_DIR}" "$@"
}
zinit_checkout_ref() {
ref="${ZINIT_BRANCH}"
git_obj_type="branch"
if [ -n "$ZINIT_COMMIT" ]; then
ref="$ZINIT_COMMIT"
git_obj_type="commit"
fi
if zinit_git_exec checkout "$ref" > /dev/null 2>&1; then
echo_success "Checked out $git_obj_type $ref"
else
echo_error "Failed to check out $git_obj_type $ref"
fi
unset ref git_obj_type
}
zinit_current_version() {
zinit_git_exec describe --tags 2> /dev/null
}
zinit_update() {
cd "${ZINIT_INSTALL_DIR}" || {
echo_error "Failed to cd to ${ZINIT_INSTALL_DIR}"
exit 1
}
echo_info "Updating ${COLOR_BOLD_CYAN}zinit${COLOR_RESET} in" \
"in ${COLOR_BOLD_MAGENTA}${ZINIT_INSTALL_DIR}"
{ # Clean up repo
zinit_git_exec clean -d -f -f
zinit_git_exec reset --hard HEAD
} > /dev/null 2>&1
# fetch our branch (to ensure the target commit exists locally)
zinit_git_exec fetch origin "$ZINIT_BRANCH"
zinit_checkout_ref
if zinit_git_exec pull origin "$ZINIT_BRANCH"; then
echo_success "Updated zinit to $(zinit_current_version)"
fi
}
zinit_install() {
cd "${ZINIT_HOME}" || {
echo_error "Failed to cd to ${ZINIT_HOME}"
exit 1
}
echo_info "Installing ${COLOR_BOLD_CYAN}zinit${COLOR_RESET} to " \
"${COLOR_BOLD_MAGENTA}${ZINIT_INSTALL_DIR}"
{
command git clone --progress --branch "$ZINIT_BRANCH" \
"https://github.com/${ZINIT_REPO}" \
"${ZINIT_REPO_DIR_NAME}" 2>&1 | {
"${ZINIT_TMPDIR}/git-process-output.zsh" || cat
}
} 2> /dev/null
zinit_checkout_ref
if [ -d "${ZINIT_REPO_DIR_NAME}" ]; then
echo_success "Zinit succesfully installed to " \
"${COLOR_BOLD_GREEN}${ZINIT_INSTALL_DIR}"
echo_info "Zinit Version: ${COLOR_BOLD_GREEN}$(zinit_current_version)"
else
echo_error "Failed to install Zinit to ${COLOR_BOLD_YELLOW}${ZINIT_INSTALL_DIR}"
fi
}
# Modify .zshrc
edit_zshrc() {
rc_update=1
if grep -E '(zinit|zplugin)\.zsh' "${ZSHRC}" > /dev/null 2>&1; then
echo_warning "${ZSHRC} already contains zinit commands. Not making any changes."
rc_update=0
fi
if [ $rc_update -eq 1 ]; then
echo_info "Updating ${ZSHRC} (10 lines of code, at the bottom)"
zinit_home_escaped=${ZINIT_HOME//$HOME/\$HOME}
command cat <<- EOF >> "$ZSHRC"
### Added by Zinit's installer
if [[ ! -f ${zinit_home_escaped}/${ZINIT_REPO_DIR_NAME}/zinit.zsh ]]; then
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}${ZINIT_REPO}%F{220})…%f"
command mkdir -p "${zinit_home_escaped}" && command chmod g-rwX "${zinit_home_escaped}"
command git clone https://github.com/${ZINIT_REPO} "${zinit_home_escaped}/${ZINIT_REPO_DIR_NAME}" && \\
print -P "%F{33} %F{34}Installation successful.%f%b" || \\
print -P "%F{160} The clone has failed.%f%b"
fi
source "${zinit_home_escaped}/${ZINIT_REPO_DIR_NAME}/zinit.zsh"
autoload -Uz _zinit
(( \${+_comps} )) && _comps[zinit]=_zinit
EOF
fi
unset rc_update zinit_home_escaped
}
query_for_annexes() {
zshrc_annex_file="$(mktemp)"
command cat <<- EOF >> "$zshrc_annex_file"
# Load a few important annexes, without Turbo
# (this is currently required for annexes)
zinit light-mode for \\
zdharma-continuum/zinit-annex-as-monitor \\
zdharma-continuum/zinit-annex-bin-gem-node \\
zdharma-continuum/zinit-annex-patch-dl \\
zdharma-continuum/zinit-annex-rust
EOF
# Ask user if we should add the annexes to their zshrc
# If NO_INPUT is set, but NO_ANNEXES is the annexes bit gets appended to the
# config (ie. default to yes if NO_INPUT, unless NO_ANNEXES)
reply=n
if [ -n "$NO_INPUT" ]; then
[ -z "$NO_ANNEXES" ] && reply=y
else
echo "${COLOR_PALE_MAGENTA}${COLOR_RESET} Would you like to add 4 useful plugins" \
"- the most useful annexes (Zinit extensions that add new" \
"functions-features to the plugin manager) to the zshrc as well?" \
"It will be the following snippet:"
command cat "$zshrc_annex_file"
# shellcheck disable=2059
printf "${COLOR_PALE_MAGENTA}${COLOR_RESET} Enter y/n and press Return: "
read -r reply
fi
if [ "$reply" = y ] || [ "$reply" = Y ]; then
command cat "$zshrc_annex_file" >> "$ZSHRC"
echo_info "Installing annexes"
zsh -ic "@zinit-scheduler burst"
echo_success 'Done!'
else
echo_warning "Skipped the annexes."
fi
command cat <<- EOF >> "$ZSHRC"
### End of Zinit's installer chunk
EOF
unset reply zshrc_annex_file
}
display_tutorial() {
command cat <<- EOF
🌻 ${COLOR_BOLD_WHITE_ON_BLACK}Welcome!${COLOR_RESET}
Now to get started you can check out the following:
- The ${COLOR_BOLD_WHITE_ON_BLACK}README${COLOR_RESET} section on the ice-modifiers:
🧊 https://github.com/${ZINIT_REPO}#ice-modifiers
- There's also an ${COLOR_BOLD_WHITE_ON_BLACK}introduction${COLOR_RESET} to Zinit on the wiki:
📚 https://zdharma-continuum.github.io/zinit/wiki/INTRODUCTION/
- The ${COLOR_BOLD_WHITE_ON_BLACK}For-Syntax${COLOR_RESET} article on the wiki, which highlights some best practices:
📖 https://zdharma-continuum.github.io/zinit/wiki/For-Syntax/
💁 Need help?
- 💬 Get in touch with us on Gitter: https://gitter.im/zdharma-continuum
- 🔖 Or on GitHub: https://github.com/zdharma-continuum
EOF
}
# Globals. Can be overridden.
ZINIT_REPO="${ZINIT_REPO:-zdharma-continuum/zinit}"
ZINIT_BRANCH="${ZINIT_BRANCH:-main}"
ZINIT_COMMIT="${ZINIT_COMMIT:-}" # no default value
ZINIT_HOME="${ZINIT_HOME:-${XDG_DATA_HOME:-${HOME}/.local/share}/zinit}"
ZINIT_REPO_DIR_NAME="${ZINIT_REPO_DIR_NAME:-zinit.git}"
ZINIT_INSTALL_DIR=${ZINIT_INSTALL_DIR:-${ZINIT_HOME}/${ZINIT_REPO_DIR_NAME}}
ZSHRC="${ZSHRC:-${ZDOTDIR:-${HOME}}/.zshrc}"
show_environment
check_dependencies
create_zinit_home
create_zinit_tmpdir
download_git_output_processor
if [ -d "${ZINIT_INSTALL_DIR}/.git" ]; then
zinit_update
ZINIT_UPDATE=1
else
zinit_install
fi
if [ -z "$NO_EDIT" ]; then
edit_zshrc
[ -z "$ZINIT_UPDATE" ] && query_for_annexes
fi
if [ -z "$NO_TUTORIAL" ]; then
display_tutorial
fi
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=bash sw=2 ts=2 et

186
share/git-process-output.zsh Executable file
View file

@ -0,0 +1,186 @@
#!/usr/bin/env zsh
#
# Copyright (c) 2016-2020 Sebastian Gniazdowski and contributors
# Copyright (c) 2021-2022 zdharma-continuum and contributors
emulate -LR zsh
setopt typesetsilent extendedglob warncreateglobal
{ typeset -g COLS="$(tput cols)" } 2>/dev/null
if (( COLS < 10 )); then
COLS=40
fi
# Credit to molovo/revolver for the ideas
progress_frames='0.1 ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏'
integer -g cur_frame=1
typeset -F SECONDS=0 last_time=0
# Alpine Linux doesn't have tput; FreeBSD and Dragonfly BSD have termcap
if whence tput &> /dev/null; then
if [[ $OSTYPE == freebsd* ]] || [[ $OSTYPE == dragonfly* ]]; then
# termcap commands
ZINIT_CNORM='tput ve'
ZINIT_CIVIS='tput vi'
else
# terminfo is more common
ZINIT_CNORM='tput cnorm'
ZINIT_CIVIS='tput civis'
fi
fi
if (( $+ZINIT_CNORM )); then
trap $ZINIT_CNORM EXIT INT TERM
fi
local first=1
# Code by leoj3n
timeline() {
local sp='▚▞'; sp="${sp:$2%2:1}"
# Maximal width is 24 characters
local bar="$(print -f "%.$2s█%0$(($3-$2-1))s" "████████████████████████" "")"
local -a frames_splitted
frames_splitted=( ${(@zQ)progress_frames} )
if (( SECONDS - last_time >= frames_splitted[1] )); then
(( cur_frame = (cur_frame+1) % (${#frames_splitted}+1-1) ))
(( cur_frame = cur_frame ? cur_frame : 1 ))
last_time=$SECONDS
fi
print -nr -- ${frames_splitted[cur_frame+1]}" "
print -nPr "%F{183}"
print -f "%s %s" "${bar// /░}" ""
print -nPr "%f"
}
# $1 - n. of objects
# $2 - packed objects
# $3 - total objects
# $4 - receiving percentage
# $5 - resolving percentage
print_my_line() {
local col="%F{155}" col3="%F{155}" col4="%F{155}" col5="%F{155}"
[[ -n "${4#...}" && -z "${5#...}" ]] && col3="%F{81}"
[[ -n "${5#...}" ]] && col4="%F{81}"
if (( COLS >= 70 )); then
print -Pnr -- "${col}OBJ%f: $1, ${col}PACK%f: $2/$3${${4:#...}:+, ${col3}REC%f: $4%}${${5:#...}:+, ${col4}RES%f: $5%} "
elif (( COLS >= 60 )); then
print -Pnr -- "${col}OBJ%f: $1, ${${4:#...}:+, ${col3}REC%f: $4%}${${5:#...}:+, ${col4}RES%f: $5%} "
else
print -Pnr -- "${${4:#...}:+, ${col3}REC%f: $4%}${${5:#...}:+, ${col4}RES%f: $5%} "
fi
print -n $'\015'
}
print_my_line_compress() {
local col="%F{155}" col3="%F{155}" col4="%F{155}" col5="%F{155}"
[[ -n "${4#...}" && -z "${5#...}" && -z "${6#...}" ]] && col3="%F{81}"
[[ -n "${5#...}" && -z "${6#...}" ]] && col4="%F{81}"
[[ -n "${6#...}" ]] && col5="%F{81}"
if (( COLS >= 80 )); then
print -Pnr -- "${col}OBJ%f: $1, ${col}PACK%f: $2/$3, ${col3}COMPR%f: $4%%${${5:#...}:+, ${col4}REC%f: $5%%}${${6:#...}:+, ${col5}RES%f: $6%%} "
elif (( COLS >= 65 )); then
print -Pnr -- "${col}OBJ%f: $1, ${col3}COMPR%f: $4%%${${5:#...}:+, ${col4}REC%f: $5%%}${${6:#...}:+, ${col5}RES%f: $6%%} "
else
print -Pnr -- "${col}OBJ%f: $1, ${${5:#...}:+, ${col4}REC%f: $5%%}${${6:#...}:+, ${col5}RES%f: $6%%} "
fi
print -n $'\015'
}
integer have_1_counting=0 have_2_total=0 have_3_receiving=0 have_4_deltas=0 have_5_compress=0
integer counting_1=0 total_2=0 total_packed_2=0 receiving_3=0 deltas_4=0 compress_5=0
integer loop_count=0
IFS=''
[[ $+ZINIT_CIVIS == 1 && -n $TERM ]] && eval $ZINIT_CIVIS
if [[ -n $TERM ]]; then
{ command perl -pe 'BEGIN { $|++; $/ = \1 }; tr/\r/\n/' || gstdbuf -o0 gtr '\r' '\n' || cat } |& while read -r line; do
(( ++ loop_count ))
if [[ "$line" = "Cloning into"* ]]; then
print $line
continue
elif [[ "$line" = (#i)*user*name* || "$line" = (#i)*password* ]]; then
print $line
continue
elif [[ "$line" = remote:*~*(Counting|Total|Compressing|Enumerating)* || "$line" = fatal:* ]]; then
print $line
continue
fi
if [[ "$line" = (#b)"remote: Counting objects:"[\ ]#([0-9]##)(*) ]]; then
have_1_counting=1
counting_1="${match[1]}"
fi
if [[ "$line" = (#b)"remote: Enumerating objects:"[\ ]#([0-9]##)(*) ]]; then
have_1_counting=1
counting_1="${match[1]}"
fi
if [[ "$line" = (#b)*"remote: Total"[\ ]#([0-9]##)*"pack-reused"[\ ]#([0-9]##)* ]]; then
have_2_total=1
total_2="${match[1]}" total_packed_2="${match[2]}"
fi
if [[ "$line" = (#b)"Receiving objects:"[\ ]#([0-9]##)%([[:blank:]]#\(([0-9]##)/([0-9]##)\)|)* ]]; then
have_3_receiving=1
receiving_3="${match[1]}"
if [[ -n "${match[2]}" ]]; then
have_2_total=1
total_packed_2="${match[3]}" total_2="${match[4]}"
fi
fi
if [[ "$line" = (#b)"Resolving deltas:"[\ ]#([0-9]##)%* ]]; then
have_4_deltas=1
deltas_4="${match[1]}"
fi
if [[ "$line" = (#b)"remote: Compressing objects:"[\ ]#([0-9]##)"%"(*) ]]; then
have_5_compress=1
compress_5="${match[1]}"
fi
if (( loop_count >= 2 )); then
integer pr
(( pr = have_4_deltas ? deltas_4 / 10 : ( have_3_receiving ? receiving_3 / 10 : ( have_5_compress ? compress_5 / 10 : ((( loop_count - 1 )/14 ) % 10) + 1 )) ))
timeline "" $pr 11
if (( have_5_compress )); then
print_my_line_compress "${${${(M)have_1_counting:#1}:+$counting_1}:-...}" \
"${${${(M)have_2_total:#1}:+$total_packed_2}:-0}" \
"${${${(M)have_2_total:#1}:+$total_2}:-0}" \
"${${${(M)have_5_compress:#1}:+$compress_5}:-...}" \
"${${${(M)have_3_receiving:#1}:+$receiving_3}:-...}" \
"${${${(M)have_4_deltas:#1}:+$deltas_4}:-...}"
else
print_my_line "${${${(M)have_1_counting:#1}:+$counting_1}:-...}" \
"${${${(M)have_2_total:#1}:+$total_packed_2}:-0}" \
"${${${(M)have_2_total:#1}:+$total_2}:-0}" \
"${${${(M)have_3_receiving:#1}:+$receiving_3}:-...}" \
"${${${(M)have_4_deltas:#1}:+$deltas_4}:-...}"
fi
fi
done
else
grep fatal:
fi
print
[[ $+ZINIT_CNORM == 1 && -n $TERM ]] && eval $ZINIT_CNORM
unset ZINIT_CNORM ZINIT_CIVIS
# 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

64
share/rpm2cpio.zsh Executable file
View file

@ -0,0 +1,64 @@
#!/usr/bin/env zsh
#
# -*- mode: sh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
#
# Copyright (c) 2016-2020 Sebastian Gniazdowski and contributors
# Copyright (c) 2021-2022 zdharma-continuum and contributors
emulate -R zsh -o extendedglob
local pkg=$1
if [[ -z $pkg || ! -e $pkg ]]; then
print -u2 -Pr "%F{160}rpm2cpio.sh%f: no package supplied"
exit 1
fi
local leadsize=96
local o=$(( $leadsize + 8 ))
set -- ${(s: :)$(od -j $o -N 8 -t u1 $pkg)}
local i=$(( 256 * ( 256 * ( 256 * $2 + $3 ) + $4 ) + $5 ))
local d=$(( 256 * ( 256 * ( 256 * $6 + $7 ) + $8 ) + $9 ))
sigsize=$(( 8 + 16 * $i + $d ))
o=$(( $o + $sigsize + ( 8 - ( $sigsize % 8 ) ) % 8 + 8 ))
set -- ${(s: :)$(od -j $o -N 8 -t u1 $pkg)}
i=$(( 256 * ( 256 * ( 256 * $2 + $3 ) + $4 ) + $5 ))
d=$(( 256 * ( 256 * ( 256 * $6 + $7 ) + $8 ) + $9 ))
local hdrsize=$(( 8 + 16 * $i + $d ))
o=$(( $o + $hdrsize ))
local -a UNPACKCMD
UNPACKCMD=( dd if=$pkg ibs=$o skip=1 )
local COMPRESSION="$($=UNPACKCMD | file -)"
local -a DECOMPRESSCMD
if [[ $COMPRESSION == (#i)*gzip* ]]; then
DECOMPRESSCMD=( gunzip )
elif [[ $COMPRESSION == (#i)*bzip2* ]]; then
DECOMPRESSCMD=( bunzip2 )
elif [[ $COMPRESSION == (#i)*xz* ]]; then
DECOMPRESSCMD=( unxz )
elif [[ $COMPRESSION == (#i)*cpio* ]]; then
DECOMPRESSCMD=( cat )
else
DECOMPRESSCMD=( $(which unlzma 2>/dev/null) )
if [[ $DECOMPRESSCMD != /* ]]; then
DECOMPRESSCMD=( $(which lzmash 2>/dev/null) )
if [[ $DECOMPRESSCMD == /* ]]; then
DECOMPRESSCMD=( lzmash -d -c )
else
DECOMPRESSCMD=( cat )
fi
fi
fi
command "$UNPACKCMD[@]" 2>/dev/null | command "$DECOMPRESSCMD[@]"
# 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

View file

@ -0,0 +1,45 @@
#!/usr/bin/env zsh
#
# Copyright (c) YEAR USER_NAME
# An example of type-agnostic script/function, i.e.: the file can be run as a +x
# script or as an autoload function.
# Set the base and typically useful options
emulate -LR zsh
setopt extendedglob warncreateglobal typesetsilent noshortloops rcquotes noautopushd
# Run as script? ZSH_SCRIPT is a Zsh 5.3 addition
if [[ $0 != template-script || -n $ZSH_SCRIPT ]]; then
# Handle $0 according to the Zsh Plugin Standard:
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
0=${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}
0=${${(M)0##/*}:-$PWD/$0}
# Such global variable is expected to be typeset'd -g in the plugin.zsh
# file. Here it's restored in case of the function being run as a script.
typeset -gA Plugins
Plugins[MY_PLUGIN_DIR]=${0:h}
# In case of the script using other scripts from the plugin, either set up
# $fpath and autoload, or add the directory to $PATH.
fpath+=( $Plugins[MY_PLUGIN_DIR] )
autoload …
# OR
path+=( $Plugins[MY_PLUGIN_DIR] )
fi
# The script/function contents possibly using $Plugins[MY_PLUGIN_DIR] …
# …
# Use alternate marks [[[ and ]]] as the original ones can confuse nested
# substitutions, e.g.: ${${${VAR}}}
# 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 foldmarker=[[[,]]] foldmethod=marker

View file

@ -0,0 +1,28 @@
# Zsh compiled script + zrecompile backup
*.zwc
*.zwc.old
# Zsh completion-optimization dumpfile
*zcompdump*
# Zsh zcalc history
.zcalc_history
# A popular plugin manager's files
._zinit
.zinit_lastupd
# zdharma/zshelldoc tool's files
zsdoc/data
# ohmyzsh/ohmyzsh/plugins/per-directory-history plugin's files
# (when set-up to store the history in the local directory)
.directory_history
# MichaelAquilina/zsh-autoswitch-virtualenv plugin's files
# (for Zsh plugins using Python)
.venv
# Zunit tests' output
/tests/_output/*
!/tests/_output/.gitkeep

47
share/zsh.ctags Normal file
View file

@ -0,0 +1,47 @@
#
# Language: Zsh
#
--langdef=zsh
--langmap=zsh:.zsh
#
# 1. Detect variables
# 2. … and function names.
#
--kinddef-zsh=v,var,variables
--kinddef-zsh=f,fun,functions
--_tabledef-zsh=main
--_tabledef-zsh=vardef
--_tabledef-zsh=comment
--_tabledef-zsh=equal
# Feature: Zsh variable detection
--_mtable-regex-zsh=main/^\s*(local|typeset|declare|integer|float|readonly)\s+(-\w+\s+)*///{tenter=vardef}
# Feature: Zsh function name detection
--_mtable-regex-zsh=main/^\s*(function\s+|)([[:alnum:]:@∞.+-]+)\(\s*\)\s*([\{]|[\n]+[\{])/\2/f/
--_mtable-regex-zsh=main/^\s*[\#][^\n]*///{tenter=comment}
--_mtable-regex-zsh=main/.//
--_mtable-regex-zsh=comment/[\n]///{tleave}
--_mtable-regex-zsh=comment/.//
--_mtable-regex-zsh=equal/([\"][^\"]*[\"])///{exclusive}{tleave}
--_mtable-regex-zsh=equal/([\'][^\']*[\'])///{exclusive}{tleave}
--_mtable-regex-zsh=equal/([\$][\(][\(])([^\)][^\)])*([^\)]){0,1}([\)][\)])///{exclusive}{tleave}
--_mtable-regex-zsh=equal/([\$][\(])([^\)]*)([\)])///{exclusive}{tleave}
--_mtable-regex-zsh=equal/([\(])([^\)]*)([\)])///{exclusive}{tleave}
# Try to match sequences of ${…}\w${…}…
--_mtable-regex-zsh=equal/([\$][\{])((([^\}]*[\}][^\s][\$][\{])*[^\}]*)|[^\}]*)([\}])///{exclusive}{tleave}
--_mtable-regex-zsh=equal/[^\s\n]+///{exclusive}{tleave}{_advanceTo=0start} 
--_mtable-regex-zsh=equal/[\n\s]///{exclusive}{tleave}{_advanceTo=0start}
# Match with required ="…
--_mtable-regex-zsh=vardef/([a-zA-Z_]\w*)([\=])/\1/v/{exclusive}{tenter=equal}
--_mtable-regex-zsh=vardef/([a-zA-Z_]\w*)/\1/v/{exclusive}
--_mtable-regex-zsh=vardef/[\x5C][\n]///{exclusive}
--_mtable-regex-zsh=vardef/([\n;\}\)\|\&])///{tleave}{exclusive}
--_mtable-regex-zsh=vardef/^\s*[\#][^\n]*///{tenter=comment}{exclusive}
--_mtable-regex-zsh=vardef/.//

View file

@ -1,48 +0,0 @@
#!/usr/bin/env zsh
echo "Test plugin loading"
bindkey -v
alias aa=bb
REPO_DIR="${0%/*}"
CONFIG_DIR="$HOME/.config/zew"
bindkey -N testmap main
bindkey -M testmap -s "^[t" "echo test1"
bindkey -s "^[y" "echo test2"
# 10. Break line
if [[ "$MC_SID" != "" || "$MC_CONTROL_PID" != "" ]]; then
bindkey "^J" accept-line
else
bindkey "^J" self-insert
fi
# 11. Undo
bindkey "^_" undo
alias aaa2=bbb
alias -s gif=iv
alias -g LLL="|less"
[[ -n ${-[(r)9]} ]] && echo "Initially it's -9 (auto_list) set" || echo "Initially it's -9 (auto_list) unset"
setopt +9
[[ -n ${-[(r)w]} ]] && echo "Initially it's -w (chase_links) set" || echo "Initially it's -w (chase_links) unset"
setopt -w
[[ -o "menucomplete" ]] && echo "Initially it's menucomplete set" || echo "Initially it's menucomplete unset"
setopt menucomplete
[[ -o "listtypes" ]] && echo "Initially it's listtypes set" || echo "Initially it's listtypes unset"
[[ -o "listpacked" ]] && echo "Initially it's listpacked set" || echo "Initially it's listpacked unset"
setopt -o nolist_types -o LIST_PACKED
#setopt -o automenu posix_cd -oautocd
#setopt \'pushd_minus
unsetopt +9
autoload -X test
fpath+=( /usr/share/zsh )
unset MY_VAR
bindkey -N testpluginmain main
bindkey -A testpluginmain main

View file

@ -1,115 +0,0 @@
#!/usr/bin/env zsh
setopt extendedglob
___TEST_DIR="`pwd`"
if [[ "${___TEST_DIR/\/zplugin/}" = "${___TEST_DIR}" && "${___TEST_DIR/\/.zplugin}" = "${___TEST_DIR}" ]]; then
echo "all.zsh run not from zplugin's directory tree"
return 1
fi
if [ "${___TEST_DIR:t}" != "test" ]; then
() {
setopt localoptions extendedglob
local -a match mbegin mend
local MATCH; integer MBEGIN MEND
if [ "${___TEST_DIR/\/zplugin/}" != "${___TEST_DIR}" ]; then
___TEST_DIR="${___TEST_DIR/\/zplugin*//zplugin/test}"
else
# Get what's after /.zplugin/
tmp="${___TEST_DIR##*\/.zplugin\/}"
# Only first directory after /.zplugin/
tmp="${tmp%%/*}"
___TEST_DIR="${___TEST_DIR/\/.zplugin*//.zplugin/${tmp}/test}"
fi
}
fi
if [ ! -d "$___TEST_DIR" ]; then
echo "Could not resolve test directory (tried $___TEST_DIR)"
return 1
fi
cd "$___TEST_DIR"
autoload colors
colors
local pre="==== "
local after=" ===="
# Normal tests
if [[ "$1" = "normal" || -z "$1" ]]; then
echo -e ${fg_bold[magenta]}"${pre}normal tests${after}"$reset_color"\n"
for i in test[0-9]##.zsh; do
./"$i"
print
print "${fg_bold[blue]}===================================================$reset_color"
print
print -n "Press any key for next test..."
read -sk k
echo -e "\n"
done
fi
# KSH_ARRAYS
if [[ "$1" = "kshar" || -z "$1" ]]; then
echo -e ${fg_bold[magenta]}"${pre}KSH_ARRAYS tests${after}"$reset_color"\n"
for i in kshar_test[0-9]##.zsh; do
./"$i"
print
print "${fg_bold[blue]}===================================================$reset_color"
print
print -n "Press any key for next test..."
read -sk k
[ "$k" != $'\n' ] && print
echo -e "\n"
done
fi
# emulate sh
if [[ "$1" = "sh" || -z "$1" ]]; then
echo -e ${fg_bold[magenta]}"${pre}emulate sh tests${after}"$reset_color"\n"
for i in sh_test[0-9]##.zsh; do
./"$i"
print
print "${fg_bold[blue]}===================================================$reset_color"
print
print -n "Press any key for next test..."
read -sk k
[ "$k" != $'\n' ] && print
echo -e "\n"
done
fi
# emulate ksh
if [[ "$1" = "ksh" || -z "$1" ]]; then
echo -e ${fg_bold[magenta]}"${pre}emulate ksh tests${after}"$reset_color"\n"
for i in ksh_test[0-9]##.zsh; do
./"$i"
print
print "${fg_bold[blue]}===================================================$reset_color"
print
print -n "Press any key for next test..."
read -sk k
[ "$k" != $'\n' ] && print
echo -e "\n"
done
fi
# csh setopts
if [[ "$1" = "csh" || -z "$1" ]]; then
echo -e ${fg_bold[magenta]}"${pre}csh setopts tests${after}"$reset_color"\n"
for i in csh_test[0-9]##.zsh; do
./"$i"
print
print "${fg_bold[blue]}===================================================$reset_color"
print
print -n "Press any key for next test..."
read -sk k
[ "$k" != $'\n' ] && print
echo -e "\n"
done
fi

View file

@ -1,45 +0,0 @@
#!/usr/bin/env zsh
#
# Do some setup
# Script can be run from arbitrary directory under zplugin/ tree
#
setopt CSH_NULL_GLOB CSH_JUNKIE_HISTORY CSH_JUNKIE_LOOPS CSH_NULLCMD
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
zplugin dtrace
###
### Test body
###
MY_VAR="test variable"
MY_VAR2="test variable"
zplugin snippet -f test/a::test::plugin.zsh
my_f() { echo "Hello"; }
fpath+=( /a/b/c )
#
# Stop Dtrace
#
zplugin dstop
---stop
###
### Gather and compare results
###
zplugin dreport > "$___TEST_REPORT_FILE" 2>&1
zplugin dunload > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,39 +0,0 @@
#!/usr/bin/env zsh
#
# Do some setup
# Script can be run from arbitrary directory under zplugin/ tree
#
setopt CSH_NULL_GLOB CSH_JUNKIE_HISTORY CSH_JUNKIE_LOOPS CSH_NULLCMD
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
###
### Test body
###
local PLUGIN_NAME="_local/safe-paste"
zplugin load "$PLUGIN_NAME"
#
# Stop Dtrace
#
---stop
###
### Gather and compare results
###
zplugin report "$PLUGIN_NAME" > "$___TEST_REPORT_FILE" 2>&1
zplugin unload "$PLUGIN_NAME" > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,39 +0,0 @@
#!/usr/bin/env zsh
#
# Do some setup
# Script can be run from arbitrary directory under zplugin/ tree
#
setopt NO_KSH_ARRAYS
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
###
### Test body
###
local PLUGIN_NAME="_local/opp.zsh"
zplugin load "$PLUGIN_NAME"
#
# Stop Dtrace
#
---stop
###
### Gather and compare results
###
zplugin report "$PLUGIN_NAME" > "$___TEST_REPORT_FILE" 2>&1
zplugin unload "$PLUGIN_NAME" > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,46 +0,0 @@
#!/usr/bin/env zsh
#
# Do some setup
# Script can be run from arbitrary directory under zplugin/ tree
#
setopt CSH_NULL_GLOB CSH_JUNKIE_HISTORY CSH_JUNKIE_LOOPS CSH_NULLCMD
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
###
### Test body
###
local PLUGIN_NAME="_local/smart-cd"
local SMART_CD_GIT_STATUS="false"
cd test/tzplugin/plugins/_local---smart-cd/test_dir
{
zplugin load "$PLUGIN_NAME"
cd ../test_dir2
add-zsh-hook -d chpwd _smart_cd_chpwd_handler
cd ../test_dir
} > "$___TEST_OUT_FILE"
#
# Stop Dtrace
#
---stop
###
### Gather and compare results
###
zplugin report "$PLUGIN_NAME" > "$___TEST_REPORT_FILE" 2>&1
zplugin unload "$PLUGIN_NAME" > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,58 +0,0 @@
#!/usr/bin/env zsh
#
# Common test suite code
#
setopt CSH_NULL_GLOB CSH_JUNKIE_HISTORY CSH_JUNKIE_LOOPS CSH_NULLCMD
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
zplugin dtrace
###
### Test body
###
{
zplugin dstart
echo "### Zstatus "
zplugin zstatus
echo -e "\n### List ###"
zplugin list
echo -e "\n### Clist ###"
zplugin clist
echo -e "\n### Csearch ###"
zplugin csearch
echo -e "\n### Compile-all ###"
zplugin compile-all
echo -e "\n### Uncompile-all ###"
zplugin uncompile-all
zplugin dstop
} >> "$___TEST_OUT_FILE"
#
# Stop Dtrace
#
zplugin dstop
---stop
###
### Gather and compare results
###
zplugin dreport > "$___TEST_REPORT_FILE" 2>&1
zplugin dunload > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,46 +0,0 @@
#!/usr/bin/env zsh
#
# Do some setup
# Script can be run from arbitrary directory under zplugin/ tree
#
emulate ksh
unsetopt localoptions
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
zplugin dtrace
###
### Test body
###
MY_VAR="test variable"
MY_VAR2="test variable"
zplugin snippet -f test/a::test::plugin.zsh
my_f() { echo "Hello"; }
fpath+=( /a/b/c )
#
# Stop Dtrace
#
zplugin dstop
---stop
###
### Gather and compare results
###
zplugin dreport > "$___TEST_REPORT_FILE" 2>&1
zplugin dunload > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,40 +0,0 @@
#!/usr/bin/env zsh
#
# Do some setup
# Script can be run from arbitrary directory under zplugin/ tree
#
emulate ksh
unsetopt localoptions
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
###
### Test body
###
local PLUGIN_NAME="_local/safe-paste"
zplugin load "$PLUGIN_NAME"
#
# Stop Dtrace
#
---stop
###
### Gather and compare results
###
zplugin report "$PLUGIN_NAME" > "$___TEST_REPORT_FILE" 2>&1
zplugin unload "$PLUGIN_NAME" > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,81 +0,0 @@
#!/usr/bin/env zsh
#
# Common test suite code
#
emulate ksh
unsetopt localoptions
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
zplugin dtrace
###
### Test body
###
typeset -U path
PATH="$PATH:/component/nr1"
path+=( "/component/nr2" )
# Intentional nr2
PATH="/component/nr2:$PATH"
declare -p path
echo
FPATH="$FPATH:/fcomp/nr1"
fpath+=( "/fcomp/nr2" )
# Intentional nr2
FPATH="/fcomp/nr2:$FPATH"
declare -p fpath
echo
MY_VAR="test variable1"
MY_VAR2="test variable2"
my_f() { echo "Hello from test3"; MY_VAR3="test variable 3"; typeset -A my_hash }
my_f
typeset -A my_hash2
typeset -a my_array
my_array=( 1 )
setopt menucomplete
alias test3alias1="echo Hello"
alias -g test3alias2="echo Hello"
alias -s jpg="iv"
my_f2() { echo "Short lived"; }
my_f2
unfunction "my_f2"
#
# Stop Dtrace
#
zplugin dstop
---stop
###
### Gather and compare results
###
zplugin dreport > "$___TEST_REPORT_FILE" 2>&1
zplugin dunload > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
# A look at hopefully cleaned up variables
declare -p path
declare -p fpath
---mark
---compare
---end

View file

@ -1,50 +0,0 @@
#!/usr/bin/env zsh
#
# Do some setup
# Script can be run from arbitrary directory under zplugin/ tree
#
emulate ksh
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
###
### Test body
###
local PLUGIN_NAME="_local/zsh-colors"
zplugin load "$PLUGIN_NAME"
{
red Hello
blue Blue
magenta Magenta
echo Yellow | yellow
echo Green | green
echo Cyan | cyan
black Black
echo white | white
} > "$___TEST_OUT_FILE"
#
# Stop Dtrace
#
---stop
###
### Gather and compare results
###
zplugin report "$PLUGIN_NAME" > "$___TEST_REPORT_FILE" 2>&1
zplugin unload "$PLUGIN_NAME" > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,46 +0,0 @@
#!/usr/bin/env zsh
#
# Do some setup
# Script can be run from arbitrary directory under zplugin/ tree
#
emulate ksh
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
###
### Test body
###
local PLUGIN_NAME="_local/smart-cd"
local SMART_CD_GIT_STATUS="false"
cd test/tzplugin/plugins/_local---smart-cd/test_dir
{
zplugin load "$PLUGIN_NAME"
cd ../test_dir2
add-zsh-hook -d chpwd _smart_cd_chpwd_handler
cd ../test_dir
} > "$___TEST_OUT_FILE"
#
# Stop Dtrace
#
---stop
###
### Gather and compare results
###
zplugin report "$PLUGIN_NAME" > "$___TEST_REPORT_FILE" 2>&1
zplugin unload "$PLUGIN_NAME" > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,58 +0,0 @@
#!/usr/bin/env zsh
#
# Common test suite code
#
emulate ksh
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
zplugin dtrace
###
### Test body
###
{
zplugin dstart
echo "### Zstatus "
zplugin zstatus
echo -e "\n### List ###"
zplugin list
echo -e "\n### Clist ###"
zplugin clist
echo -e "\n### Csearch ###"
zplugin csearch
echo -e "\n### Compile-all ###"
zplugin compile-all
echo -e "\n### Uncompile-all ###"
zplugin uncompile-all
zplugin dstop
} >> "$___TEST_OUT_FILE"
#
# Stop Dtrace
#
zplugin dstop
---stop
###
### Gather and compare results
###
zplugin dreport > "$___TEST_REPORT_FILE" 2>&1
zplugin dunload > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,44 +0,0 @@
#!/usr/bin/env zsh
#
# Do some setup
# Script can be run from arbitrary directory under zplugin/ tree
#
setopt KSH_ARRAYS
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
zplugin dtrace
###
### Test body
###
MY_VAR="test variable"
MY_VAR2="test variable"
zplugin snippet -f test/a::test::plugin.zsh
my_f() { echo "Hello"; }
fpath+=( /a/b/c )
#
# Stop Dtrace
#
zplugin dstop
---stop
###
### Gather and compare results
###
zplugin dreport > "$___TEST_REPORT_FILE" 2>&1
zplugin dunload > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,39 +0,0 @@
#!/usr/bin/env zsh
#
# Do some setup
# Script can be run from arbitrary directory under zplugin/ tree
#
setopt KSH_ARRAYS
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
###
### Test body
###
local PLUGIN_NAME="_local/safe-paste"
zplugin load "$PLUGIN_NAME"
#
# Stop Dtrace
#
---stop
###
### Gather and compare results
###
zplugin report "$PLUGIN_NAME" > "$___TEST_REPORT_FILE" 2>&1
zplugin unload "$PLUGIN_NAME" > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,80 +0,0 @@
#!/usr/bin/env zsh
#
# Common test suite code
#
setopt KSH_ARRAYS
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
zplugin dtrace
###
### Test body
###
typeset -U path
PATH="$PATH:/component/nr1"
path+=( "/component/nr2" )
# Intentional nr2
PATH="/component/nr2:$PATH"
declare -p path
echo
FPATH="$FPATH:/fcomp/nr1"
fpath+=( "/fcomp/nr2" )
# Intentional nr2
FPATH="/fcomp/nr2:$FPATH"
declare -p fpath
echo
MY_VAR="test variable1"
MY_VAR2="test variable2"
my_f() { echo "Hello from test3"; MY_VAR3="test variable 3"; typeset -A my_hash }
my_f
typeset -A my_hash2
typeset -a my_array
my_array=( 1 )
setopt menucomplete
alias test3alias1="echo Hello"
alias -g test3alias2="echo Hello"
alias -s jpg="iv"
my_f2() { echo "Short lived"; }
my_f2
unfunction "my_f2"
#
# Stop Dtrace
#
zplugin dstop
---stop
###
### Gather and compare results
###
zplugin dreport > "$___TEST_REPORT_FILE" 2>&1
zplugin dunload > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
# A look at hopefully cleaned up variables
declare -p path
declare -p fpath
---mark
---compare
---end

View file

@ -1,50 +0,0 @@
#!/usr/bin/env zsh
#
# Do some setup
# Script can be run from arbitrary directory under zplugin/ tree
#
setopt KSH_ARRAYS
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
###
### Test body
###
local PLUGIN_NAME="_local/zsh-colors"
zplugin load "$PLUGIN_NAME"
{
red Hello
blue Blue
magenta Magenta
echo Yellow | yellow
echo Green | green
echo Cyan | cyan
black Black
echo white | white
} > "$___TEST_OUT_FILE"
#
# Stop Dtrace
#
---stop
###
### Gather and compare results
###
zplugin report "$PLUGIN_NAME" > "$___TEST_REPORT_FILE" 2>&1
zplugin unload "$PLUGIN_NAME" > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,46 +0,0 @@
#!/usr/bin/env zsh
#
# Do some setup
# Script can be run from arbitrary directory under zplugin/ tree
#
setopt KSH_ARRAYS
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
###
### Test body
###
local PLUGIN_NAME="_local/smart-cd"
local SMART_CD_GIT_STATUS="false"
cd test/tzplugin/plugins/_local---smart-cd/test_dir
{
zplugin load "$PLUGIN_NAME"
cd ../test_dir2
add-zsh-hook -d chpwd _smart_cd_chpwd_handler
cd ../test_dir
} > "$___TEST_OUT_FILE"
#
# Stop Dtrace
#
---stop
###
### Gather and compare results
###
zplugin report "$PLUGIN_NAME" > "$___TEST_REPORT_FILE" 2>&1
zplugin unload "$PLUGIN_NAME" > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,58 +0,0 @@
#!/usr/bin/env zsh
#
# Common test suite code
#
setopt KSH_ARRAYS
source "`pwd`/${0:h}/tinclude.zsh" "$0" || exit 1
#
# Start Dtrace
#
---start
zplugin dtrace
###
### Test body
###
{
zplugin dstart
echo "### Zstatus "
zplugin zstatus
echo -e "\n### List ###"
zplugin list
echo -e "\n### Clist ###"
zplugin clist
echo -e "\n### Csearch ###"
zplugin csearch
echo -e "\n### Compile-all ###"
zplugin compile-all
echo -e "\n### Uncompile-all ###"
zplugin uncompile-all
zplugin dstop
} >> "$___TEST_OUT_FILE"
#
# Stop Dtrace
#
zplugin dstop
---stop
###
### Gather and compare results
###
zplugin dreport > "$___TEST_REPORT_FILE" 2>&1
zplugin dunload > "$___TEST_UNLOAD_FILE" 2>&1
---dumpenv > "$___TEST_ENV_FILE" 2>&1
---compare
---end

View file

@ -1,7 +0,0 @@
ZPLG_DIR '___ZPLG_DIR'
ZPLG_NAME 'zplugin'
ZPLG_HOME '___ZPLG_DIR/test/tzplugin'
ZPLG_PLUGINS_DIR '___ZPLG_DIR/test/tzplugin/plugins'
ZPLG_COMPLETIONS_DIR '___ZPLG_DIR/test/tzplugin/completions'
ZPLG_SNIPPETS_DIR '___ZPLG_DIR/test/tzplugin/snippets'
ZPLG_HOME_READY '1'

View file

@ -1,37 +0,0 @@
Plugin report for _dtrace/_dtrace
---------------------------------
Bindkey -v
Warning: last bindkey used non-typical options: -v
Alias aa=bb
Bindkey -N testmap main
Bindkey -M testmap -s ^[t echo test1
Bindkey -s ^[y echo test2
Bindkey ^J self-insert
Bindkey ^_ undo
Alias aaa2=bbb
Alias -s gif=iv
Alias -g LLL=|less
Failed autoload -X test
Bindkey -N testpluginmain main
Bindkey -A testpluginmain main
Warning: keymap `main' copied to `_dtrace-main-1' because of `testpluginmain' substitution
Functions created:
my_f
Options changed:
chaselinks was set
listpacked was set
listtypes was unset
menucomplete was set
physical was set
FPATH elements added:
/a/b/c
/usr/share/zsh
Variables added or redefined:
REPO_DIR [ "" -> scalar ]
CONFIG_DIR [ "" -> scalar ]
MY_VAR2 [ "" -> scalar ]

View file

@ -1,23 +0,0 @@
Deleting function my_f
Linking backup-`main' keymap `_dtrace-main-1' back to `main'
Deleting keymap `testpluginmain'
Deleting bindkey ^_ undo
Deleting bindkey ^J self-insert
Deleting bindkey ^[y echo test2
Deleting bindkey ^[t echo test1 mapped to testmap
Deleting keymap `testmap'
Unsetting option chaselinks
Unsetting option listpacked
Setting option listtypes
Unsetting option menucomplete
Removing global alias LLL=|less
Removing suffix alias gif=iv
Removing alias aaa2=bbb
Removing alias aa=bb
Removing FPATH element /usr/share/zsh
Removing FPATH element /a/b/c
Warning: it didn't exist on disk
Unsetting variable REPO_DIR
Unsetting variable CONFIG_DIR
Unsetting variable MY_VAR2
dtrace report saved to $LASTREPORT

View file

@ -1,7 +0,0 @@
ZPLG_DIR '___ZPLG_DIR'
ZPLG_NAME 'zplugin'
ZPLG_HOME '___ZPLG_DIR/test/tzplugin'
ZPLG_PLUGINS_DIR '___ZPLG_DIR/test/tzplugin/plugins'
ZPLG_COMPLETIONS_DIR '___ZPLG_DIR/test/tzplugin/completions'
ZPLG_SNIPPETS_DIR '___ZPLG_DIR/test/tzplugin/snippets'
ZPLG_HOME_READY '1'

View file

@ -1,19 +0,0 @@
Plugin report for _local/safe-paste
-----------------------------------
Source safe-paste.plugin.zsh
Bindkey -N paste
Bindkey -R -M paste ^@-Þ? paste-insert
Bindkey ^[[200~ _start_paste
Bindkey -M paste ^[[201~ _end_paste
Bindkey -M paste -s ^M ^J
Zle -N _start_paste
Zle -N _end_paste
Zle -N zle-line-init _zle_line_init
Zle -N zle-line-finish _zle_line_finish
Zle -N paste-insert _paste_insert
Functions created:
_end_paste _paste_insert
_start_paste _zle_line_finish
_zle_line_init

View file

@ -1,17 +0,0 @@
Deleting function _end_paste
Deleting function _paste_insert
Deleting function _start_paste
Deleting function _zle_line_finish
Deleting function _zle_line_init
Deleting bindkey ^M ^J mapped to paste
Deleting bindkey ^[[201~ _end_paste mapped to paste
Deleting bindkey ^[[200~ _start_paste
Deleting range bindkey ^@-Þ? paste-insert mapped to paste
Deleting keymap `paste'
Removing Zle hook `paste-insert'
Removing Zle hook `zle-line-finish'
Removing Zle hook `zle-line-init'
Removing Zle widget `_end_paste'
Removing Zle widget `_start_paste'
Unregistering plugin _local/safe-paste
Plugin's report saved to $LASTREPORT

View file

@ -1,7 +0,0 @@
ZPLG_DIR '___ZPLG_DIR'
ZPLG_NAME 'zplugin'
ZPLG_HOME '___ZPLG_DIR/test/tzplugin'
ZPLG_PLUGINS_DIR '___ZPLG_DIR/test/tzplugin/plugins'
ZPLG_COMPLETIONS_DIR '___ZPLG_DIR/test/tzplugin/completions'
ZPLG_SNIPPETS_DIR '___ZPLG_DIR/test/tzplugin/snippets'
ZPLG_HOME_READY '1'

View file

@ -1,149 +0,0 @@
Plugin report for _local/opp.zsh
--------------------------------
Source opp.zsh
Bindkey -N opp
Zle -N opp-skip-blank-backward
Zle -N opp-skip-blank-forward
Zle -N opp-skip-alnum-backward
Zle -N opp-skip-alnum-forward
Zle -N opp-skip-punct-backward
Zle -N opp-skip-punct-forward
Zle -N opp-skip-alpunum-backward
Zle -N opp-skip-alpunum-forward
Bindkey -M opp iw .accept-line
Bindkey -M opp aw .accept-line
Bindkey -M opp iW .accept-line
Bindkey -M opp aW .accept-line
Zle -N opp-gps-[
Zle -N opp-gps-]
Bindkey -M opp i[ .accept-line
Bindkey -M opp i] .accept-line
Bindkey -M opp ik .accept-line
Bindkey -M opp a[ .accept-line
Bindkey -M opp a] .accept-line
Bindkey -M opp ak .accept-line
Zle -N opp-gps-<
Zle -N opp-gps->
Bindkey -M opp i< .accept-line
Bindkey -M opp i> .accept-line
Bindkey -M opp a< .accept-line
Bindkey -M opp a> .accept-line
Zle -N opp-gps-(
Zle -N opp-gps-)
Bindkey -M opp i( .accept-line
Bindkey -M opp i) .accept-line
Bindkey -M opp ib .accept-line
Bindkey -M opp a( .accept-line
Bindkey -M opp a) .accept-line
Bindkey -M opp ab .accept-line
Zle -N opp-gps-{
Zle -N opp-gps-}
Bindkey -M opp i{ .accept-line
Bindkey -M opp i} .accept-line
Bindkey -M opp iB .accept-line
Bindkey -M opp a{ .accept-line
Bindkey -M opp a} .accept-line
Bindkey -M opp aB .accept-line
Zle -N opp-gps-inbetween-0-a
Zle -N opp-gps-inbetween-0-b
Bindkey -M opp i" .accept-line
Bindkey -M opp a" .accept-line
Zle -N opp-gps-inbetween-1-a
Zle -N opp-gps-inbetween-1-b
Bindkey -M opp i' .accept-line
Bindkey -M opp a' .accept-line
Zle -N opp-gps-inbetween-2-a
Zle -N opp-gps-inbetween-2-b
Bindkey -M opp i` .accept-line
Bindkey -M opp a` .accept-line
Zle -N opp-recursive-edit
Zle -N opp-id
Zle -N opp-copy-region
Zle -N opp-swap-case-region
Zle -N opp-vi-change
Zle -N opp-vi-delete
Zle -N opp-vi-yank
Zle -N opp-vi-tilde
Zle -N opp-upper-case-region
Zle -N opp-vi-uppercase
Zle -N opp-lower-case-region
Zle -N opp-vi-lowercase
Zle -N opp opp
Warning: unknown widget replaced/taken via zle -N: `opp', it is set to be deleted
Bindkey -M vicmd c opp
Bindkey -M afu-vicmd c opp
Bindkey -M vicmd d opp
Bindkey -M afu-vicmd d opp
Bindkey -M vicmd y opp
Bindkey -M afu-vicmd y opp
Bindkey -M vicmd g~ opp
Bindkey -M afu-vicmd g~ opp
Bindkey -M vicmd gU opp
Bindkey -M afu-vicmd gU opp
Bindkey -M vicmd gu opp
Bindkey -M afu-vicmd gu opp
Functions created:
def-opp-skip def-oppc
def-oppc-inbetween def-oppc-inbetween-1
def-oppc-inbetween-2 def-oppc-pair
def-oppc-pair-1 opp
opp+aB opp+aW
opp+a" opp+a'
opp+a( opp+a)
opp+a< opp+a>
opp+a[ opp+a]
opp+a` opp+a{
opp+a} opp+ab
opp+ak opp+aw
opp+iB opp+iW
opp+i" opp+i'
opp+i( opp+i)
opp+i< opp+i>
opp+i[ opp+i]
opp+i` opp+i{
opp+i} opp+ib
opp+ik opp+iw
opp-accept-p opp-clean
opp-copy-region opp-generic
opp-generic-pair-scan opp-generic-w
opp-gps-( opp-gps-)
opp-gps-< opp-gps->
opp-gps-[ opp-gps-]
opp-gps-{ opp-gps-}
opp-gps-inbetween-0-a opp-gps-inbetween-0-b
opp-gps-inbetween-0-s-ref opp-gps-inbetween-1-a
opp-gps-inbetween-1-b opp-gps-inbetween-1-s-ref
opp-gps-inbetween-2-a opp-gps-inbetween-2-b
opp-gps-inbetween-2-s-ref opp-id
opp-inbetween-scan opp-install
opp-install-installer opp-installer-add
opp-installer-expand opp-installer-install-opps
opp-k opp-linewise
opp-linewise~ opp-lower-case-region
opp-lower-case-region-0 opp-motion
opp-oneshot-region opp-pair-scan
opp-read-motion opp-read-motion-p
opp-recursive-edit opp-recursive-edit-1
opp-regioned-buffer-each opp-regioned-buffer-each~
opp-register-zle opp-register-zle-operator-mimic
opp-register-zle-operator-mimic-case opp-skip-alnum-backward
opp-skip-alnum-forward opp-skip-alpunum-backward
opp-skip-alpunum-forward opp-skip-aw-forward-on-blank
opp-skip-blank-backward opp-skip-blank-forward
opp-skip-punct-backward opp-skip-punct-forward
opp-swap-case-region opp-swap-case-region-0
opp-undefined-key opp-upper-case-region
opp-upper-case-region-0 opp-vi-change
opp-vi-delete opp-vi-lowercase
opp-vi-tilde opp-vi-uppercase
opp-vi-yank opp-zcompile
opp1 with-opp
with-opp-regioned
Variables added or redefined:
opps [ "" -> association ]
opp_installer_codes [ "" -> array ]
opp_keybuffer [ "" -> scalar ]
opp_operators [ "" -> association ]

View file

@ -1,203 +0,0 @@
Deleting function def-opp-skip
Deleting function def-oppc
Deleting function def-oppc-inbetween
Deleting function def-oppc-inbetween-1
Deleting function def-oppc-inbetween-2
Deleting function def-oppc-pair
Deleting function def-oppc-pair-1
Deleting function opp
Deleting function opp+aB
Deleting function opp+aW
Deleting function opp+a"
Deleting function opp+a'
Deleting function opp+a(
Deleting function opp+a)
Deleting function opp+a<
Deleting function opp+a>
Deleting function opp+a[
Deleting function opp+a]
Deleting function opp+a`
Deleting function opp+a{
Deleting function opp+a}
Deleting function opp+ab
Deleting function opp+ak
Deleting function opp+aw
Deleting function opp+iB
Deleting function opp+iW
Deleting function opp+i"
Deleting function opp+i'
Deleting function opp+i(
Deleting function opp+i)
Deleting function opp+i<
Deleting function opp+i>
Deleting function opp+i[
Deleting function opp+i]
Deleting function opp+i`
Deleting function opp+i{
Deleting function opp+i}
Deleting function opp+ib
Deleting function opp+ik
Deleting function opp+iw
Deleting function opp-accept-p
Deleting function opp-clean
Deleting function opp-copy-region
Deleting function opp-generic
Deleting function opp-generic-pair-scan
Deleting function opp-generic-w
Deleting function opp-gps-(
Deleting function opp-gps-)
Deleting function opp-gps-<
Deleting function opp-gps->
Deleting function opp-gps-[
Deleting function opp-gps-]
Deleting function opp-gps-{
Deleting function opp-gps-}
Deleting function opp-gps-inbetween-0-a
Deleting function opp-gps-inbetween-0-b
Deleting function opp-gps-inbetween-0-s-ref
Deleting function opp-gps-inbetween-1-a
Deleting function opp-gps-inbetween-1-b
Deleting function opp-gps-inbetween-1-s-ref
Deleting function opp-gps-inbetween-2-a
Deleting function opp-gps-inbetween-2-b
Deleting function opp-gps-inbetween-2-s-ref
Deleting function opp-id
Deleting function opp-inbetween-scan
Deleting function opp-install
Deleting function opp-install-installer
Deleting function opp-installer-add
Deleting function opp-installer-expand
Deleting function opp-installer-install-opps
Deleting function opp-k
Deleting function opp-linewise
Deleting function opp-linewise~
Deleting function opp-lower-case-region
Deleting function opp-lower-case-region-0
Deleting function opp-motion
Deleting function opp-oneshot-region
Deleting function opp-pair-scan
Deleting function opp-read-motion
Deleting function opp-read-motion-p
Deleting function opp-recursive-edit
Deleting function opp-recursive-edit-1
Deleting function opp-regioned-buffer-each
Deleting function opp-regioned-buffer-each~
Deleting function opp-register-zle
Deleting function opp-register-zle-operator-mimic
Deleting function opp-register-zle-operator-mimic-case
Deleting function opp-skip-alnum-backward
Deleting function opp-skip-alnum-forward
Deleting function opp-skip-alpunum-backward
Deleting function opp-skip-alpunum-forward
Deleting function opp-skip-aw-forward-on-blank
Deleting function opp-skip-blank-backward
Deleting function opp-skip-blank-forward
Deleting function opp-skip-punct-backward
Deleting function opp-skip-punct-forward
Deleting function opp-swap-case-region
Deleting function opp-swap-case-region-0
Deleting function opp-undefined-key
Deleting function opp-upper-case-region
Deleting function opp-upper-case-region-0
Deleting function opp-vi-change
Deleting function opp-vi-delete
Deleting function opp-vi-lowercase
Deleting function opp-vi-tilde
Deleting function opp-vi-uppercase
Deleting function opp-vi-yank
Deleting function opp-zcompile
Deleting function opp1
Deleting function with-opp
Deleting function with-opp-regioned
Deleting bindkey gu opp mapped to afu-vicmd
-zplg-unload:bindkey:57: no such keymap `afu-vicmd'
Deleting bindkey gu opp mapped to vicmd
Deleting bindkey gU opp mapped to afu-vicmd
-zplg-unload:bindkey:57: no such keymap `afu-vicmd'
Deleting bindkey gU opp mapped to vicmd
Deleting bindkey g~ opp mapped to afu-vicmd
-zplg-unload:bindkey:57: no such keymap `afu-vicmd'
Deleting bindkey g~ opp mapped to vicmd
Deleting bindkey y opp mapped to afu-vicmd
-zplg-unload:bindkey:57: no such keymap `afu-vicmd'
Deleting bindkey y opp mapped to vicmd
Deleting bindkey d opp mapped to afu-vicmd
-zplg-unload:bindkey:57: no such keymap `afu-vicmd'
Deleting bindkey d opp mapped to vicmd
Deleting bindkey c opp mapped to afu-vicmd
-zplg-unload:bindkey:57: no such keymap `afu-vicmd'
Deleting bindkey c opp mapped to vicmd
Deleting bindkey a` .accept-line mapped to opp
Deleting bindkey i` .accept-line mapped to opp
Deleting bindkey a' .accept-line mapped to opp
Deleting bindkey i' .accept-line mapped to opp
Deleting bindkey a" .accept-line mapped to opp
Deleting bindkey i" .accept-line mapped to opp
Deleting bindkey aB .accept-line mapped to opp
Deleting bindkey a} .accept-line mapped to opp
Deleting bindkey a{ .accept-line mapped to opp
Deleting bindkey iB .accept-line mapped to opp
Deleting bindkey i} .accept-line mapped to opp
Deleting bindkey i{ .accept-line mapped to opp
Deleting bindkey ab .accept-line mapped to opp
Deleting bindkey a) .accept-line mapped to opp
Deleting bindkey a( .accept-line mapped to opp
Deleting bindkey ib .accept-line mapped to opp
Deleting bindkey i) .accept-line mapped to opp
Deleting bindkey i( .accept-line mapped to opp
Deleting bindkey a> .accept-line mapped to opp
Deleting bindkey a< .accept-line mapped to opp
Deleting bindkey i> .accept-line mapped to opp
Deleting bindkey i< .accept-line mapped to opp
Deleting bindkey ak .accept-line mapped to opp
Deleting bindkey a] .accept-line mapped to opp
Deleting bindkey a[ .accept-line mapped to opp
Deleting bindkey ik .accept-line mapped to opp
Deleting bindkey i] .accept-line mapped to opp
Deleting bindkey i[ .accept-line mapped to opp
Deleting bindkey aW .accept-line mapped to opp
Deleting bindkey iW .accept-line mapped to opp
Deleting bindkey aw .accept-line mapped to opp
Deleting bindkey iw .accept-line mapped to opp
Deleting keymap `opp'
Removing Zle widget `opp'
Removing Zle widget `opp-vi-lowercase'
Removing Zle widget `opp-lower-case-region'
Removing Zle widget `opp-vi-uppercase'
Removing Zle widget `opp-upper-case-region'
Removing Zle widget `opp-vi-tilde'
Removing Zle widget `opp-vi-yank'
Removing Zle widget `opp-vi-delete'
Removing Zle widget `opp-vi-change'
Removing Zle widget `opp-swap-case-region'
Removing Zle widget `opp-copy-region'
Removing Zle widget `opp-id'
Removing Zle widget `opp-recursive-edit'
Removing Zle widget `opp-gps-inbetween-2-b'
Removing Zle widget `opp-gps-inbetween-2-a'
Removing Zle widget `opp-gps-inbetween-1-b'
Removing Zle widget `opp-gps-inbetween-1-a'
Removing Zle widget `opp-gps-inbetween-0-b'
Removing Zle widget `opp-gps-inbetween-0-a'
Removing Zle widget `opp-gps-}'
Removing Zle widget `opp-gps-{'
Removing Zle widget `opp-gps-)'
Removing Zle widget `opp-gps-('
Removing Zle widget `opp-gps->'
Removing Zle widget `opp-gps-<'
Removing Zle widget `opp-gps-]'
Removing Zle widget `opp-gps-['
Removing Zle widget `opp-skip-alpunum-forward'
Removing Zle widget `opp-skip-alpunum-backward'
Removing Zle widget `opp-skip-punct-forward'
Removing Zle widget `opp-skip-punct-backward'
Removing Zle widget `opp-skip-alnum-forward'
Removing Zle widget `opp-skip-alnum-backward'
Removing Zle widget `opp-skip-blank-forward'
Removing Zle widget `opp-skip-blank-backward'
Unsetting variable opps
Unsetting variable opp_installer_codes
Unsetting variable opp_keybuffer
Unsetting variable opp_operators
Unregistering plugin _local/opp.zsh
Plugin's report saved to $LASTREPORT

View file

@ -1,7 +0,0 @@
ZPLG_DIR '___ZPLG_DIR'
ZPLG_NAME 'zplugin'
ZPLG_HOME '___ZPLG_DIR/test/tzplugin'
ZPLG_PLUGINS_DIR '___ZPLG_DIR/test/tzplugin/plugins'
ZPLG_COMPLETIONS_DIR '___ZPLG_DIR/test/tzplugin/completions'
ZPLG_SNIPPETS_DIR '___ZPLG_DIR/test/tzplugin/snippets'
ZPLG_HOME_READY '1'

View file

@ -1,2 +0,0 @@
test_file
test_file2

View file

@ -1,14 +0,0 @@
Plugin report for _local/smart-cd
---------------------------------
Source smart-cd.plugin.zsh
Autoload add-zsh-hook with options -U
Autoload _smart_cd_chpwd_handler
Functions created:
_smart_cd_chpwd_handler add-zsh-hook
Variables added or redefined:
chpwd_functions [ "" -> array ]
SMART_CD_LS [ "" -> scalar ]
_smart_cd_lastgitdir [ "" -> scalar ]

View file

@ -1,6 +0,0 @@
Deleting function _smart_cd_chpwd_handler
Deleting function add-zsh-hook
Unsetting variable SMART_CD_LS
Unsetting variable _smart_cd_lastgitdir
Unregistering plugin _local/smart-cd
Plugin's report saved to $LASTREPORT

View file

@ -1,7 +0,0 @@
ZPLG_DIR '___ZPLG_DIR'
ZPLG_NAME 'zplugin'
ZPLG_HOME '___ZPLG_DIR/test/tzplugin'
ZPLG_PLUGINS_DIR '___ZPLG_DIR/test/tzplugin/plugins'
ZPLG_COMPLETIONS_DIR '___ZPLG_DIR/test/tzplugin/completions'
ZPLG_SNIPPETS_DIR '___ZPLG_DIR/test/tzplugin/snippets'
ZPLG_HOME_READY '1'

View file

@ -1,43 +0,0 @@
Dtrace is already active, stop it first with `dstop'
### Zstatus
Zplugin's main directory: ___ZPLG_HOME
Zplugin's binary directory: ___ZPLG_DIR
Plugin directory: ___ZPLG_HOME/plugins
Completions directory: ___ZPLG_HOME/completions
Loaded plugins: 0
Light loaded: 0
Downloaded plugins: 4
Enabled completions: 1
Disabled completions: 0
Completions available overall: 1
Snippets loaded:
Compiled plugins: 0
### List ###
### Clist ###
zplugin _local/zplugin
### Csearch ###
[+] is installed, [-] uninstalled, [+-] partially installed
[+] _local/zplugin _zplugin
### Compile-all ###
_local/opp.zsh:
Compiling opp.zsh...
_local/safe-paste:
Compiling safe-paste.plugin.zsh...
_local/smart-cd:
Compiling smart-cd.plugin.zsh...
_local/zsh-colors:
Compiling colors.plugin.zsh...
### Uncompile-all ###
_local/opp.zsh:
Removing opp.zsh.zwc
_local/safe-paste:
Removing safe-paste.plugin.zsh.zwc
_local/smart-cd:
Removing smart-cd.plugin.zsh.zwc
_local/zsh-colors:
Removing colors.plugin.zsh.zwc

View file

@ -1,7 +0,0 @@
Plugin report for _dtrace/_dtrace
---------------------------------
Variables added or redefined:
reply [ "" -> array ]
REPLY [ "" -> scalar ]

View file

@ -1,3 +0,0 @@
Unsetting variable reply
Unsetting variable REPLY
dtrace report saved to $LASTREPORT

View file

@ -1,7 +0,0 @@
ZPLG_DIR '___ZPLG_DIR'
ZPLG_NAME 'zplugin'
ZPLG_HOME '___ZPLG_DIR/test/tzplugin'
ZPLG_PLUGINS_DIR '___ZPLG_DIR/test/tzplugin/plugins'
ZPLG_COMPLETIONS_DIR '___ZPLG_DIR/test/tzplugin/completions'
ZPLG_SNIPPETS_DIR '___ZPLG_DIR/test/tzplugin/snippets'
ZPLG_HOME_READY '1'

Some files were not shown because too many files have changed in this diff Show more