cswimr/home
Archived
Template
1
0
Fork 0
This repository has been archived on 2024-11-16. You can view files and clone it, but cannot push or open issues or pull requests.
home/.zshc/completion/dotnet.zsh

20 lines
427 B
Bash
Raw Normal View History

2024-10-27 20:03:59 -04:00
# zsh parameter completion for the dotnet CLI
_dotnet_zsh_complete()
{
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 assignment, don't remove spaces!
_values = "${(ps:\n:)completions}"
}
compdef _dotnet_zsh_complete dotnet