1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-14 22:21:13 +00:00
prezto/plugins/node/node.plugin.zsh
2011-08-27 21:02:46 -04:00

10 lines
257 B
Bash

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