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

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

šŸ‘‹ Kindness is contagious

Please leave a ā¤ļø or a friendly comment on this post if you found it helpful!

Okay