Created
August 28, 2009 13:19
-
-
Save muness/176982 to your computer and use it in GitHub Desktop.
Setup things on a fresh Leopard box
This file contains 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
# 1) Install XCode. Requires auth and doesn't accept http basic auth | |
mkdir ~/tmp | |
mkdir ~/bin | |
pushd ~/tmp | |
curl -O -s http://iterm.sourceforge.net/iTerm_0.9.6.20090415.zip && | |
unzip iTerm*.zip && | |
sudo mv iTerm.app /Applications | |
curl -O -s http://macvim.googlecode.com/files/MacVim-snapshot-49.tbz && | |
tar xjf MacVim-snapshot-49.tbz && | |
cd MacVim-snapshot-49 && | |
sudo mv MacVim.app /Applications && | |
mv mvim ~/bin && cd ~/tmp | |
curl -O -s http://download-b.macromates.com/TextMate_1.5.9.dmg && | |
hdiutil attach TextMate_1.5.9.dmg && | |
cd /Volumes/TextMate\ 1.5.9/ && | |
sudo cp -R TextMate.app /Applications && | |
cd ~/tmp && | |
hdiutil detach /Volumes/TextMate\ 1.5.9/ | |
curl -O -s http://qsb-mac.googlecode.com/files/GoogleQuickSearchBox-2.0.0.1674.Release.dmg && | |
hdiutil attach GoogleQuickSearchBox-2.0.0.1674.Release.dmg && | |
cd /Volumes/GoogleQuickSearchBox-2.0.0.1674.Release && | |
sudo cp -R Quick\ Search\ Box.app /Applications/ && | |
cd ~/tmp && | |
hdiutil detach /Volumes/GoogleQuickSearchBox-2.0.0.1674.Release && | |
open /Applications/Quick\ Search\ Box.app/ | |
curl -O -s http://distfiles.macports.org/MacPorts/MacPorts-1.8.0-10.5-Leopard.dmg && | |
hdiutil attach MacPorts-1.8.0-10.5-Leopard.dmg && | |
cd /Volumes/MacPorts-1.8.0 && | |
sudo installer -pkg MacPorts-1.8.0.pkg -target "/" && | |
cd ~/tmp && | |
hdiutil detach /Volumes/MacPorts-1.8.0/ | |
echo "PATH=$PATH:/opt/local/bin:~/bin" >> ~/.bash_profile | |
export PATH=$PATH:/opt/local/bin:~/bin | |
curl -L http://github.com/relevance/etc/tree/master%2Fbash%2Fgit_installer.sh?raw=true?raw=true > ~/git_installer.sh | |
source ~/git_installer.sh | |
install_git_from_source "1.6.4.2" | |
GEM_RC=' | |
gem: --no-ri --no-rdoc | |
:update_sources: true | |
:verbose: true | |
:bulk_threshold: 1000 | |
:sources: | |
- http://gems.rubyforge.org | |
- http://gems.github.com | |
:backtrace: false | |
:benchmark: false | |
' | |
echo "$GEM_RC" > ~/.gemrc | |
curl http://ack.googlecode.com/svn/tags/latest/ack > ~/bin/ack && chmod 0755 ~/bin/ack | |
popd | |
curl -L http://github.com/relevance/etc/tree/master%2Fbash%2Fruby_switcher.sh?raw=true?raw=true > ~/ruby_switcher.sh | |
echo "source ~/ruby_switcher.sh" >> ~/.bash_profile | |
install_ruby_186 | |
ARCHFLAGS="-arch i386" gem install mysql -- \ | |
--with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib \ | |
--with-mysql-include=/usr/local/mysql/include | |
ARCHFLAGS="-arch i386" gem install postgres -- \ | |
--with-pgsql-dir=/Library/PostgreSQL/8.4/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment