https://github.com/lzy1960/zsh-npm-aliases
Aliases for npm, yarn and pnpm in zsh
https://github.com/lzy1960/zsh-npm-aliases
alias aliases npm pnpm yarn zsh
Last synced: 4 months ago
JSON representation
Aliases for npm, yarn and pnpm in zsh
- Host: GitHub
- URL: https://github.com/lzy1960/zsh-npm-aliases
- Owner: lzy1960
- License: mit
- Created: 2023-01-19T04:55:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-03T00:56:15.000Z (over 1 year ago)
- Last Synced: 2025-02-01T13:22:24.653Z (5 months ago)
- Topics: alias, aliases, npm, pnpm, yarn, zsh
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zsh-npm-aliases

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