]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/plugins/node/node.plugin.zsh
merge oh-my-zsh into subdir
[dotfiles.git] / zsh / plugins / node / node.plugin.zsh
diff --git a/zsh/plugins/node/node.plugin.zsh b/zsh/plugins/node/node.plugin.zsh
new file mode 100644 (file)
index 0000000..3bbed6f
--- /dev/null
@@ -0,0 +1,5 @@
+# Open the node api for your current version to the optional section.
+# TODO: Make the section part easier to use.
+function node-docs {
+       open "http://nodejs.org/docs/$(node --version)/api/all.html#all_$1"
+}