Installing ZSH & Oh-my-zsh Shell on OSX Sierra

This quick tutorial shows you how to install ZSH Shell on your OSX, Ubuntu or any similar environment, like Vagrant. Why would you want to do this? Pretty syntax highlighting, plugins, auto complete and much more! Now it’s not as fast as bash but i notice almost no difference.

Ok let’s get started.

First, Install ZSH

open terminal and type

If above Apt is not working then do this:
If you get command not found (you might get this if running Mac OSX Sierra) we are going to install Brew package manager. If you already have it installed then skip the step below:

You might get a prompt about installing Xcode. You just need to agree and then you should be set.  Once brew is installed then just do

 

Setup Oh My Zsh

This will allow theming and other plugins using Oh My Zsh

Change shell to ZSH and make it default

Log out and log back in out of the terminal and you will be all set! You can now edit the .zshrc file and customize your themes as well as plugins. The .zshrc is located at ~/.zshrc

You can see how all themes look by going to:  http://zshthem.es/all/

Another good plugin to get is syntax highlighting 

It basically highlights commands as you type, green if its valid
zsh-highlight-green

Yellow if it’s not valid yet:
zsh-highlight-yellow

Red if it’s invalid
zsh-highlight-red

Additional cool highlighting (like if you are root, or matching brackets etc can also be enabled by looking at the doc here)

Hope this helps you being even more productive, let me know how it worked out in the comments.