How to apply Agnoster theme in Mac Zshrc?

Enjoy the new theme

Raja CSP
Raja CSP   Follow

TL;DR

# Have a backup:
cp ~/.zshrc ~/.zshrc.orig

# Install Zshrc
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

# Install the necessary fonts
git clone https://github.com/powerline/fonts
cd fonts && ./install.sh

Setup font like below:

Font Setup in iTerm2

Enable the angoster theme in Zshrc:

sudo vi ~/.zshrc

ZSH_THEME="agnoster"
# You may have to remove the default theme robby

Remove your username in the prompt

# add these two lines anywhere

# hide the username
DEFAULT_USER prompt_context(){}

Apply the configuration

source ~/.zshrc

That’s it!

You can see the final thing as below: Final Result

Source: