mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 21:31:19 +08:00 
			
		
		
		
	Changed to use which.
This commit is contained in:
		
							parent
							
								
									5f415c465a
								
							
						
					
					
						commit
						1354eb1248
					
				@ -22,12 +22,7 @@ echo "Copying your current PATH and adding it to the end of ~/.zshrc for you."
 | 
			
		||||
echo "export PATH=$PATH" >> ~/.zshrc
 | 
			
		||||
 | 
			
		||||
echo "Time to change your default shell to zsh!"
 | 
			
		||||
if [ -f /bin/zsh ]
 | 
			
		||||
then
 | 
			
		||||
  chsh -s /bin/zsh
 | 
			
		||||
else
 | 
			
		||||
  chsh -s "/usr/bin/env zsh"
 | 
			
		||||
fi
 | 
			
		||||
chsh -s `which zsh`
 | 
			
		||||
 | 
			
		||||
echo '         __                                     __  '
 | 
			
		||||
echo '  ____  / /_     ____ ___  __  __   ____  _____/ /_ '
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user