Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add installation via zinit #3563

Merged
merged 1 commit into from
Dec 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/tips-and-tricks.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,25 @@ calling `curl https://mise.run` dynamically—though of course this means it wil
the version of mise that was current when the script was created.
:::

## Installation via zsh zinit

[Zinit](https://github.com/zdharma-continuum/zinit) is a plugin manager for ZSH, wich this snippet you will get mise (and usage for shell completion):

```sh
zinit as="command" lucid from="gh-r" for \
id-as="usage" \
atpull="%atclone" \
jdx/usage
#atload='eval "$(mise activate zsh)"' \

zinit as="command" lucid from="gh-r" for \
id-as="mise" mv="mise* -> mise" \
atclone="./mise* completion zsh > _mise" \
atpull="%atclone" \
atload='eval "$(mise activate zsh)"' \
jdx/mise
```

## CI/CD

Using mise in CI/CD is a great way to synchronize tool versions for dev/build.
Expand Down
Loading