-
-
Save jsmestad/408506 to your computer and use it in GitHub Desktop.
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/sh | |
curl http://gist.github.com/raw/323731/install_homebrew > install_homebrew.rb | |
ruby install_homebrew.rb | |
rm install_homebrew.rb | |
echo "PATH=/usr/local/bin:\$PATH" >> ~/.profile | |
source ~/.profile | |
echo "Your path is now $PATH" | |
brew install git | |
brew update | |
# installing mysql | |
brew install mysql | |
/usr/local/Cellar/mysql/5.1.46/bin/mysql_install_db | |
cp /usr/local/Cellar/mysql/5.1.46/com.mysql.mysqld.plist ~/Library/LaunchAgents | |
launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist | |
# ps auwwx | grep my | |
# installing postgres | |
brew install postgresql | |
initdb /usr/local/var/postgres | |
launchctl load -w /usr/local/Cellar/postgresql/8.4.3/org.postgresql.postgres.plist | |
# install mongo | |
brew install mongo | |
cp /usr/local/Cellar/mongodb/1.4.2-x86_64/org.mongodb.mongod.plist ~/Library/LaunchAgents | |
launchctl load -w ~/Library/LaunchAgents/org.mongodb.mongod.plist | |
# install a bunch of utils | |
for i in node rlwrap kiwi ack sqlite hub wget; do | |
brew install $i | |
done | |
# install rvm for ease of use | |
sudo gem install rvm | |
rvm-install | |
echo "if [[ -s /Users/$USER/.rvm/scripts/rvm ]] ; then source /Users/$USER/.rvm/scripts/rvm ; fi" >> ~/.profile | |
source ~/.profile | |
# setup the default 1.8.7 version | |
rvm install 1.8.7-p173 | |
rvm use 1.8.7-p173 | |
echo "rvm use 1.8.7-p173" >> ~/.profile | |
# install bundler | |
gem install bundler | |
git clone git://github.com/atmos/hancock.git | |
cd hancock/ | |
bundle install | |
bundle exec rake | |
#wget http://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh | |
#cat ~/.profile >> ~/.zshrc | |
#rm ~/.profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment