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.

SPACESHIP_PROMPT_ADD_NEWLINE="true"
SPACESHIP_CHAR_SYMBOL="\uf054"
#SPACESHIP_CHAR_PREFIX="\ue796"
SPACESHIP_CHAR_SUFFIX=(" ")
SPACESHIP_CHAR_COLOR_SUCCESS="yellow"
SPACESHIP_PROMPT_DEFAULT_PREFIX="$USER"
SPACESHIP_PROMPT_FIRST_PREFIX_SHOW="true"
SPACESHIP_USER_SHOW="true"
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