diff options
| author | Dominyk Tiller | 2015-07-24 09:01:34 +0100 | 
|---|---|---|
| committer | Dominyk Tiller | 2015-07-24 09:01:34 +0100 | 
| commit | 4625fd335c62e0bc6bcad2d4de482174bc353ee3 (patch) | |
| tree | fad9bb82fb9fd09428b8f863ac0215a8c94e3856 /Library/Homebrew/formula.rb | |
| parent | b1fff3205584e1e42ae750b2af7ca17963929aa9 (diff) | |
| download | brew-4625fd335c62e0bc6bcad2d4de482174bc353ee3.tar.bz2 | |
formula: create empty zshrc when zsh is shell
One minor consequence of our seizing of the HOME variable during builds for
sandboxing purposes is that if you're doing an interactive or git installation
zsh flags up that it hasn't found any config files and throws you into the
`zsh-newuser-install` area.
Not really a problem, just a nuisance.
Since the check is just for existence rather than content, we can work around
this by creating an empty config file when the `SHELL` environmental variable
includes zsh.
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index be1fdf532..cc6006b02 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -928,6 +928,7 @@ class Formula        @buildpath = Pathname.pwd        env_home = buildpath/".brew_home"        mkdir_p env_home +      touch env_home/".zshrc" if ENV["SHELL"].include? "zsh"        old_home, ENV["HOME"] = ENV["HOME"], env_home  | 
