Awesome Looking Terminal With Oh-My-Zsh

A lot of people asked me after reading my article A Brief Introduction to Laravel Envoy,  how do I get my terminal window to look so awesome. It’s not that hard as it may look like, I keep it simple. Here is what I use:

and of course Ubuntu GNU/Linux.

As a developer, you can increase your productivity by using terminal. But, sometimes people are just too lazy to type long commands over and over again. And it gets even more boring if you repeat same stuff every single day, at the job, at home, everywhere. That’s the primary reason why so many people are so scared of the terminal. But, it does not have to be that way. Few years ago I was so excited when I “discovered” Oh-My-Zsh. And almost instantly I switched Bash with ZSH.

Here are the main reasons why I chose ZSH instead of Bash:

  • incredibly powerful, context based tab completion handling
  • pattern matching on steroids
  • really great community-driven frameworks available

There are two major frameworks available for ZSH, Prezto and Oh-My-Zsh. Personally, I prefer Oh-My-Zsh, but Pretzo have it’s own advantages to.

Oh-My-Zsh is an open source, community-driven framework for managing your ZSH configuration. It comes bundled with a ton of helpful functions, helpers, plugins, themes, and a few things that make you shout…

Installing ZSH and Oh-My-Zsh

Installation of ZSH is pretty simple, on Debian/Ubuntu just enter:

Oh-My-Zsh you can install with curl or wget, so make sure you have them installed:

or with wget:

For more detailed installation instruction visit the official page.

Themify Your Promt

Another great thing with Oh-My-Zsh is that you have a ton of useful themes and plugins you can use to customize your prompt. I use agnoster  as my default theme. To setup this theme, just download and install one of the patched fonts for Vim-Powerline. For me DejaVuSansMono is good enough. After you have installed patched font, edit ~/.zshrc and set agnoster for theme:

Now, open Guake Preference and set default interpreter to /bin/zsh :

Guake General Propertiesand in the Appearance tab your patched font:

Guake Appearance Preferences

Plugins

You can find full list of plugins here. To enable some plugin, just add it to the list in the ~/.zshrc . For example, if you are a Laravel developer as I am, you want to have Laravel4 and Laravel5 plugins enabled:

You’ll now have  php artisan  completion, which is pretty cool:

PHP Artisan AutocompleteAs I mentioned, you can use plugins for many other tools, for example: bower, capistrano, docker, heroku and so on.

That’s it for now. I recommend you to make the switch right now. You’ll  make no regret. Play around with configuration, plugins, themes. Share your configuration or tips how to make it better.

 

 

Follow me

Mirza Pasic

Full Stack Developer at OLX
Web Developer. Geek. Systematic. Dreamer
Follow me

Published by

Mirza Pasic

Web Developer. Geek. Systematic. Dreamer