From 03455325ed582998dc35c7f92cd12f213ca80bad Mon Sep 17 00:00:00 2001 From: Libor Wagner Date: Mon, 24 Oct 2011 11:11:58 +0200 Subject: [PATCH] cabal-install: Add bash completion The bash completion shipped with cabal-install package is now installed to bash_completion.d directory. Closes Homebrew/homebrew#8261. Signed-off-by: Charlie Sharpsteen --- Formula/cabal-install.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Formula/cabal-install.rb b/Formula/cabal-install.rb index 5f218aa16b0..5af9048c570 100644 --- a/Formula/cabal-install.rb +++ b/Formula/cabal-install.rb @@ -10,5 +10,9 @@ class CabalInstall < Formula def install ENV['PREFIX'] = "#{prefix}" system "sh bootstrap.sh" + + cellar_etc = prefix + 'etc' + bash_completion_d = cellar_etc + 'bash_completion.d' + bash_completion_d.install 'bash-completion/cabal' end end