summarylogtreecommitdiffstats
path: root/register-completions.zsh
blob: b6f9127a3a4c34adb82a70af5cb93039ff9c455b (plain)
1
2
3
4
5
6
7
8
9
10
11
#compdef dotnet
# zsh parameter completion for the dotnet CLI

_dotnet() 
{
  local completions=("$(dotnet complete "$words")")

  [[ -n "$completions" ]] && compadd -- "${(ps:\n:)completions}"
}

_dotnet "$@"