mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-06 10:08:47 +00:00
completions/npm: Allow files for "install"
Fixes #6596
[ci skip]
(cherry picked from commit 56040d2d7f
)
This commit is contained in:
parent
5c1cf0619a
commit
ec07ad323c
1 changed files with 4 additions and 4 deletions
|
@ -128,10 +128,10 @@ complete -f -c npm -n "__fish_npm_needs_command" -a 'set' -d 'Sets the config ke
|
|||
|
||||
# install
|
||||
for c in 'install' 'isntall' 'i'
|
||||
complete -f -c npm -n '__fish_npm_needs_command' -a "$c" -d 'install a package'
|
||||
complete -f -c npm -n "__fish_npm_using_command $c" -l save-dev -d 'Save to devDependencies in package.json'
|
||||
complete -f -c npm -n "__fish_npm_using_command $c" -l save -d 'Save to dependencies in package.json'
|
||||
complete -f -c npm -n "__fish_npm_using_command $c" -s g -l global -d 'Install package globally'
|
||||
complete -c npm -n '__fish_npm_needs_command' -a "$c" -d 'install a package'
|
||||
complete -c npm -n "__fish_npm_using_command $c" -l save-dev -d 'Save to devDependencies in package.json'
|
||||
complete -c npm -n "__fish_npm_using_command $c" -l save -d 'Save to dependencies in package.json'
|
||||
complete -c npm -n "__fish_npm_using_command $c" -s g -l global -d 'Install package globally'
|
||||
end
|
||||
|
||||
# list
|
||||
|
|
Loading…
Reference in a new issue