From aa00cab97e0334a6a907cd78617a5917bd32735c Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sat, 27 Aug 2011 21:02:46 -0400 Subject: [PATCH] Merged npm plugin into node plugin. --- plugins/node/node.plugin.zsh | 10 +++++++--- plugins/npm/npm.plugin.zsh | 1 - 2 files changed, 7 insertions(+), 4 deletions(-) delete mode 100644 plugins/npm/npm.plugin.zsh diff --git a/plugins/node/node.plugin.zsh b/plugins/node/node.plugin.zsh index 519bc18d..a9c3b45f 100644 --- a/plugins/node/node.plugin.zsh +++ b/plugins/node/node.plugin.zsh @@ -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" } + diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh deleted file mode 100644 index c3eb91d3..00000000 --- a/plugins/npm/npm.plugin.zsh +++ /dev/null @@ -1 +0,0 @@ -eval "$(npm completion 2>/dev/null)"