Decebal on programming

Creating your own dotfiles - First Episode

☕️ 2 min read
  1. Choosing between bash and zsh One of these days i had some time on my hand and decided to put all my [dot]files into a git repository. I chose to do that because I wanted to be able do to things the same way in all enviroments that I’m working. So I came across these problems:

    1. Choosing between bash and zsh
    2. Private aliases and functions vs public
    3. Usefull completion files
    4. Git aliases and completion
    5. Vim config files and bundles
    6. Symfony2 Php completion

    I decided to split the above list into episodes, just because there was plenty of info online and thankfully i got to choosing some goods.

Step 1 : decision making

I recently came upon zsh and got in love with it.

First of all when choosing between bash and zsh, I asked my friend google on what others said on the subject. I looked on some argument people commented on reddit, but the opinion of a friend and this presentation Why Zsh is Cooler than Your Shell from jaguardesignstudio really got my thinking it must be worth it.

I’ve got some usefull aliases from this post on askubuntu, too.

Step 2 : installation

Most of you will find this easy in your package management tool and install it. The package is called zsh .

I came upon the problem of not having root access right on some machines so i needed and alternative. I found it on sourceforge.

Big lines clone the git repo:

git clone git://

than follow INSTALL intructions. Be aware thought, only for advanced users with time on their hands. I’m trying to put up a script that does this for me, but in less busy days.

Step 3 : customization

I ran across this list of themes and tried a few. I liked some of them: af-magic, arrow, sporty_256, bira, powerline.

I must say powerline brought to me an entire new world of customizations. Fir of all I had some troubles when installing a custom font . This job must be done on your local machine and the magic arrows in powerline will reveal themselves.

Edit: Powerline is happiest with Zsh because it allows for prompts to be built out from both the left and right. Bash is not so nice, and so the default Powerline Bash display prompt is not great. The standard theme (which only displays the “left” segments in Bash) leaves out important things like Git status/branch info. The “default_leftonly” theme, is better, but it still puts a lot of information, uncondensed, on a single line, so that you end up with 70 characters of stuff in your 80 character window prior to the insertion point. Not great.

You can see my files in this repo