1 # This scripts is copied from (MIT License):
2 # https://github.com/dotnet/toolset/blob/master/scripts/register-completions.zsh
6 local completions=("$(dotnet complete "$words")")
8 # If the completion list is empty, just continue with filename selection
9 if [ -z "$completions" ]
11 _arguments '*::arguments: _normal'
15 # This is not a variable assignment, don't remove spaces!
16 _values = "${(ps:\n:)completions}"
19 compdef _dotnet_zsh_complete dotnet
21 # Aliases bellow are here for backwards compatibility
22 # added by Shaun Tabone (https://github.com/xontab)
26 alias dt='dotnet test'
27 alias dw='dotnet watch'
28 alias dwr='dotnet watch run'
31 alias dp='dotnet pack'
32 alias dng='dotnet nuget'
33 alias db='dotnet build'