File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,16 @@ For example: `deno un` -> <kbd>Tab</kbd> -> `deno uninstall`.
1616
1717``` bash
1818deno completions bash > deno.bash
19- sudo mv deno.bash /usr/local/etc/bash_completion.d/
20- source /usr/local/etc/bash_completion.d/deno.bash
19+
20+ if [ -d " /usr/local/etc/bash_completion.d/" ]; then
21+ sudo mv deno.bash /usr/local/etc/bash_completion.d/
22+ source /usr/local/etc/bash_completion.d/deno.bash
23+ elif [ -d " /usr/share/bash-completion/completions/" ]; then
24+ sudo mv deno.bash /usr/share/bash-completion/completions/
25+ source /usr/share/bash-completion/completions/deno.bash
26+ else
27+ echo " Please move deno.bash to the appropriate bash completions directory"
28+ fi
2129```
2230
2331### Configure PowerShell shell completion
You can’t perform that action at this time.
0 commit comments