/zsh-better-pnpm-completion

Better completion for pnpm

Primary LanguageShellMIT LicenseMIT

zsh-better-pnpm-completion

Better completion for pnpm

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

  • Makes pnpm install recommendations from pnpm cache
  • Makes pnpm uninstall recommendations from dependencies/devDependencies
  • Shows detailed information on script contents for pnpm run
  • Falls back to default pnpm completions if we don't have anything better

Installation

Using Antigen

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

antigen bundle akccakcctw/zsh-better-pnpm-completion

Using zplug

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

zplug "akccakcctw/zsh-better-pnpm-completion", defer:2

Using zgen

Include the load command in your .zshrc

zgen load akccakcctw/zsh-better-pnpm-completion

As an Oh My ZSH! custom plugin

Clone zsh-better-pnpm-completion into your custom plugins repo

git clone https://github.com/akccakcctw/zsh-better-pnpm-completion ~/.oh-my-zsh/custom/plugins/zsh-better-pnpm-completion

Then load as a plugin in your .zshrc

plugins+=(zsh-better-pnpm-completion)

Manually

Clone this repository somewhere (~/.zsh-better-pnpm-completion for example)

git clone https://github.com/akccakcctw/zsh-better-pnpm-completion.git ~/.zsh-better-pnpm-completion

Then source it in your .zshrc

source ~/.zsh-better-pnpm-completion/zsh-better-pnpm-completion.plugin.zsh

License

MIT © RexTsou