I'm using OS X 10.10.3, I have installed zsh. And every time when I want to run a specific test I configured in package.json to execute npm run tdd followed by the test file.

In linux systems if I press tab after this command:

npm run tdd ~/

will show me the folders or will attempt to autocomplete the instruction, however this doesn't happen in zsh on OS X, it just makes the noise like there are no recommendations for this.

How can this be fixed?


Add the following to your .zshrc:

autoload -Uz compinit

that should get you going. Now, read

man zshcompsys
  • it doesn't work :(, reading zshcompsys though. – Nico Jan 27 '16 at 20:04
  • sorry, could not find anything that help with this :( – Nico Jan 28 '16 at 14:03
  • @Nico From man zshcompsys: "If the system was installed completely, it should be enough to call the shell function compinit from your initialization file;". – fd0 Jan 28 '16 at 14:36
  • Calling compinit doesn't fix de issue – Nico Jan 28 '16 at 15:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .