Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Thanks, if I trigger for the first time I got this error: testfunc: no such file or directory: testfunc, and then trigger for the second time, testfunc run as expected, Is there reason why? Commented Jan 29, 2019 at 4:04
  • not without more detail on your exact setup. try from a zsh -f to clear out any other configuration Commented Jan 29, 2019 at 4:10
  • What exactly that depends on setup can cause the issue? I tried zsh -f then manually set fpath export fpath=(~/.zsh/functions $fpath), then autoload -U testfunc, and run > testfunc. Still the same error for first time run. Commented Jan 29, 2019 at 6:03
  • try strace or the like then. autoload is how all the tab completions get loaded, and I've never seen the error you report before Commented Jan 29, 2019 at 6:13
  • Does zsh -f ignores .zshrc file? I have fpath exported in .zshenv. Really confused but this task seems to be critical to my workflow, so I'll really appreciated if you can point it out a little more clearly, I'm normal zsh user, I can't understand some implication. Commented Jan 30, 2019 at 4:13