title: Using source inside ~/.zshrc does not work
body: <p>I created a a CLI tool with PicoCLI. The library generates an auto-complete script. This works fine when sourced manually, i.e.</p>
  <pre><code>source /path/to/script
  </code></pre>
  <p>But when I put the line into <code>~/.zshrc</code> it doesn't. No errors, just doesn't work. Tried different things like <code>. /path/to/script</code>, <code>source &lt;(cat /path/to/script)</code>, added execution permissions, added <code>autoload -U +X compinit &amp;&amp; compinit</code> &amp; <code>autoload -U +X bashcompinit &amp;&amp; bashcompinit</code> (see <a href="https://stackoverflow.com/questions/3249432/can-a-bash-tab-completion-script-be-used-in-zsh/27853970#27853970">here</a>). No success, no idea what's wrong. According to the docs it should be fine (see <a href="https://picocli.info/autocomplete.html#_installing_completion_scripts_permanently_in_bashzsh" rel="nofollow noreferrer">here</a>).</p>
  <p>Thanks for any suggestion!</p>