

Run the following command to update the config.

To change the Theme, simply change the ZSH_THEME value in ~/.zshrc file from robbyrussell to Avit. You can browse all the “Oh My ZSH” Themes here. Theme 1 - Let’s add a Theme called “ Avit” “Oh My ZSH” automatically creates this file if it doesn’t exist and then adds its own set of configs into this file.

People who don’t use “Oh My ZSH” will have to manually create this file and add any configs themselves. To set a Theme, simply open ~/.zshrc file (created by “Oh My ZSH”) and change the theme as shown below. PS: But some Themes need extra steps like installing specific fonts and so on. In this step, we’ll add two different “Oh My ZSH” Themes.
CUSTOMIZE ITERM2 INSTALL
Initial Oh My ZSH Theme Step 4- Change Themes And Install Fonts Notice that the prompt has changed and the theme is a bit different - That’s “Oh My ZSH” in action for you. sh -c "$(curl -fsSL )" Oh My ZSH is installed Run the following command to install “oh My ZSH”. From what I know, most power users who use ZSH also use “Oh My ZSH”. It provides default config for ZSH (~/.zhrc file) and also provides themes and more features. “Oh My ZSH” is a plugin that runs on top of ZSH. usr/local/bin/zsh //correct Step 3- “Oh My ZSH” Test if we are using ZSH and the correct ZSH $ echo $0 You will be prompted to enter Mac’s password. It gets installed at /usr/local/bin/zsh PS: Mac’s default ZSH is at /bin/zsh brew install zsh Run the following command to install ZSH.

If it doesn’t work, try xcode-select -r to reset. $ xcode-select -install Note: The above command opens up Mac’s installer and installs the XCode Developer CLI tools. So make sure to install the Xcode CLI tools by running the following command. XCode Developer CLI tools are used by various apps that manipulate core OSX features. If you don’t get the error, you can skip this step, because you already have it installed. If you get Command Line Tools for Xcode error, it means you haven’t installed the CLI tools for Xcode.
CUSTOMIZE ITERM2 PASSWORD
Enter the password and it will change the shell, upon logout and login.Ĥ. Open the Terminal (or ITerm2) and type the following command.Ģ.To use it, all we need to do is to change shell (chsh). However, sometimes it’s an older version of ZSH.
CUSTOMIZE ITERM2 MAC
Mac comes with a ZSH out-of-the-box, so we don’t need to install it. The following video shows why ZSH is better than just a bash shell. Although the steps are the same for both Terminal or ITerm2. When I mention “Terminal”, I mean ITerm2. The following video shows some of the new features of Item 2 (v3). It of course can run ZSH, Bash, and other shells inside it. It is similar to the Terminal, but has lots of features of its own.
