mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
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.
This commit is contained in:
parent
b619f34777
commit
a733296980
2 changed files with 2 additions and 2 deletions
|
@ -58,6 +58,6 @@ function __bower_list_installed
|
||||||
end
|
end
|
||||||
|
|
||||||
complete -c bower -n "__fish_is_first_token" -x -a '(__bower_cmds)'
|
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 install" -x -a '(__bower_matching_pkgs)'
|
||||||
complete -c bower -n "__fish_seen_subcommand_from uninstall" -x -a '(__bower_list_installed)'
|
complete -c bower -n "__fish_seen_subcommand_from uninstall" -x -a '(__bower_list_installed)'
|
||||||
|
|
|
@ -39,7 +39,7 @@ function __yarn_installed_packages
|
||||||
end
|
end
|
||||||
|
|
||||||
if type -q jq
|
if type -q jq
|
||||||
jq -r '.dependencies | to_entries[] | .key' bower.json
|
jq -r '.dependencies | to_entries[] | .key' $package_json
|
||||||
else
|
else
|
||||||
set -l depsFound 0
|
set -l depsFound 0
|
||||||
for line in (cat $package_json)
|
for line in (cat $package_json)
|
||||||
|
|
Loading…
Reference in a new issue