DEV Community

Cover image for 🧰 zsh-pkgmanager-switcher - A ZSH JavaScript package manager switcher plugin
Matthieu Drouian
Matthieu Drouian

Posted on

🧰 zsh-pkgmanager-switcher - A ZSH JavaScript package manager switcher plugin

If you work daily on JavaScript projects with various package manager configurations (npm, yarn, pnpm ...) and you use a ZSH shell (with or without Oh my ZSH), I just released a ZSH plugin to switch the package manager.

This module allows you to automatically load the right package manager by opening your project

The plugin is installed as follows:

git clone <https://github.com/drouian-m/zsh-pkgmanager-switcher> ~/.zsh/zsh-pkgmanager-switcher
Enter fullscreen mode Exit fullscreen mode

Then declare it in your .zshrc file :

source ~/.zsh/zsh-pkgmanager-switcher/zsh-pkgmanager-switcher.zsh
Enter fullscreen mode Exit fullscreen mode

The complete installation documentation is available here : https://github.com/drouian-m/zsh-pkgmanager-switcher/blob/main/INSTALL.md

Demo

asciicast

Project link

https://github.com/drouian-m/zsh-pkgmanager-switcher

Top comments (0)