utils/shell: match preferred shell by symbol.

This commit is contained in:
Mike McQuaid
2019-10-08 12:10:31 +01:00
parent 5ca4b43383
commit 36bc11b01a
+2 -2
View File
@@ -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