With the advent of macOS Catalina and Xcode 11/Swift 5.1, I'm migrating from
zsh. This seems reasonable since
zsh is now the default shell for Catalina.
The file genereated by
swift package completion-tool generate-zsh-script is giving the following error when the shell starts:
_swift:1: command not found: _arguments
Based on https://scriptingosx.com/2019/07/moving-to-zsh-part-5-completions/,
autoload -Uz compinit && compinit was added to the
.zshrc file. Then the error changed to "_arguments:comparguments:325: can only be called from completion function".
swift package completion-tool generate-zsh-script generated script expected to work for Catalina/Swift 5.1? Any information on how to get Swift completions to work in zsh?