Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-15T06:29:30.000Z (10 months ago)
- Last Synced: 2024-03-15T07:42:36.494Z (10 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
![GitHub License](https://img.shields.io/github/license/lzy1960/zsh-npm-aliases?style=for-the-badge)
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
```