2011-08-28 03:02:46 +02:00
|
|
|
# Complete npm.
|
|
|
|
eval "$(npm completion 2>/dev/null)"
|
|
|
|
|
2011-05-28 17:20:48 +02:00
|
|
|
# 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-05-28 17:20:48 +02:00
|
|
|
}
|
2011-08-28 03:02:46 +02:00
|
|
|
|