dotnet-installer/scripts/register-completions.zsh

12 lines
278 B
Bash
Raw Normal View History

2017-03-02 19:36:51 -08:00
# Parameter completion for the dotnet CLI
_dotnet_zsh_complete()
{
local dotnetPath=$words[1]
local completions=("$(./bin/Debug/netcoreapp1.0/osx.10.11-x64/publish/dotnet complete "$words")")
reply=( "${(ps:\n:)completions}" )
}
compctl -K _dotnet_zsh_complete dotnet