https://github.com/akoenig/npm-run.plugin.zsh
Autocompletion support for `npm run`.
https://github.com/akoenig/npm-run.plugin.zsh
Last synced: 7 months ago
JSON representation
Autocompletion support for `npm run`.
- Host: GitHub
- URL: https://github.com/akoenig/npm-run.plugin.zsh
- Owner: akoenig
- Created: 2015-06-30T11:05:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-03-16T12:29:26.000Z (over 4 years ago)
- Last Synced: 2024-04-26T04:20:46.261Z (over 1 year ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 54
- Watchers: 3
- Forks: 7
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
Awesome Lists containing this project
- awesome-zsh-plugins - npm-run - Autocompletion support for `npm run`. (Completions / ZSH on Windows)
- fucking-awesome-zsh-plugins - npm-run - Autocompletion support for `npm run`. (Completions / ZSH on Windows)
- awesome-zsh-plugins - npm-run - Autocompletion support for `npm run`. (Completions / Zinit (née zplugin))
README
# npm-run.plugin.zsh
> Autocompletion support for `npm run`.
## Installation
Install with npm or manually.
### Via npm
$ npm install -g npm-run.plugin.zsh
After that you have to restart your `zsh`.
**Important note:** `npm-run.plugin.zsh` utilizes `GNU Grep` under the hood. Please make sure that you have the _GNU Command Line Tools_ installed.
### Manually
1. Clone this repository to your favorite path (e.g. `~/zsh-extensions/npm-run.plugin.zsh`)
2. `source` the file in your `.zshrc`
3. Restart your `zsh`
```sh
# Your .zshrc
source $HOME/zsh-extensions/npm-run.plugin.zsh/npm-run.plugin.zsh
```
### Via antigen
$ antigen bundle akoenig/npm-run.plugin.zsh
## Usage
Switch to your project (a.k.a. the place where the `package.json` lives):
$ npm run
Exemplary output:
λ myproject → git master* → npm run
build watch dev
## Author
Copyright 2015, [André König](http://andrekoenig.info) (andre.koenig@posteo.de)