Skip to content

Commit

Permalink
docs: update autocompletion docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hverlin committed Dec 4, 2024
1 parent 20525d2 commit da67a4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ or [running tasks](/tasks/)
this step is not necessary. You can use it to make sure `mise` is correctly setup.
:::

Install `node` and set it as the global default:
As an example, here is how you can install `node` and set it as the global default:

```sh
mise use --global node@22
Expand Down
8 changes: 7 additions & 1 deletion docs/installing-mise.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,13 @@ mise completion bash > /etc/bash_completion.d/mise
```

```sh [zsh]
# This requires zsh to be configured. If you e.g. use oh-my-zsh, it should work out of the box.
# If you use oh-my-zsh, there is a `mise` plugin. Update your .zshrc file with:
# plugins=(... mise)

# Otherwise, look where zsh search for completions with
echo $fpath | tr ' ' '\n'

# if you installed zsh with `apt-get` for example, this will work:
mkdir -p /usr/local/share/zsh/site-functions
mise completion zsh > /usr/local/share/zsh/site-functions/_mise
```
Expand Down

0 comments on commit da67a4b

Please sign in to comment.