fish-shell/share
Thales Mello a071deaf61 Make npm run-script completion faster with jq (#4241)
* Make npm run-script completion faster with `jq`

When jq is available, it's actually faster to invoke jq and parse the `package.json`
invoking the `npm` command.

Also, prior to this commit, both `__fish_complete_npm` and `__fish_npm_run` were being run
whenever completions for `npm run` subcommand was being used, which was actually making
repetitive work (invoking npm command twice). This pull request is supposed to make completion
without `jq` faster as well

* Refactor npm.fish for code reutilization

Created function to handle both cases of npm run completion parse, with or without `jq` completion.

* Remove unecessary blank line
2017-07-26 13:31:35 +02:00
..
completions Make npm run-script completion faster with jq (#4241) 2017-07-26 13:31:35 +02:00
functions fix bug introduced by commit 86af63cd3 2017-07-25 14:03:40 -07:00
groff workaround broken groff man page config 2016-10-19 13:43:04 -07:00
tools Ignore comments when creating man page completion 2017-07-22 21:32:56 -07:00
__fish_build_paths.fish.in Rename "snippets" to "conf" internally, and document them as snippets 2016-04-06 09:33:09 +08:00
config.fish harden *share/config.fish* against an unset var 2017-07-02 21:16:48 -07:00