Skip to content

Commit

Permalink
docs: add installation via zinit (jdx#3563)
Browse files Browse the repository at this point in the history
  • Loading branch information
Finkregh authored and miguelmig committed Dec 21, 2024
1 parent bb3a585 commit cdaed70
Showing 1 changed file with 19 additions and 0 deletions.
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

0 comments on commit cdaed70

Please sign in to comment.