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 #