mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 09:28:31 +08:00
completions/npm: offer package completions for "npm add" and "npm i"
Closes #8472
This commit is contained in:
parent
7f86794881
commit
37f385b193
|
@ -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\")"
|
||||
|
|
Loading…
Reference in New Issue
Block a user