/yarn-completion

ZSH completion plugin for yarn

Primary LanguageShellOtherNOASSERTION

yarn-completion

This plugin is a fork of zsh-better-npm-completion. It works the same way, as you can see with npm demo:

  • Makes yarn add recommendations from npm cache
  • Makes yarn remove recommendations from dependencies/devDependencies
  • Shows detailed information on script contents for npm run

Installation

Using Antigen

Bundle zsh-better-npm-completion in your .zshrc

antigen bundle buonomo/yarn-completion

Using zplug

Load zsh-better-npm-completion as a plugin in your .zshrc

zplug "buonomo/yarn-completion", nice:10

Using zgen

Include the load command in your .zshrc

zgen load buonomo/yarn-completion

As an Oh My ZSH! custom plugin

Clone yarn-completion into your custom plugins repo

git clone https://github.com/buonomo/yarn-completion ~/.oh-my-zsh/custom/plugins/yarn-completion

Then load as a plugin in your .zshrc

plugins+=(yarn-completion)

Manually

Clone this repository somewhere (~/.yarn-completion for example)

git clone https://github.com/buonomo/yarn-completion.git ~/.yarn-completion

Then source it in your .zshrc

source ~/.yarn-completion/yarn-completion.plugin.zsh

License

MIT © Ulysse Buonomo