aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorChristian Höltje2012-04-29 02:12:26 -0400
committerJack Nagel2012-05-02 23:43:30 -0500
commit7b24382d14c53be778276450e7e779ed4100aa33 (patch)
tree566c3201cbe861134c4feeb4de7bd2db6c69d07a /Library/Homebrew
parente8c0b01f24b12792c99440d672244fa7563a3a37 (diff)
downloadbrew-7b24382d14c53be778276450e7e779ed4100aa33.tar.bz2
zsh: support site specific files
This fixes the `site-scripts` and `site-functions` directories so that zsh points to the HOMEBREW_PREFIX version of these files instead of the Cellar version. This means you can drop files in these directories and the files will persist when you upgrade zsh. Otherwise they disappear when you upgrade zsh. Closes Homebrew/homebrew#11955. [jn: mkpath everything under share/zsh] Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/keg.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index 6e0a857e0..b0f6f0e7b 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -80,6 +80,7 @@ class Keg < Pathname
when INFOFILE_RX then ENV['HOMEBREW_KEEP_INFO'] ? :info : :skip_file
when LOCALEDIR_RX then :mkpath
when *share_mkpaths then :mkpath
+ when /^zsh/ then :mkpath
else :link
end
end