aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2014-01-21 08:41:52 -0800
committerMike McQuaid2014-01-21 08:42:44 -0800
commit4f990eaa65735fe306b7093aac0d71fa6e34a714 (patch)
tree53b0e0e1f3eff5c582cfbe7a3b2a9563914b8c13
parent120c95b28e3f3df16d9ef6d5dbea9fee1d7e4e93 (diff)
downloadhomebrew-4f990eaa65735fe306b7093aac0d71fa6e34a714.tar.bz2
Revert "zsh: disable /etc files by default"
This reverts commit 52fe004dd257ccf105dc6a5fe4b9cd570285e6b7. Conflicts: Library/Formula/zsh.rb References #24538. References #25719.
-rw-r--r--Library/Formula/zsh.rb16
1 files changed, 12 insertions, 4 deletions
diff --git a/Library/Formula/zsh.rb b/Library/Formula/zsh.rb
index 85d78afe4..b01bcb1fb 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 'enable-etcdir', 'Enable the reading of Zsh rc files in /etc'
+ option 'disable-etcdir', 'Disable the reading of Zsh rc files in /etc'
def install
args = %W[
@@ -26,10 +26,10 @@ class Zsh < Formula
--with-tcsetpgrp
]
- if build.include? 'enable-etcdir'
- args << '--enable-etcdir=/etc'
- else
+ if build.include? 'disable-etcdir'
args << '--disable-etcdir'
+ else
+ args << '--enable-etcdir=/etc'
end
system "./configure", *args
@@ -48,6 +48,14 @@ 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