From 14e1494c42b6142665948d274f52224cacac9b1c Mon Sep 17 00:00:00 2001 From: Oluf Lorenzen Date: Sat, 14 Dec 2024 17:51:28 +0100 Subject: [PATCH] docs: add installation via zinit (#3563) --- docs/tips-and-tricks.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/tips-and-tricks.md b/docs/tips-and-tricks.md index a50ee44edc..9184f5185c 100644 --- a/docs/tips-and-tricks.md +++ b/docs/tips-and-tricks.md @@ -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.