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
Installing ZSH and Oh-My-Zsh
Installation of ZSH is pretty simple, on Debian/Ubuntu just enter:
sudo apt-get install zsh
Oh-My-Zsh you can install with curl or wget, so make sure you have them installed:
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
Make it your default shell:
chsh -s $(which zsh)
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 :
and in the Appearance tab your patched font:
In Manjaro dist copy fonts from this link to $HOME/.local/share/fonts
then clear fonts cache
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:
plugins=(git rvm rails laravel5 laravel4)
You’ll now have php artisan completion, which is pretty cool:
As I mentioned, you can use plugins for many other tools, for example: bower, capistrano, docker, heroku and so on.
Note: many themes require installing the Powerline Fonts in order to render properly.
yaourt -S powerline-fonts
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.