Skip to content

Instantly share code, notes, and snippets.

@BirkhoffLee
Last active November 1, 2016 15:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BirkhoffLee/c72859a7f32eb6d245752841cc7bede2 to your computer and use it in GitHub Desktop.
Save BirkhoffLee/c72859a7f32eb6d245752841cc7bede2 to your computer and use it in GitHub Desktop.
Installer for Powerline for Bash & Tmux, not tested, for OS X 10.11.6
#!/bin/bash
python_version=3.5.2
cd
sudo sed -i '1iexport LANG=en_US.UTF-8' ~/.profile
sudo sed -i '1iexport LC_ALL=en_US.UTF-8' ~/.profile
brew update
brew install pyenv
pip install --upgrade pip
pip install --user powerline-status
sudo pip install psutil
pyenv install $python_version
pyenv global $python_version
git clone https://github.com/powerline/fonts
cd fonts
chmod +x ./install.sh
./install.sh
cd
rm -rf fonts
pip install powerline-status
PowerlinePath=$(pip show powerline-status | grep Location | awk '{print substr($0, 11)}')
sudo brew install vim --env-std --override-system-vim
mkdir ~/.config/powerline
cp -r $PowerlinePath/powerline/config_files/ ~/.config/powerline/
echo "source '$PowerlinePath/powerline/bindings/tmux/powerline.conf'" >> ~/.tmux.conf
echo "source '$PowerlinePath/powerline/bindings/bash/powerline.sh'" >> ~/.profile
echo "source '$PowerlinePath/powerline/bindings/bash/powerline.sh'" >> ~/.profile
echo "Install completed. Restart Bash and choose your font in the Terminal app settings"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment