From 4625fd335c62e0bc6bcad2d4de482174bc353ee3 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Fri, 24 Jul 2015 09:01:34 +0100 Subject: [PATCH] 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. --- Library/Homebrew/formula.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index be1fdf5320..cc6006b024 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