diff options
author | Robby Russell <robby@planetargon.com> | 2011-05-29 03:54:05 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2011-05-29 03:54:05 -0700 |
commit | 40a737ee1362d7d745313c4aa8ea29e28ff52978 (patch) | |
tree | c20a403fbfaa01c7c559605f585908b6aac7d39c /plugins/node | |
parent | b0c9bc88ef630e056bd670ad185514cf435c2085 (diff) | |
parent | 6b86636413c3b9b98d723ea77058db6c283325e4 (diff) | |
download | zsh-40a737ee1362d7d745313c4aa8ea29e28ff52978.tar.gz zsh-40a737ee1362d7d745313c4aa8ea29e28ff52978.tar.bz2 zsh-40a737ee1362d7d745313c4aa8ea29e28ff52978.zip |
Merge pull request #366 from betawaffle/master
Add/update plugins: brew, rvm, node, npm, pow, and thor.
Diffstat (limited to 'plugins/node')
-rw-r--r-- | plugins/node/node.plugin.zsh | 8 |
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" +} |