Browse Source

Merged npm plugin into node plugin.

master
Sorin Ionescu 14 years ago
parent
commit
aa00cab97e
  1. 10
      plugins/node/node.plugin.zsh
  2. 1
      plugins/npm/npm.plugin.zsh

10
plugins/node/node.plugin.zsh

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

1
plugins/npm/npm.plugin.zsh

@ -1 +0,0 @@ @@ -1 +0,0 @@
eval "$(npm completion 2>/dev/null)"
Loading…
Cancel
Save