Skip to content

Instantly share code, notes, and snippets.

@bgrewell
Last active January 16, 2020 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bgrewell/b7ebe65ee31e3837da95857fcee79607 to your computer and use it in GitHub Desktop.
Save bgrewell/b7ebe65ee31e3837da95857fcee79607 to your computer and use it in GitHub Desktop.
Simple script to setup powerline
python3 -m pip install git+git://github.com/powerline/powerline
[ -d "~/.local/share/fonts" ] || mkdir -p ~/.local/share/fonts
wget -O ~/.local/share/fonts/PowerlineSymbols.otf https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
fc-cache -vf ~/.local/share/fonts/
[ -d "~/.config/fontconfig/conf.d" ] || mkdir -p ~/.config/fontconfig/conf.d/
wget -O ~/.config/fontconfig/conf.d/10-powerline-symbols.conf https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
sudo apt install -y fontconfig
sudo apt install -y fonts-powerline
sudo apt install -y powerline-gitstatus
[ -d "~/.config/powerline" ] || mkdir -p "~/.config/powerline"
cp /usr/share/powerline/config_files/config.json ~/.config/powerline/.
echo "powerline-daemon -q" >> ~/.bashrc
echo "export POWERLINE_BASH_CONTINUATION=1" >> ~/.bashrc
echo "export POWERLINE_BASH_SELECT=1" >> ~/.bashrc
echo ". /usr/share/powerline/bindings/bash/powerline.sh" >> ~/.bashrc
source ~/.bashrc
echo "python3 from powerline.vim import setup as powerline_setup" >> ~/.vimrc
echo "python3 powerline_setup()" >> ~/.vimrc
echo "python3 del powerline_setup" >> ~/.vimrc
echo "set laststatus=2" >> ~/.vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment