1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-22 06:09:25 -05:00

docs: added autocompletion example for zsh (#6298)

This commit is contained in:
Mandeep Singh 2020-06-15 21:39:17 +05:30 committed by GitHub
parent f7d0e39892
commit 9e8ecedfea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,13 +29,22 @@ The supported shells are:
- powershell - powershell
- elvish - elvish
Example: Example (bash):
```shell ```shell
deno completions bash > /usr/local/etc/bash_completion.d/deno.bash deno completions bash > /usr/local/etc/bash_completion.d/deno.bash
source /usr/local/etc/bash_completion.d/deno.bash source /usr/local/etc/bash_completion.d/deno.bash
``` ```
Example (zsh):
```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.
### Editors and IDEs ### Editors and IDEs
Because Deno requires the use of file extensions for module imports and allows Because Deno requires the use of file extensions for module imports and allows