summaryrefslogtreecommitdiff
path: root/plugins/node/node.plugin.zsh
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-11-06 09:28:42 -0700
committerTuowen Zhao <ztuowen@gmail.com>2016-11-06 09:28:42 -0700
commitcd03efc2e5abc2925a0fe4e17f900bae0858b451 (patch)
tree8cbfca99a7a93008ccce68b2444009d4c1b59971 /plugins/node/node.plugin.zsh
parentc24de867a4d036af486fdaa77b0fcccb148e2b98 (diff)
parent0b340bc3a5c58609a07987b296f773eaea17b274 (diff)
downloadzsh-cd03efc2e5abc2925a0fe4e17f900bae0858b451.tar.gz
zsh-cd03efc2e5abc2925a0fe4e17f900bae0858b451.tar.bz2
zsh-cd03efc2e5abc2925a0fe4e17f900bae0858b451.zip
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/node/node.plugin.zsh')
-rw-r--r--plugins/node/node.plugin.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/node/node.plugin.zsh b/plugins/node/node.plugin.zsh
index 2463815ac..e2f18a032 100644
--- a/plugins/node/node.plugin.zsh
+++ b/plugins/node/node.plugin.zsh
@@ -1,5 +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 {
- open_command "http://nodejs.org/docs/$(node --version)/api/all.html#all_$1"
+ local section=${1:-all}
+ open_command "http://nodejs.org/docs/$(node --version)/api/$section.html"
}