formatted npm completion and used helper function

pull/1782/head
Gurkirat Singh 2021-01-10 19:28:57 +05:30
parent a838146fb2
commit bdb3f29cc6
No known key found for this signature in database
GPG Key ID: CFD64E1DCB3DA835
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
# npm (Node Package Manager) completion
# https://docs.npmjs.com/cli/completion
if command -v npm &>/dev/null
if _command_exists npm
then
eval "$(npm completion)"
eval "$(npm completion)"
fi