#! /bin/zsh -f if (command which -s pnpm) npm () { case $@ in *-g*) command npm $@;; *) pnpm $@;; esac }