npm-completion

命令自动完成

概要

source <(npm completion)

描述

命令自动完成。npm 通过bash提供了命令自动完成功能(包括 Bash for Windows 10 ):

> npm completion >> ~/.bashrc

# or Z shell

npm completion >> ~/.zshrc

重新加载shell配置文件:

> source ~/.bashrc

现在,在终端注入 npm ins ,然后按下 tab 键就会出现 install 了,不会再浪费时间去全部输入了。

results matching ""

    No results matching ""