36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
|
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/src/sdk/scripts/register-completions.zsh b/src/sdk/scripts/register-completions.zsh
|
||
|
index 8eebe9a867..faa32fef71 100644
|
||
|
--- a/src/sdk/scripts/register-completions.zsh
|
||
|
+++ b/src/sdk/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
|
||
|
|