deno completions
命令行用法
o completions [OPTIONS] [shell]
将 shell 补全脚本输出到标准输出。
deno completions bash > /usr/local/etc/bash_completion.d/deno.bash
source /usr/local/etc/bash_completion.d/deno.bash
示例 Jump to heading
配置 Bash shell 自动补全 Jump to heading
deno completions bash > /usr/local/etc/bash_completion.d/deno.bash
source /usr/local/etc/bash_completion.d/deno.bash
配置 PowerShell shell 自动补全 Jump to heading
deno completions powershell | Out-String | Invoke-Expression
配置 zsh shell 自动补全 Jump to heading
首先将以下内容添加到你的 .zshrc
文件中:
fpath=(~/.zsh/completion $fpath)
autoload -U compinit
compinit
然后运行以下命令:
deno completions zsh > _deno
mv _deno ~/.zsh/completion/_deno
autoload -U compinit && compinit
配置 fish shell 自动补全 Jump to heading
deno completions fish > completions.fish
chmod +x ./completions.fish