Skip to content

lzy1960/zsh-npm-aliases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

zsh-npm-aliases

GitHub License

Aliases for npm, yarn and pnpm in zsh

Installation

  1. 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
  1. Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):
plugins=([...plugins] npm-aliases)
  1. Start a new terminal session.

Usage

ni    # npm install
nst   # npm run start
pi    # pnpm install
pd    # pnpm run dev
...

Detailed aliases can refer to the source code

License

This project is licensed under MIT license. For the full text of the license, see the LICENSE file.

Update

git -C ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/npm-aliases pull

Releases

No releases published

Packages

No packages published

Languages