https://github.com/zfben/zsh-npm
A zsh plugin for using `n` as `npm` aliases with `noglob` prefix and more.
https://github.com/zfben/zsh-npm
Last synced: 3 months ago
JSON representation
A zsh plugin for using `n` as `npm` aliases with `noglob` prefix and more.
- Host: GitHub
- URL: https://github.com/zfben/zsh-npm
- Owner: zfben
- License: gpl-3.0
- Created: 2021-12-22T09:44:58.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-20T00:49:50.000Z (almost 2 years ago)
- Last Synced: 2025-02-22T17:47:07.187Z (9 months ago)
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - npm (zfben) - Use `n` as `npm` aliases with `noglob` prefix and more. Based on the Oh-My-Zsh [npm](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/npm) plugin. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - npm (zfben) - Use `n` as `npm` aliases with `noglob` prefix and more. Based on the Oh-My-Zsh <b><code>182718⭐</code></b> <b><code> 26277🍴</code></b> [npm](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/npm)) plugin. (Plugins / ZSH on Windows)
README
# zsh-npm


A zsh plugin for using `n` as `npm` aliases with `noglob` prefix and more.
| Alias | Command
| --- | ---
| `n` | `noglob npm`
| `ni` | `noglob npm install`
| `nu` | `noglob npm update`
| `nr` | `noglob npm run`
| `ne` | `noglob npm exec`
| `nb` | `noglob npm run build`
| `nd` | `noglob npm run dev`
| `nt` | `noglob npm run test`
| `ns` | `noglob npm run start`
| `nl` | `noglob npm run lint`
| `no` | `noglob npm outdated`
| `nci` | `noglob npm ci`
## Install
### Manual
```zsh
git clone --depth=1 https://github.com/zfben/zsh-npm.git ~/.zsh-npm
echo 'source ~/.zsh-npm/zsh-npm.plugin.zsh' >>~/.zshrc
```
### Using [oh-my-zsh](https://github.com/ohmyzsh/oh-my-zsh)
Execute `git clone --depth=1 https://github.com/zfben/zsh-npm.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-npm`. Add `zsh-npm` into plugins array in `.zshrc`