zsh-config/functions/_dotnet
Robert Morrison a029d2f348
Mega Commit
This commit is a sin.
But necessary
2022-12-05 21:03:45 +00:00

16 lines
344 B
Plaintext

#compdef dotnet
_dotnet()
{
local completions=("$(dotnet complete "$words")")
# If the completion list is empty, just continue with filename selection
if [ -z "$completions" ]
then
_arguments '*::arguments: _normal'
return
fi
# This is not a variable assigment, don't remove spaces!
_values = "${(ps:\n:)completions}"
}