From 9e8ecedfea44ee0c76a48d29e166d05ae01ec49e Mon Sep 17 00:00:00 2001 From: Mandeep Singh Date: Mon, 15 Jun 2020 21:39:17 +0530 Subject: [PATCH] docs: added autocompletion example for zsh (#6298) --- docs/getting_started/setup_your_environment.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/getting_started/setup_your_environment.md b/docs/getting_started/setup_your_environment.md index fd04cd839d..742e44e4fc 100644 --- a/docs/getting_started/setup_your_environment.md +++ b/docs/getting_started/setup_your_environment.md @@ -29,13 +29,22 @@ The supported shells are: - powershell - elvish -Example: +Example (bash): ```shell deno completions bash > /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 Because Deno requires the use of file extensions for module imports and allows