ZSH Setup for MacOS zhijie, November 2, 2023November 2, 2023 Looking to enhance your MacOS terminal experience? Oh My Zsh is a popular framework for ZSH customization. Part 1: Checking for ZSH installation Before we install ZSH lets us verify that ZSH is installed on your MacOS. zsh --version # If zsh is not installed brew install zsh Installing OMZ and ZSH sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" This command will download and run the installation script. Before running any installation script you should read through and verify before running. Here is the link to the script if you are curious. https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh Customizing your ZSH configuration The central configuration for ZSH is located at ‘~/.zshrc’. You can open it with your favourite editor to make changes to suit your preference. Part 2: Setup ZSH theme Install PowerLevel 10k theme The theme I will be using is romkatv/powerlevel. For other themes, you can take a look here Themes · ohmyzsh/ohmyzsh Wiki (github.com). To install the theme, using OMZ we can use the following code git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k # Open your ~/.zshrc and set the ZSH_THEME. Set theme in zshrc Set the theme in ZSH configuration file located at ‘~/.zshrc’ ZSH_THEME="powerlevel10k/powerlevel10k" Initialize PowerLevel10k configuration Configure the PowerLevel10k using the following command p10k configure [Optional] Install Fonts Follow the instruction here: powerlevel10k/font.md at master · romkatv/powerlevel10k (github.com) Share this:FacebookXLike this:Like Loading... Related Blog MacOS MacOSOMZZSH