]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/dotnet/dotnet.plugin.zsh
8ea31cdbd913bad4f1ad02793756aa2136c1a74a
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / dotnet / dotnet.plugin.zsh
1 # This scripts is copied from (MIT License):
2 # https://github.com/dotnet/toolset/blob/master/scripts/register-completions.zsh
3
4 _dotnet_zsh_complete() 
5 {
6   local completions=("$(dotnet complete "$words")")
7
8   # If the completion list is empty, just continue with filename selection
9   if [ -z "$completions" ]
10   then
11     _arguments '*::arguments: _normal'
12     return
13   fi
14
15   # This is not a variable assignment, don't remove spaces!
16   _values = "${(ps:\n:)completions}"
17 }
18
19 compdef _dotnet_zsh_complete dotnet
20
21 # Aliases bellow are here for backwards compatibility
22 # added by Shaun Tabone (https://github.com/xontab) 
23
24 alias dn='dotnet new'
25 alias dr='dotnet run'
26 alias dt='dotnet test'
27 alias dw='dotnet watch'
28 alias dwr='dotnet watch run'
29 alias ds='dotnet sln'
30 alias da='dotnet add'
31 alias dp='dotnet pack'
32 alias dng='dotnet nuget'
33 alias db='dotnet build'