npr_autocomplete.sh
in your home (~
) directory..bashrc
file: source ~/npr_autocomplete.sh
npr <tab> <tab>
and it will read the scripts
section of your package.json
file and try to autocomplete from the scripts.npm run <your-command>
.Your system need to have bash
, compgen
, complete
and node
already installed on your system.