2020-02-15 19:19:57 +01:00
|
|
|
# This scripts is copied from (MIT License):
|
2023-12-06 09:22:06 +01:00
|
|
|
# https://raw.githubusercontent.com/dotnet/sdk/main/scripts/register-completions.zsh
|
2019-12-29 05:54:58 +01:00
|
|
|
|
2023-12-06 09:22:06 +01:00
|
|
|
#compdef dotnet
|
|
|
|
_dotnet_completion() {
|
|
|
|
local -a completions=("${(@f)$(dotnet complete "${words}")}")
|
|
|
|
compadd -a completions
|
|
|
|
_files
|
2019-12-29 05:54:58 +01:00
|
|
|
}
|
|
|
|
|
2023-12-06 09:22:06 +01:00
|
|
|
compdef _dotnet_completion dotnet
|
2019-12-29 05:54:58 +01:00
|
|
|
|
2020-02-15 19:19:57 +01:00
|
|
|
# Aliases bellow are here for backwards compatibility
|
2024-03-26 09:55:16 +01:00
|
|
|
# added by Shaun Tabone (https://github.com/xontab)
|
2019-12-29 05:54:58 +01:00
|
|
|
|
|
|
|
alias dn='dotnet new'
|
|
|
|
alias dr='dotnet run'
|
|
|
|
alias dt='dotnet test'
|
2020-02-11 01:39:20 +01:00
|
|
|
alias dw='dotnet watch'
|
|
|
|
alias dwr='dotnet watch run'
|
2023-02-01 10:51:31 +01:00
|
|
|
alias dwt='dotnet watch test'
|
2019-12-29 05:54:58 +01:00
|
|
|
alias ds='dotnet sln'
|
|
|
|
alias da='dotnet add'
|
|
|
|
alias dp='dotnet pack'
|
|
|
|
alias dng='dotnet nuget'
|
2021-11-27 02:23:08 +01:00
|
|
|
alias db='dotnet build'
|