Skip to content

Instantly share code, notes, and snippets.

@the-c0d3r
Created November 29, 2015 11:35
Show Gist options
  • Save the-c0d3r/cc09d5510d8c92889430 to your computer and use it in GitHub Desktop.
Save the-c0d3r/cc09d5510d8c92889430 to your computer and use it in GitHub Desktop.
Powerline Shell installation bash script
# Powerline shell install
# Source : http://askubuntu.com/a/283909
sudo apt-get install python-pip git -y
sudo pip install git+git://github.com/Lokaltog/powerline
# Font installation
wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf
sudo mv PowerlineSymbols.otf /usr/share/fonts/
sudo fc-cache -vf
sudo mv 10-powerline-symbols.conf /etc/fonts/conf.d/
# Add config to bashrc
echo "
# Powerline Shell config
if [ -f /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh ]; then
source /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh
fi" >> ~/.bashrc
echo "Successfully installed powerline"
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment