summaryrefslogtreecommitdiff
path: root/plugins/node
diff options
context:
space:
mode:
authorPete Clark <pete.clark@gmail.com>2011-05-29 18:51:32 -0400
committerPete Clark <pete.clark@gmail.com>2011-05-29 18:51:32 -0400
commit8411a39a869cd80474e3898f2fa4f204599b943a (patch)
treea77b33ce1d48249a405c8c9e66936351d00d637f /plugins/node
parent1e86678f9d3c8c979ff8d3c8b5aac19e9e611441 (diff)
parent142c03dbd223683fd2d99f878b68f0f075cf33fb (diff)
downloadzsh-8411a39a869cd80474e3898f2fa4f204599b943a.tar.gz
zsh-8411a39a869cd80474e3898f2fa4f204599b943a.tar.bz2
zsh-8411a39a869cd80474e3898f2fa4f204599b943a.zip
Merge branch 'master' of git://github.com/robbyrussell/oh-my-zsh into taskwarrior-plugin
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"
+}