DEV Community

A Guide for Upgrading macOS to Catalina and Migrating the Default Shell from Bash to Zsh

Shiono Yoshihide on October 10, 2019

Index From Bash to Zsh Configure Zsh Minimal Configuration Enable Git Completion Define Aliases Prettify the Console with Starshi...
Collapse
 
davidxswang profile image
Davidxswang

Thank you for this post! I met the problem a few days ago that I cannot use auto completion when I was using git, but it worked before. I searched a lot of places but didn't solve this problem perfectly, either prompting warning for me or prompting a lot of errors. Your post just solved it! Thank you!

Collapse
 
stephanie profile image
Stephanie Handsteiner

zsh + ohmyzsh + powerlevel10k >

Collapse
 
codercatdev profile image
Alex Patterson

I too am a cat lover, basketball enthusiast, and struggling TypeScript developer 🙀.

Great tutorial!

Collapse
 
pedroapfilho profile image
Pedro Filho

What should I do if I already had zsh+ohmyzsh installed?

Collapse
 
saltyshiomix profile image
Shiono Yoshihide

You can see the current default shell by running the command below:

$ echo ${SHELL}

If the result is /bin/zsh, this is the default macOS shell.

So you need to change it:

$ chsh -s /path/to/your/custom/zsh

And check your default shell has changed by running echo ${SHELL} :)

Collapse
 
codenutt profile image
Jared

How lucky for us who switched to Zsh many moons ago lol

Collapse
 
walkingriver profile image
Michael D. Callaghan

Very nice. Thank you.

Collapse
 
brando90 profile image
brando90

does one not need (the old) .bashrc anymore when using zsh? Everything goes to .zhrc right?

Collapse
 
saltyshiomix profile image
Shiono Yoshihide

If you are using MacOS Catalina from the first, everything goes to zsh. Otherwise if you upgrade OS, we need change the default shell from bash to zsh :)