Simple bash completion for yarn.
- Subcommands
- Options / Flags
yarn run
: Scripts specified inpackage.json
of the current directory.yarn remove
: Installed dependencies listed inpackage.json
of 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 link
without 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_modules
of 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" >> ~/.bashrc
Or create a symbolic link in /etc/bash_completion.d/
.
ln -s $(pwd)/yarn.bash-completion /etc/bash_completion.d/yarn.bash-completion
Alternatively 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