Skip to content
Snippets Groups Projects
Commit 70025458 authored by Xu Cheng's avatar Xu Cheng
Browse files

interactive_shell: create .zshrc when necessary


Closes Homebrew/homebrew#42190.

Signed-off-by: default avatarXu Cheng <xucheng@me.com>
parent 274f2138
No related branches found
No related tags found
No related merge requests found
......@@ -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?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment