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
commit8ab7cf827d0668a7a14697e5509cd22f4ddfa8e6 (patch)
tree3e7a5e0e339683eb72a7ad3bb0cce94bd03b6c71 /Library/Homebrew
parent32874cbcb855e6a765833f57af79ee6ad5b92f20 (diff)
downloadhomebrew-8ab7cf827d0668a7a14697e5509cd22f4ddfa8e6.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