diff --git a/news/3031.zshcompletion.md b/news/3031.zshcompletion.md new file mode 100644 index 0000000000..6d2e14cd10 --- /dev/null +++ b/news/3031.zshcompletion.md @@ -0,0 +1 @@ +Fix zsh completions diff --git a/src/pdm/cli/completions/pdm.zsh b/src/pdm/cli/completions/pdm.zsh index 6069396ec6..fc5d8ef71f 100644 --- a/src/pdm/cli/completions/pdm.zsh +++ b/src/pdm/cli/completions/pdm.zsh @@ -51,7 +51,7 @@ _pdm() { {-I,--ignore-python}'[Ignore the Python path saved in .pdm-python]' \ '--no-cache:Disable the cache for the current command. [env var: PDM_NO_CACHE]' \ '--pep582:Print the command line to be eval by the shell for PEP 582:shell:(zsh bash fish tcsh csh)' \ - {-n,--non-interactive}"[Don't show interactive prompts but use defaults. \[env var: PDM_NON_INTERACTIVE\]]" + {-n,--non-interactive}"[Don't show interactive prompts but use defaults. \[env var: PDM_NON_INTERACTIVE\]]" \ '*:: :->_subcmds' \ && return 0