From 36bc11b01a1f4bd8d8364842e7d477c6f285cddb Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 8 Oct 2019 12:10:31 +0100 Subject: [PATCH] utils/shell: match preferred shell by symbol. --- Library/Homebrew/utils/shell.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/utils/shell.rb b/Library/Homebrew/utils/shell.rb index 8066702bf..a6f233a25 100644 --- a/Library/Homebrew/utils/shell.rb +++ b/Library/Homebrew/utils/shell.rb @@ -39,8 +39,8 @@ module Utils # return the shell profile file based on user's preferred shell def profile - return "#{ENV["ZDOTDIR"]}/.zshrc" if preferred == "zsh" && ENV["ZDOTDIR"].present? - + return "#{ENV["ZDOTDIR"]}/.zshrc" if preferred == :zsh && ENV["ZDOTDIR"].present? + SHELL_PROFILE_MAP.fetch(preferred, "~/.bash_profile") end