dotnet.plugin.zsh 679 B

1234567891011121314151617181920212223242526
  1. # This scripts is copied from (MIT License):
  2. # https://raw.githubusercontent.com/dotnet/sdk/main/scripts/register-completions.zsh
  3. #compdef dotnet
  4. _dotnet_completion() {
  5. local -a completions=("${(@f)$(dotnet complete "${words}")}")
  6. compadd -a completions
  7. _files
  8. }
  9. compdef _dotnet_completion dotnet
  10. # Aliases bellow are here for backwards compatibility
  11. # added by Shaun Tabone (https://github.com/xontab)
  12. alias dn='dotnet new'
  13. alias dr='dotnet run'
  14. alias dt='dotnet test'
  15. alias dw='dotnet watch'
  16. alias dwr='dotnet watch run'
  17. alias dwt='dotnet watch test'
  18. alias ds='dotnet sln'
  19. alias da='dotnet add'
  20. alias dp='dotnet pack'
  21. alias dng='dotnet nuget'
  22. alias db='dotnet build'