I created a a CLI tool with PicoCLI. The library generates an auto-complete script. This works fine when sourced manually, i.e.
source /path/to/script
But when I put the line into ~/.zshrc
it doesn't. No errors, just doesn't work. Tried different things like . /path/to/script
, source <(cat /path/to/script)
, added execution permissions, added autoload -U +X compinit && compinit
& autoload -U +X bashcompinit && bashcompinit
(see here). No success, no idea what's wrong. According to the docs it should be fine (see here).
Thanks for any suggestion!