npm completions: Call command npm

npm is often wrapped by a function.

Fixes #3158.

(cherry picked from commit 3a0d417b9e)
This commit is contained in:
Fabian Homborg 2016-06-21 12:02:48 +02:00
parent 7e56d6385e
commit bc8ec46ef9

View File

@ -49,7 +49,7 @@ function __fish_complete_npm --description "Complete the commandline using npm's
set COMP_CWORD (math $COMP_CWORD + 1)
set COMP_LINE $COMP_LINE ""
end
npm completion -- $COMP_LINE ^/dev/null
command npm completion -- $COMP_LINE ^/dev/null
end
# use npm completion for most of the things,