Commit graph

540 commits

Author SHA1 Message Date
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
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
Qiming Xu 4933b62f40
fix: the starship example does not work properly 2023-02-24 12:21:53 +08: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 bfb01e65d7 feat: display version via version sub command
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-17 06:14:46 -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 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 061a85c4ff
Add support for multiple (cmake, scons, meson) build systems to the configure'' ice. (#351) 2022-09-27 19:54:11 -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
Tony Narlock 87da39ec15
docs(README): Fix migration link 2022-05-24 17:35:12 -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 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 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 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 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
Philipp Schmitt 6b28299ce2
zinit-annex-as-monitor -> zinit-annex-readurl 2021-12-01 08:56:56 +01:00
Philipp Schmitt d82c6133ae
Update wiki links 2021-12-01 08:46:15 +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 8dc5641f8a
Shorten install url 2021-11-21 09:03:18 +01:00
Philipp Schmitt fddfb49c91
Add zunit test badge 2021-11-20 21:24:23 +01: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 59f45f1bbe
Update TOC 2021-11-20 00:01:25 +01:00
Philipp Schmitt ad9f5e7195
Remove dead link (NEWS is gone) 2021-11-19 13:03:31 +01: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 8816c52552
Update TOC 2021-11-18 08:37:32 +01:00
Philipp Schmitt cd2a5f1f96
zinit-packages monorepo - Fix #69 2021-11-18 07:56:43 +01:00
Philipp Schmitt 3020177e1c
✂️ Relocate module 2021-11-17 22:10:13 +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 3d8ac200a9
XDG-ify ZINIT_HOME 2021-11-15 21:41:12 +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 c4d3049591
Fix #60: Move the installer to scripts/ 2021-11-15 19:56:52 +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
Christian Höltje 672ae51414 fix: more cleaning up urls
Builds on PR #47
2021-11-11 17:57:43 -05:00
Philipp Schmitt b51c3c6922
Update annexes repo names (#38) 2021-11-11 19:59:38 +01: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 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
Aaron Lichtman eedc6871e3
Merge pull request #12 from pschmitt/zpfx-manpath-creation 2021-11-07 17:00:46 -06:00
Philipp Schmitt b1cf7bb4a3
Update zservices links 2021-11-06 12:45:18 +01:00
Philipp Schmitt da91b76ed6
Create man{1..9} instead of only man1 2021-11-05 22:16:17 +01:00