刚刚更新为使用最新版本的 Angular CLI (6.0)。
如何为 ng 二进制文件设置 bash 补全? 曾经是
. <(ng completion --bash)
在~/.bashrc
文件中,但现在不再了。
这还能实现吗?
最佳答案
根据this帖子:
The completion command has been removed as the functionality no longer aligns with this version.
您可以找到此的 Github 票证 here .
作为解决方法,您可以在命令行中运行此命令:
NG_COMMANDS="add build config doc e2e generate help lint new run serve test update version xi18n"
complete -W "$NG_COMMANDS" ng
关于angular - ng 完成不再存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50194674/