How to Setup Your Mac Terminal for 2022

paugramming

Pau Riosa

Posted on March 3, 2022

How to Setup Your Mac Terminal for 2022

How to Setup Your Mac Terminal for 2022

What’s up guys! Here is an awesome and straight forward Mac terminal setup for 2022 that I would like to share with you today!

Let’s get straight into it!

Download Iterm!

Screen Shot 2022-03-01 at 1.28.33 AM.png

Download the latest stable release.

https://iterm2.com/downloads.html

Now go to

Preferences → Profiles → Session → Status bar

and add status bar that you would like to use!

Screen Shot 2022-03-01 at 1.48.24 AM.png

Install Homebrew!

Screen Shot 2022-03-01 at 1.29.11 AM.png

Homebrew is the missing package manager for macOS (or Linux)

/usr/bin/ruby -e "$(curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/master/install](https://raw.githubusercontent.com/Homebrew/install/master/install))"
Enter fullscreen mode Exit fullscreen mode

Install Git!

Using brew commands, we will now install and setup git.

brew install git
Enter fullscreen mode Exit fullscreen mode
git --version
Enter fullscreen mode Exit fullscreen mode
git config --global push.default simple  
Enter fullscreen mode Exit fullscreen mode
git config --global user.email "<youremail>"  
Enter fullscreen mode Exit fullscreen mode
git config --global user.name "<yourname>"  
Enter fullscreen mode Exit fullscreen mode
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
Enter fullscreen mode Exit fullscreen mode

Oh-my-zsh

Screen Shot 2022-03-01 at 1.32.15 AM.png

ohmyz.sh

Run the following commands

brew install zsh
Enter fullscreen mode Exit fullscreen mode
zsh --version
Enter fullscreen mode Exit fullscreen mode
chsh -s $(which zsh)
Enter fullscreen mode Exit fullscreen mode
brew install curl
Enter fullscreen mode Exit fullscreen mode
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Enter fullscreen mode Exit fullscreen mode

Install powerlevel10k

I recommend installing via Homebrew

  • Install via Homebrew
brew install romkatv/powerlevel10k/powerlevel10k
Enter fullscreen mode Exit fullscreen mode
echo "source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc
Enter fullscreen mode Exit fullscreen mode
  • Install Manually
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
Enter fullscreen mode Exit fullscreen mode
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
Enter fullscreen mode Exit fullscreen mode
  • open ~/.zshrc file and look for the ZSH_THEME and apply changes
ZSH_THEME="powerlevel10k/powerlevel10k"
Enter fullscreen mode Exit fullscreen mode
  • run
 p10k configure
Enter fullscreen mode Exit fullscreen mode

This command will guide you through various configurations that you would like to setup for your overall terminal look.

Screen Shot 2022-03-01 at 1.54.50 AM.png

Final Result

This can be the final result of your Terminal

Vector.png

Basic and straightforward!
Happy Coding!

References

Homebrew: The missing package manager for macOS and Linux

ITerm: macOS Terminal Emulator

powerLevel10k

OhmyZSH

💖 💪 🙅 🚩
paugramming
Pau Riosa

Posted on March 3, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related