Aliases for npm
, yarn
and pnpm
in zsh
- Clone this repository into
$ZSH_CUSTOM/plugins
(by default~/.oh-my-zsh/custom/plugins
)
git clone https://github.com/lzy1960/zsh-npm-aliases ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/npm-aliases
- Add the plugin to the list of plugins for Oh My Zsh to load (inside
~/.zshrc
):
plugins=([...plugins] npm-aliases)
- Start a new terminal session.
ni # npm install
nst # npm run start
pi # pnpm install
pd # pnpm run dev
...
Detailed aliases can refer to the source code
This project is licensed under MIT license. For the full text of the license, see the LICENSE file.
git -C ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/npm-aliases pull