Nikita Kazakov
Nikita Kazakov
~1 min read


Plain old bash works but oh-my-zsh color codes folders from files. It also has git integration and shows what git branch you’re on.

Pretty command line colors.
Pretty command line colors.

My Setup

Make sure you have brew package manager installed. Go ahead and get iTerm terminal for the Mac.

Before you run the script below in your terminal to install oh-my-zsh, backup your .zshrc file if you customized it previously. It will get overwritten.

`sh -c "$(curl -fsSL"`

I want the command prompt to still show my username and the computer hostname. This is especially important if you’re ssh’ing into several computers. Let’s add that modification.

nano ~/.zshrc

Add this line to it:

PROMPT='%(!.%{%F{yellow}%}.)$USER @ %{$fg[white]%}%M %{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'

Save and restart the terminal.