aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2013-01-27 22:34:26 +0000
committerMike McQuaid2013-01-30 21:29:19 -0800
commit58bc3b80545b7d5a18e96b6a1d02bfd6aba97970 (patch)
treea3f00187d2b1fd47f38d501735b66cda22936160 /Library/Homebrew
parent161b89ddf082e9b407f47be23adf3f157da41a91 (diff)
downloadbrew-58bc3b80545b7d5a18e96b6a1d02bfd6aba97970.tar.bz2
Add bash and zsh completion directory functions.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 37f394ce9..47a2a4d11 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -137,6 +137,9 @@ 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 zsh_completion; share+'zsh/site-functions' end
+
# override this to provide a plist
def plist; nil; end
alias :startup_plist :plist