prezto_config/plugins/node/node.plugin.zsh

10 lines
257 B
Bash
Raw Normal View History

2011-08-28 03:02:46 +02:00
# Complete npm.
eval "$(npm completion 2>/dev/null)"
# Open the node api for your current version to the optional section.
2011-08-28 03:02:46 +02:00
# TODO: Make the sections easier to use.
function node-docs() {
open "http://nodejs.org/docs/$(node --version)/api/all.html#$1"
}
2011-08-28 03:02:46 +02:00