Merge pull request #1550 from nwinkler/ng-check-completion

Added a check for the ng command in ng completion
pull/1551/head
Nils Winkler 2020-04-06 16:17:08 +02:00 committed by GitHub
commit e33e4eeb00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# . <(ng completion --bash) obselete
if _command_exists ng; then
# No longer supported, please see https://github.com/angular/angular-cli/issues/11043
# Fix courtesy of https://stackoverflow.com/questions/50194674/ng-completion-no-longer-exists
# . <(ng completion --bash)
NG_COMMANDS="add build config doc e2e generate help lint new run serve test update version xi18n"
complete -W "$NG_COMMANDS" ng
NG_COMMANDS="add build config doc e2e generate help lint new run serve test update version xi18n"
complete -W "$NG_COMMANDS" ng
fi