Created
November 29, 2015 11:35
-
-
Save the-c0d3r/cc09d5510d8c92889430 to your computer and use it in GitHub Desktop.
Powerline Shell installation bash script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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