Skip to content

jungomi/yarn-bash-completion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yarn Bash Completion

Simple bash completion for yarn.

Completion features

  • Subcommands
  • Options / Flags
  • yarn run: Scripts specified in package.json of the current directory.
  • yarn remove: Installed dependencies listed in package.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 invoking yarn link without any arguments in the directory of a module, which can then be used in another project by running yarn link package-name.
  • yarn why: The packages in node_modules of the current directory.

Installation

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

About

Simple bash completion for yarn

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages