From 18666e3475d3a4180d9becc03cb105fcaa6c6801 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 6 Jul 2024 18:09:04 +0800 Subject: added submodule --- dot-oh-my-zsh | 1 + dot-oh-my-zsh/plugins/node/README.md | 19 ------------------- dot-oh-my-zsh/plugins/node/node.plugin.zsh | 6 ------ 3 files changed, 1 insertion(+), 25 deletions(-) create mode 160000 dot-oh-my-zsh delete mode 100644 dot-oh-my-zsh/plugins/node/README.md delete mode 100644 dot-oh-my-zsh/plugins/node/node.plugin.zsh (limited to 'dot-oh-my-zsh/plugins/node') diff --git a/dot-oh-my-zsh b/dot-oh-my-zsh new file mode 160000 index 00000000..6fe84bf5 --- /dev/null +++ b/dot-oh-my-zsh @@ -0,0 +1 @@ +Subproject commit 6fe84bf5c82da7b1f6d7c5ec3e5c447721ac8cea 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" -} -- cgit v1.2.3