From d731f9f9adbc11f918e918443c5bff4149fc6681 Mon Sep 17 00:00:00 2001 From: Yurii H Date: Sat, 13 Feb 2021 21:36:04 +0200 Subject: [PATCH] fix: zsh completion is now autoloadable (#1856) --- lib/completion-templates.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/completion-templates.ts b/lib/completion-templates.ts index 27c9e00b6..b543c5ddd 100644 --- a/lib/completion-templates.ts +++ b/lib/completion-templates.ts @@ -28,7 +28,8 @@ complete -o default -F _yargs_completions {{app_name}} ###-end-{{app_name}}-completions-### `; -export const completionZshTemplate = `###-begin-{{app_name}}-completions-### +export const completionZshTemplate = `#compdef {{app_name}} +###-begin-{{app_name}}-completions-### # # yargs command completion script #