diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-07-06 18:09:04 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-07-06 18:09:04 +0800 |
| commit | 18666e3475d3a4180d9becc03cb105fcaa6c6801 (patch) | |
| tree | e80c0968dc91258afdbe5337c1478efd2f43a006 /dot-oh-my-zsh/plugins/node | |
| parent | bb533a817ed9449942905e0c5c8164f4474fbf0c (diff) | |
added submodule
Diffstat (limited to 'dot-oh-my-zsh/plugins/node')
| m--------- | dot-oh-my-zsh | 0 | ||||
| -rw-r--r-- | dot-oh-my-zsh/plugins/node/README.md | 19 | ||||
| -rw-r--r-- | dot-oh-my-zsh/plugins/node/node.plugin.zsh | 6 |
3 files changed, 0 insertions, 25 deletions
diff --git a/dot-oh-my-zsh b/dot-oh-my-zsh new file mode 160000 +Subproject 6fe84bf5c82da7b1f6d7c5ec3e5c447721ac8ce diff --git a/dot-oh-my-zsh/plugins/node/README.md b/dot-oh-my-zsh/plugins/node/README.md deleted file mode 100644 index 911b6693..00000000 --- a/dot-oh-my-zsh/plugins/node/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# node plugin - -This plugin adds `node-docs` function that opens specific section in [Node.js](https://nodejs.org) -documentation (depending on the installed version). - -To use it, add `node` to the plugins array of your zshrc file: - -```zsh -plugins=(... node) -``` - -## Usage - -```zsh -# Opens https://nodejs.org/docs/latest-v10.x/api/fs.html -$ node-docs fs -# Opens https://nodejs.org/docs/latest-v10.x/api/path.html -$ node-docs path -``` diff --git a/dot-oh-my-zsh/plugins/node/node.plugin.zsh b/dot-oh-my-zsh/plugins/node/node.plugin.zsh deleted file mode 100644 index e196662c..00000000 --- a/dot-oh-my-zsh/plugins/node/node.plugin.zsh +++ /dev/null @@ -1,6 +0,0 @@ -# Open the node api for your current version to the optional section. -# TODO: Make the section part easier to use. -function node-docs { - local section=${1:-all} - open_command "https://nodejs.org/docs/$(node --version)/api/$section.html" -} |
