- 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>
* 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)
- 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>():
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>
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.
- 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>
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>
- 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>
- 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>
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>