diff options
Diffstat (limited to 'testing/dotnet31-bootstrap/cli_add-zsh-compdef-completion-script.patch')
-rw-r--r-- | testing/dotnet31-bootstrap/cli_add-zsh-compdef-completion-script.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/testing/dotnet31-bootstrap/cli_add-zsh-compdef-completion-script.patch b/testing/dotnet31-bootstrap/cli_add-zsh-compdef-completion-script.patch deleted file mode 100644 index 6bba2504342..00000000000 --- a/testing/dotnet31-bootstrap/cli_add-zsh-compdef-completion-script.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 4c74721e1f5da9642adab03075dda2f55719ac7b Mon Sep 17 00:00:00 2001 -Patch-Source: https://github.com/dotnet/sdk/pull/14239 -From: Esgariot <esgariot@icloud.com> -Date: Mon, 19 Oct 2020 23:42:37 +0200 -Subject: [PATCH 1/1] Add zsh compdef completion script. - -Continuing off of PR 13384 in upstream. -This commit is ready to be rebased to include appropriate co-authors -before merging PR. - ---- - scripts/register-completions.zsh | 13 +++---------- - 1 file changed, 3 insertions(+), 10 deletions(-) - -diff --git a/scripts/register-completions.zsh b/scripts/register-completions.zsh -index 8eebe9a867..faa32fef71 100644 ---- a/scripts/register-completions.zsh -+++ b/scripts/register-completions.zsh -@@ -1,10 +1,3 @@ --# zsh parameter completion for the dotnet CLI -- --_dotnet_zsh_complete() --{ -- local completions=("$(dotnet complete "$words")") -- -- reply=( "${(ps:\n:)completions}" ) --} -- --compctl -K _dotnet_zsh_complete dotnet -+#compdef dotnet -+local completions=("$(dotnet complete "$words")") -+[[ -n "$completions" ]] && compadd -- "${(ps:\n:)completions}" --- -2.34.1 - |