So you've build a fantastic node.js CLI, and even took the effort of adding
zsh completion files! However, now you're telling your users to add the sourcing of this file to their
.profile, or similair intialization script..
No need! Simply add:
npm install shell-completion --save
And in your
shell-completion to install the completion files:
Shell-completion will link your completion files to the specified shell's and platform's default location.
A pull request for Powershell support would be very welcome! Should be trivial for someone familiar with the platform
- Supports Bash and Zsh
- Supports Homebrew installation prefixes on OS X
- Logs all errors if anything fails, but always exits without an error code. This means adding
postinstallis completely safe, and will never break the rest of your application's installation!
Usage: link [options] [command]
bash <completionfile> Link <completionfile> for usage in bash
zsh <completionfile> Link <completionfile> for usage in zshell
-h, --help output usage information
-V, --version output the version number