mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
docs: instructions for loading zsh completions (#6998)
This commit is contained in:
parent
67fe8cd848
commit
fdb2dab7cd
1 changed files with 23 additions and 2 deletions
|
@ -36,14 +36,35 @@ deno completions bash > /usr/local/etc/bash_completion.d/deno.bash
|
|||
source /usr/local/etc/bash_completion.d/deno.bash
|
||||
```
|
||||
|
||||
Example (zsh):
|
||||
Example (zsh without framework):
|
||||
|
||||
```shell
|
||||
mkdir ~/.zsh # create a folder to save your completions. it can be anywhere
|
||||
deno completions zsh > .zsh/_deno
|
||||
```
|
||||
|
||||
then add this to your `.zshrc`
|
||||
|
||||
```shell
|
||||
fpath=(~/.zsh $fpath)
|
||||
autoload -Uz compinit
|
||||
compinit -u
|
||||
```
|
||||
|
||||
and restart your terminal. note that if completions are still not loading, you
|
||||
may need to run `rm ~/.zcompdump/` to remove previously generated completions
|
||||
and then `compinit` to generate them again.
|
||||
|
||||
Example (zsh + oh-my-zsh) [recommended for zsh users] :
|
||||
|
||||
```shell
|
||||
mkdir ~/.oh-my-zsh/custom/plugins/deno
|
||||
deno completions zsh > ~/.oh-my-zsh/custom/plugins/deno/_deno
|
||||
```
|
||||
|
||||
After this add `deno` plugin under plugins tag in `~/.zshrc` file.
|
||||
After this add deno plugin under plugins tag in `~/.zshrc` file. for tools like
|
||||
`antigen` path will be `~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins` and
|
||||
command will be `antigen bundle deno` and so on.
|
||||
|
||||
### Editors and IDEs
|
||||
|
||||
|
|
Loading…
Reference in a new issue