aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2013-10-19 13:54:49 +0100
committerMike McQuaid2013-10-19 13:54:49 +0100
commit1c8f6b68cc8c887c9585267d121f1d27e38d1b2a (patch)
treea2908bcade8254ec6e091b00f4a6e914fda986f9 /Library/Homebrew
parentc1be53efae4a99d20a52e1cfdf30005998919d0a (diff)
downloadhomebrew-1c8f6b68cc8c887c9585267d121f1d27e38d1b2a.tar.bz2
formula: fix git_etc bash_completion handling.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 487af9f8b..677ee99e4 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -170,7 +170,10 @@ class Formula
# generally we don't want var stuff inside the keg
def var; HOMEBREW_PREFIX+'var' end
- def bash_completion; prefix+'etc/bash_completion.d' end
+ def bash_completion
+ etc = ENV['HOMEBREW_GIT_ETC'] ? etc : prefix+'etc'
+ etc+'bash_completion.d'
+ end
def zsh_completion; share+'zsh/site-functions' end
# for storing etc, var files for later copying from bottles