aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJason Karns2014-02-06 15:37:46 -0500
committerMike McQuaid2014-02-06 20:48:08 +0000
commit82bc8e1436eae9d3cccd72f98a402742750e0adb (patch)
treea24ea326c130c79e5a5bb29d076dc883dfdb0dd3 /Library
parente519e5f69213ea765a0f28a4c8dbe0a2f39e736c (diff)
downloadhomebrew-82bc8e1436eae9d3cccd72f98a402742750e0adb.tar.bz2
node: install npm bash completion (if with-npm)
Closes #26483. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/node.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index fe979b7ce..c180ec029 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -71,6 +71,9 @@ class Node < Formula
dir.install_symlink(file.relative_path_from(dir))
end
end
+
+ # install bash completion
+ bash_completion.install lib/"node_modules/npm/lib/utils/completion.sh" => 'npm'
end
end