If you use Terminal a lot, you might find Terminal very boring


Let's customize the sh!t out of it. First of all, discard bash and install ZSH thru Homebrew.

$ brew install zsh

Now, install Oh My ZSH

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

The installation script should set zsh to your default shell, but if it doesn't you can do it manually:

$ chsh -s $(which zsh)

Now, open .zshrc with your favorite code or plain text editor (please don't use TextEdit, use Atom or $ nano and add plugins to the plugins array

plugins=(git colored-man colorize pip python brew osx zsh-syntax-highlighting)

You can find the list of all bundled plugins here. Now, let's install a cool theme. My favorite is Spaceship, so let's install it. First, clone this repo:

git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"

Symlink spaceship.zsh-theme to your oh-my-zsh custom themes directory:

ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"

Set ZSH_THEME="spaceship" in your .zshrc. Now, let's customize it wit some icons, but to display cool icons, you need a special font, "Nerd Font". Nerd fonts are just like regular fonts, but with a lot of icons packed into them. You can find your favorite Nerd Font here. Install it, and choose it as a default font in Terminal.app Preferences. Now, you can add the config below to your .zshrc and customize it as you want.

Here's how it looks. You can find the icon cheatsheet here.

Thanks for reading! If you liked this article, then share it! Also, you can support me on Patreon