2014-04-14 20:49:44 -07:00
|
|
|
#!/usr/bin/env bash
|
2014-04-26 19:20:00 -07:00
|
|
|
cd `dirname $BASH_SOURCE` && source resources/bootstrapping.sh
|
2014-04-25 13:13:40 -07:00
|
|
|
source dotfiles/lib/shellrc/functions.sh
|
2014-05-02 14:11:27 -07:00
|
|
|
|
|
|
|
|
2013-04-01 01:31:41 +00:00
|
|
|
case `uname` in
|
|
|
|
'Darwin')
|
2014-04-14 13:52:10 -07:00
|
|
|
source resources/osx.sh
|
|
|
|
source resources/brew.sh
|
|
|
|
;;
|
2013-04-01 01:31:41 +00:00
|
|
|
'Linux')
|
2014-04-14 13:52:10 -07:00
|
|
|
source resources/apt-get.sh
|
2013-04-01 01:31:41 +00:00
|
|
|
;;
|
|
|
|
esac
|
2013-03-18 09:56:29 -07:00
|
|
|
|
2014-05-02 14:11:27 -07:00
|
|
|
|
|
|
|
function install_powerline() {
|
|
|
|
hash pip 2>/dev/null || sudo easy_install pip
|
|
|
|
if test -z $(pip show Powerline | grep Location | awk '{print $2}');
|
|
|
|
then
|
|
|
|
sudo pip install --user git+git://github.com/Lokaltog/powerline
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
install_powerline
|
2013-03-18 09:56:29 -07:00
|
|
|
source bootstrap.sh
|