Update Library/Homebrew/utils/shell.rb

Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
David O'Trakoun 2019-10-07 10:25:41 -04:00 committed by GitHub
parent 960b8b659c
commit 5ca4b43383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,8 @@ module Utils
# return the shell profile file based on user's preferred shell
def profile
return ENV.fetch("ZDOTDIR", "~") + "/.zshrc" if preferred.eql? "zsh"
return "#{ENV["ZDOTDIR"]}/.zshrc" if preferred == "zsh" && ENV["ZDOTDIR"].present?
SHELL_PROFILE_MAP.fetch(preferred, "~/.bash_profile")
end