Why is it that 80% of the developers in the world still assume everybody runs a *nix system?
Initially I believe most people using node were mac users. That seems to be changing though (esp with node moving more into enterprise). I know one person who writes JS on Windows. I’m sure there are more of you, but they aren’t in my circles.
Any ideas how to do this on Windows?
I started with this https://docs.npmjs.com/cli/completion and then modified it work for my purposes. From what I can tell the base npm completion script doesn’t support windows.
I made it work for zsh first (that’s what I use). Then spent another 30 min and figured out bash as well. Windows wasn’t in scope for me, and would have taken a lot of extra time to figure out.
I don’t know how / if autocompletion works on windows.
Soon however you should have less of this kind of pain since windows 10 will support bash.
Perhaps the biggest surprise to come from Microsoft's Build developer conference last week was the Windows Subsystem…arstechnica.com
If you can find a autocomplete script for windows that works for something else, modifying that would be the way to go. Keep this in mind: https://docs.npmjs.com/files/folders#cache