summaryrefslogtreecommitdiff
path: root/plugins/node
diff options
context:
space:
mode:
authorAndrew Hodges <betawaffle@gmail.com>2011-05-28 13:14:42 -0400
committerAndrew Hodges <betawaffle@gmail.com>2011-05-28 13:14:42 -0400
commit6b86636413c3b9b98d723ea77058db6c283325e4 (patch)
tree3b16502031dbdc4f5751ffd77c206be1b1944508 /plugins/node
parentab2a7b51a8c3ead55a272fba58232d0823e519a2 (diff)
parent18bfb14a2f774b115c8634cdaa3864cbdee91a94 (diff)
downloadzsh-6b86636413c3b9b98d723ea77058db6c283325e4.tar.gz
zsh-6b86636413c3b9b98d723ea77058db6c283325e4.tar.bz2
zsh-6b86636413c3b9b98d723ea77058db6c283325e4.zip
Merge branch 'plugins'
Diffstat (limited to 'plugins/node')
-rw-r--r--plugins/node/node.plugin.zsh8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/node/node.plugin.zsh b/plugins/node/node.plugin.zsh
new file mode 100644
index 000000000..18f35333c
--- /dev/null
+++ b/plugins/node/node.plugin.zsh
@@ -0,0 +1,8 @@
+# This works if you installed node via homebrew.
+export NODE_PATH="/usr/local/lib/node"
+
+# Open the node api for your current version to the optional section.
+# TODO: Make the section part easier to use.
+function node-api {
+ open "http://nodejs.org/docs/$(node --version)/api/all.html#$1"
+}