Last active
November 1, 2016 15:02
-
-
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
This file contains hidden or 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
#!/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