Oh, no! A Linux command line?

Using Ruby or even Rails, you spent a lot of time typing commands in Linux command line interface. It is mostly dark and ugly window with a lot of text, but you noticed browsing the Internets, StackOwerflow and other interesting Ruby (on Rails) blog, that there is a hope. Collorfull rainbows, unicorns, glitter and gold, and that’s all in your favorite terminal window.

Where to start from?

First things first. There is a lot of various Linux shells. If you have even installed Ruby or tried Ruby’s IRB, chance that you used one are big. Where bash or dash are in group of most popular shells, there are also other ones. Like fish or zsh. If you are lucky one, there are many ways that you can improve everyday life by choosing zsh. Installing zsh is easy as one, two, three. Ok, it isn’t, but you are allowed to use you favorite package manager. If you are on Ubuntu, run following:

$ sudo apt-get install zsh

If you have ensured, that zsh is actually installed, by runing:

$ which zsh

What would return,

$ /usr/bin/zsh

you are ready to move forward. If you are running Ubuntu, use chsh to change your default shell:

$ chsh -s /usr/bin/zsh

or you can use:

$ chsh -s $(which zsh)

Exit your shell, log out you current session and then login, and your brand new shell, zsh is here. Not convinced? Try running:

$ echo $SHELL 

and if you get /usr/bin/zsh, you are good to go.

Wan’t to spice up you shell even more?

If your answer is yes, you have came to right place. So, let’s start. You can do a lot of stuff with your zsh, but first you should install oh-my-zsh. But you might wonder, what “oh-my-zsh” is? According to its creator,”oh-my-zsh” is:

Oh My Zsh is a way of life!

Or, in simple:

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 oh-my-zsh is pretty straightforward, after you fetched and executed installation script, “oh-my-zsh” will even backup you old .zshrc file.

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

You noticed allready, how your life, ehm, shell changed? Told you so.

Shell status line and other extras

You noticed how some people have this cute little status line in bottom of their shells? Well, it is time to get one for you, too.

First you will need to install python-pip, which is Python package manager:

$ sudo apt-get install python-pip

If you are using Ubuntu, there is no root user by default, so just use sudo, instead su -c and use pip to install Powerline.

$ sudo pip install git+git://github.com/Lokaltog/powerline
Show your support

Clapping shows how much you appreciated Alan Kiš’s story.