Update Library/Homebrew/utils/shell.rb
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
960b8b659c
commit
5ca4b43383
@ -39,7 +39,8 @@ module Utils
|
|||||||
|
|
||||||
# return the shell profile file based on user's preferred shell
|
# return the shell profile file based on user's preferred shell
|
||||||
def profile
|
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")
|
SHELL_PROFILE_MAP.fetch(preferred, "~/.bash_profile")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user