utils/shell: match preferred shell by symbol.
This commit is contained in:
		
							parent
							
								
									5ca4b43383
								
							
						
					
					
						commit
						36bc11b01a
					
				@ -39,7 +39,7 @@ 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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user