Do you want to improve your Terminal experiencie in your Mac? Ok, let’s go!
Don’t worry, both Apple M1 and Intel works with this tutorial!
I recommend you use the iTerm, it’s a powerful terminal.
Only M1: If you don’t like iTerm, duplicate the terminal.app and rename, like terminal2.app.
Only M1: Now, you need set the app to open with Rosetta:
Now, we need to install HomeBrew, it’s available to run without Rosetta, but, a lot of gems don’t work, because this, I recommend you use with Rosetta.
To install HomeBrew, jut type in iTerm:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Wait, this will take a few minutes…
When HomeBrew installation was completed, let’s install zsh.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Restart your iTerm, now your terminal looks like this:
For a easy customization, PowerLevel10k, it’s a wizard to help you.
Installing view HomeBrew:
brew install romkatv/powerlevel10k/powerlevel10k
After installation, you will need to edit the ~/.zshrc file.
- Remove the line with ZSH_THEME.
- Add a new line with:
Restart again your iTerm, and follow the wizard!
Done! Now you have iTerm, HomeBrew, and ZSH working in your Mac!