From a73329698092ca610813da81dac1c595e26ff26e Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Fri, 20 Apr 2018 09:12:34 -0500 Subject: [PATCH] Correct bower and yarn completions bower was calling `__fish_should_complete_args`, the old name for `__fish_should_complete_switches.` yarn was parsing bower.json instead of package.json. --- share/completions/bower.fish | 2 +- share/completions/yarn.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/bower.fish b/share/completions/bower.fish index e695f6b01..d4c45c949 100644 --- a/share/completions/bower.fish +++ b/share/completions/bower.fish @@ -58,6 +58,6 @@ function __bower_list_installed end complete -c bower -n "__fish_is_first_token" -x -a '(__bower_cmds)' -complete -c bower -n "__fish_should_complete_args" -x -a '(__bower_args)' +complete -c bower -n "__fish_should_complete_switches" -x -a '(__bower_args)' complete -c bower -n "__fish_seen_subcommand_from install" -x -a '(__bower_matching_pkgs)' complete -c bower -n "__fish_seen_subcommand_from uninstall" -x -a '(__bower_list_installed)' diff --git a/share/completions/yarn.fish b/share/completions/yarn.fish index e1732f61a..1564ad644 100644 --- a/share/completions/yarn.fish +++ b/share/completions/yarn.fish @@ -39,7 +39,7 @@ function __yarn_installed_packages end if type -q jq - jq -r '.dependencies | to_entries[] | .key' bower.json + jq -r '.dependencies | to_entries[] | .key' $package_json else set -l depsFound 0 for line in (cat $package_json)