From 37f385b1935b41fa1ebf329bc10644e6ab96cb03 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Tue, 23 Nov 2021 01:12:41 +0100 Subject: [PATCH] completions/npm: offer package completions for "npm add" and "npm i" Closes #8472 --- share/completions/npm.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/npm.fish b/share/completions/npm.fish index 986c734b0..d4f277eb0 100644 --- a/share/completions/npm.fish +++ b/share/completions/npm.fish @@ -204,4 +204,4 @@ complete -f -c npm -n __fish_npm_needs_command -a unpublish -d 'Remove a package complete -f -c npm -n __fish_npm_needs_command -a unstar -d 'Remove star from a package' complete -f -c npm -n __fish_npm_needs_command -a version -d 'Bump a package version' complete -f -c npm -n __fish_npm_needs_command -a whoami -d 'Display npm username' -complete -f -c npm -n '__fish_seen_subcommand_from install; and not __fish_is_switch' -a "(__yarn_filtered_list_packages \"$npm_install\")" +complete -f -c npm -n '__fish_seen_subcommand_from add i install; and not __fish_is_switch' -a "(__yarn_filtered_list_packages \"$npm_install\")"