Simple bash completion for yarn.
- Subcommands
- Options / Flags
yarn run: Scripts specified inpackage.jsonof the current directory.yarn remove: Installed dependencies listed inpackage.jsonof the current directory.yarn global remove: Globally installed packages, which are automatically listed in$HOME/.config/yarn/global/package.json.yarn link/yarn unlink: Packages that have been linked by invokingyarn linkwithout any arguments in the directory of a module, which can then be used in another project by runningyarn link package-name.yarn why: The packages innode_modulesof the current directory.
Clone this repository and add a line to your .bashrc to automatically source
the yarn.bash-completion file.
echo "source $(pwd)/yarn.bash-completion" >> ~/.bashrcOr create a symbolic link in /etc/bash_completion.d/.
ln -s $(pwd)/yarn.bash-completion /etc/bash_completion.d/yarn.bash-completionAlternatively you can simply download yarn.bash_completion without cloning the
repository.
curl -Lo /etc/bash_completion.d/yarn.bash-completion https://raw.githubusercontent.com/jungomi/yarn-bash-completion/master/yarn.bash-completion