Powerline – Adds Powerful Statuslines and Prompts to Vim Editor and Bash Terminal

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.95/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

40 Responses

  1. Nikhil Parmar says:

    That works great !! Only one things thats annoying is , if the path to the directory is very long, it displays a very long path on the shell prompt, sometimes it appears on the next line too. Can it be restricted to the Just the Current folder as of that like in Bash. ?

  2. Ken Chan says:

    Hi, I am having a problem, when I complete all the steps, it works great. However, as soon as I close and reopen terminal, it gets back to the default look. Can you guys please help me?

  3. The Linux Evangelist says:

    You forgot to mention to install setuptools using

    sudo apt-get install python-setuptools
    sudo yum install python-setuptools
    sudo dnf install python-setuptools

    Without setuptools, you wont be able to install powerline

  4. Hein Htet Aung says:

    Ok, fixed it. The problem is I don’t have .vimrc. So, I created .vimrc and added those lines. And then, my vim editor color scheme is lost. Delete .vimrc and it’s back again. So, I add the lines for .vimrc to “/etc/vim/vimrc”. And everything is fine. :)

  5. Hein Htet Aung says:

    After installing powerline, my vim color scheme is lost. How can I get back to original color scheme?

  6. Lenny says:

    I had a problem with vim displaying UTF-8 placeholder characters in odd places, and the HOME and END keys misbehaving (printing ‘H’, ‘F’, and making newlines). This was fixed by specifying “set term=xterm-256color” in .vimrc to override “screen-256color”. Using Ubuntu / Terminator & Guake / bash.

    I also played with setting xterm-256color in .bashrc, and didn’t see any issues.

  7. Victor Ong says:

    hi Ravi,

    Possible to provide guide to uninstall Powerline too? Its giving issue.

    • Ravi Saive says:


      To uninstall packages installed using pip, just type following command to remove powerline from the system.

      # pip uninstall package-name
  8. Omar says:

    i have a probleme……when a finish the tutorial and i exit and start the terminal
    i see this message : bash: ./usr/local/lib/python3.4/dist-packages/powerline/bindings/bash/powerline.sh: No such file or directory

    • Ravi Saive says:


      If you’ve installed powerline using pip you must add the path variable to .bashrc file where pip puts scripts to $PATH.

      First make sure to find out your powerline location using:

      # pip show powerline-status

      You will see something like:

      Location: /usr/local/lib/python2.7/dist-packages

      Now add the following line to your .bashrc file as shown:

  9. Paulo says:

    No problems. But why you deleted powerline? It’s so nice with vim! Did you found something better? Anyway, i just want change the color highlight red that is too heavy. I can’t see the pieces of code with red color. Thanks.

    • Ravi Saive says:


      I just installed the powerline for testing purpose only, yes it is good, but I prefer vim with plain text…:)

  10. Paulo says:

    Ravi can you show me how as was your complete vimrc.? I am Elementary OS user.

    • Ravi Saive says:


      Sorry, you’re too late actually I removed powerline from my laptop, but could you tell me what exactly you looking for?

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *