mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-19 02:02:32 +01:00
Node plugin completely revamped. Added aliases.
This commit is contained in:
parent
3b1699b595
commit
66ac7ff0c2
2 changed files with 44 additions and 7 deletions
|
|
@ -1,15 +1,25 @@
|
|||
# node plugin
|
||||
|
||||
This plugin adds `node-docs` function that opens specific section in [Node.js](https://nodejs.org)
|
||||
documentation (depending on the installed version).
|
||||
This plugin provides many a aliases and a few `node-docs` functions.
|
||||
|
||||
To use it, add `node` to the plugins array of your zshrc file:
|
||||
## Aliases
|
||||
|
||||
```zsh
|
||||
plugins=(... node)
|
||||
```
|
||||
| Alias | Command |
|
||||
|:---------------------|:-------------------------------------------------------------------------------|
|
||||
| nd | node |
|
||||
| ndc | node --check |
|
||||
| nde | node --eval "script" |
|
||||
| ndh | node --help |
|
||||
| ndi | git --interactive |
|
||||
| ndr | git --require module |
|
||||
|----------------------|--------------------------------------------------------------------------------|
|
||||
| ndnd | node --no-depreciation |
|
||||
| ndnw | node --no-warnings |
|
||||
| ndtw | node --trace-warnings |
|
||||
| ndv8 | node --V8-options |
|
||||
|----------------------|--------------------------------------------------------------------------------|
|
||||
|
||||
## Usage
|
||||
## Functions
|
||||
|
||||
```zsh
|
||||
# Opens https://nodejs.org/docs/latest-v10.x/api/fs.html
|
||||
|
|
@ -17,3 +27,13 @@ $ node-docs fs
|
|||
# Opens https://nodejs.org/docs/latest-v10.x/api/path.html
|
||||
$ node-docs path
|
||||
```
|
||||
|
||||
This plugin adds `node-docs` function that opens specific section in [Node.js](https://nodejs.org)
|
||||
documentation (depending on the installed version).
|
||||
|
||||
## Add plugin
|
||||
To use it, add `node` to the plugins array of your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... node)
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue