hchbaw/auto-fu.zsh

completion for npm is super slow

Closed this issue · 3 comments

Type 'npm' then space and another character. Another of these lines is printed every second

$ npm egrep: empty (sub)expression
egrep: empty (sub)expression
egrep: empty (sub)expression
egrep: empty (sub)expression
egrep: empty (sub)expression
egrep: empty (sub)expression
...

Hi, @ovikholt ! Thank you very much for your feedback.

Unfortunately, I cannot reproduce. Dose npm's completion work correctly without auto-fu.zsh?

@ovikholt here's the answer: http://segmentfault.com/q/1010000000743734/a-1020000000743738
Which links to this: https://docs.npmjs.com/cli/completion

This solves the problem for me. Unfortunately, npm completion itself is super slow (npm/npm#6671). In the meantime I've disabled it by commenting this out.

@hchbaw I think you can close this. This isn't auto-fu's fault.

@chenglou thank you very much for your efforts.