aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 9c0737ff5..1c3127f49 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -88,6 +88,10 @@ def interactive_shell f=nil
ENV['HOMEBREW_DEBUG_INSTALL'] = f.full_name
end
+ if ENV["SHELL"].include?("zsh") && ENV["HOME"].start_with?(HOMEBREW_TEMP.resolved_path.to_s)
+ FileUtils.touch "#{ENV["HOME"]}/.zshrc"
+ end
+
Process.wait fork { exec ENV['SHELL'] }
if $?.success?