dotfiles/setup.sh

34 lines
716 B
Bash
Raw Normal View History

2014-04-14 21:49:44 -06:00
#!/usr/bin/env bash
2014-08-25 18:06:42 -06:00
function setup() {
cd `dirname $BASH_SOURCE` && source resources/bootstrapping.sh
source dotfiles/lib/shellrc/functions.sh
source dotfiles/lib/shellrc/brew.sh
source dotfiles/lib/shellrc/python.sh
2014-05-02 15:11:27 -06:00
2014-08-25 18:06:42 -06:00
case `uname` in
'Darwin')
osx_setup
;;
'Linux')
source resources/apt-get.sh
;;
esac
2014-05-02 15:11:27 -06:00
2014-08-25 18:06:42 -06:00
install_powerline
source bootstrap.sh
}
2014-05-02 15:11:27 -06:00
2014-08-25 18:06:42 -06:00
function osx_setup() {
while getopts "uebsmaho" OPTCHAR;
do
case $OPTCHAR in
h)
echo "brew options:"
do_the_brew -h
exit
;;
source resources/osx.sh
do_the_brew $@
2014-05-02 15:11:27 -06:00
}