From ca968c4e5040f1ff4b5b5e12d9312360d807dcc1 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 3 Jun 2024 19:56:39 +0800 Subject: added submodules, change . -> dot (see man stow --dotfiles) --- dot-oh-my-zsh/plugins/node/node.plugin.zsh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 dot-oh-my-zsh/plugins/node/node.plugin.zsh (limited to 'dot-oh-my-zsh/plugins/node/node.plugin.zsh') diff --git a/dot-oh-my-zsh/plugins/node/node.plugin.zsh b/dot-oh-my-zsh/plugins/node/node.plugin.zsh new file mode 100644 index 00000000..e196662c --- /dev/null +++ b/dot-oh-my-zsh/plugins/node/node.plugin.zsh @@ -0,0 +1,6 @@ +# 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