diff options
| author | Adam Vandenberg | 2013-12-15 19:44:52 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-12-15 19:44:52 -0800 |
| commit | 52fe004dd257ccf105dc6a5fe4b9cd570285e6b7 (patch) | |
| tree | 79a6e55fe9df40b51dfebe6f1e97019da5f5196e /Library | |
| parent | 2e3db0d0b8e2fa6775c77052145fe9f51cad5705 (diff) | |
| download | homebrew-52fe004dd257ccf105dc6a5fe4b9cd570285e6b7.tar.bz2 | |
zsh: disable /etc files by default
Closes #24538.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/zsh.rb | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Library/Formula/zsh.rb b/Library/Formula/zsh.rb index 7319d9790..255f5ff7c 100644 --- a/Library/Formula/zsh.rb +++ b/Library/Formula/zsh.rb @@ -9,7 +9,7 @@ class Zsh < Formula depends_on 'gdbm' depends_on 'pcre' - option 'disable-etcdir', 'Disable the reading of Zsh rc files in /etc' + option 'enable-etcdir', 'Enable the reading of Zsh rc files in /etc' def install args = %W[ @@ -26,7 +26,11 @@ class Zsh < Formula --with-tcsetpgrp ] - args << '--disable-etcdir' if build.include? 'disable-etcdir' + if build.include? 'enable-etcdir' + args << '--enable-etcdir' + else + args << '--disable-etcdir' + end system "./configure", *args @@ -50,14 +54,6 @@ class Zsh < Formula def caveats; <<-EOS.undent To use this build of Zsh as your login shell, add it to /etc/shells. - If you have administrator privileges, you must fix an Apple miss - configuration in Mac OS X 10.7 Lion by renaming /etc/zshenv to - /etc/zprofile, or Zsh will have the wrong PATH when executed - non-interactively by scripts. - - Alternatively, install Zsh with /etc disabled: - brew install --disable-etcdir zsh - Add the following to your zshrc to access the online help: unalias run-help autoload run-help |
