Created
November 4, 2013 19:12
-
-
Save compleatang/7307689 to your computer and use it in GitHub Desktop.
OSX Install Script
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
#!/bin/bash | |
#^jist /Users/coda/Dropbox/Dot-Files/installd-osx -pu 7307689 | |
cur_user=`who am i | awk '{print $1}'` | |
echo -e "\033[32m" | |
echo "first we'll got to the home directory" | |
echo -e "\033[0m" | |
cd ~ | |
echo -e "\033[32m" | |
echo "now, let's install homebrew" | |
echo -e "\033[0m" | |
brew_installation=/usr/local/bin/brew | |
if [ ! -e $brew_installation ] ;then | |
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" | |
else | |
echo "brew installed, moving along." | |
fi | |
brew tap phinze/homebrew-cask | |
brew install brew-cask | |
brew cask install dropbox | |
echo -e "\033[32m" | |
echo "now, for some packages" | |
echo -e "\033[0m" | |
brew install wget ext4fuse | |
brew install vim --override-system-vi | |
brew install brew-pip cabal-install htop-osx imagemagick librsync node p7zip sshfs unrar git coreutils findutils | |
brew cask install totalterminal google-chrome skype qlcolorcode evernote libreoffice adium alfred gimp spotify sublime-text transmission-remote-gui vlc google-drive google-hangouts github | |
echo -e "\033[34m" | |
echo "ok, now we'll do some adjusting of things by building the user specific configs." | |
read -p "has dropbox finished its loading? <y/n>" prompt | |
echo -e "\033[0m" | |
if [[ $prompt == "y" || $prompt == "y" || $prompt == "yes" || $prompt == "yes" ]] ;then | |
echo -e "\033[32m" | |
echo "after all that installing, copy over the files from dropbox repo." | |
echo -e "\033[0m" | |
~/Dropbox/bootstrap-osx | |
chmod 600 ~/.ssh/* | |
echo -e "\033[32m" | |
echo "now, let us pull in sublime settings." | |
echo -e "\033[0m" | |
git clone git://github.com/compleatang/my-sublimetext2-packages.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages | |
echo -e "\033[32m" | |
echo "now, install rvm and gemsets" | |
echo -e "\033[0m" | |
\curl -L https://get.rvm.io | bash -s stable --ruby | |
source ~/.rvm/scripts/rvm | |
rvm install 2.0.0 | |
rvm install 1.9.3 | |
~/.bin/loggemsets --import /Users/coda/Dropbox/Dot-Files/gemsets.yml | |
rvm use 2.0.0@global --default | |
gem install t jist rvm rake bundle paint pry bundle awesome_print | |
echo -e "\033[32m" | |
echo "now, node stuff" | |
echo -e "\033[0m" | |
sudo npm install -g bower brunch grunt | |
echo -e "\033[32m" | |
echo "now, cabal stuff for pandoc" | |
echo -e "\033[0m" | |
cabal update && cabal install pandoc | |
echo -e "\033[32m" | |
echo "now, let's work on python" | |
echo -e "\033[0m" | |
sudo easy_install pip | |
echo -e "\033[32m" | |
echo "now, let's change the shell" | |
echo -e "\033[0m" | |
sudo chsh -s /bin/zsh $cur_user | |
echo -e "\033[32m" | |
echo "pull the coding from backups" | |
echo -e "\033[0m" | |
if [ ! -d ~/sites ]; then | |
mkdir -p ~/sites | |
fi | |
rsync -rtpovclhzs --progress --ignore-existing coda@git.watershedlegal.com:/srv/WSL-WPC-data/csk-backup/Coding/ ~/sites | |
echo -e "\033[32m" | |
echo "installing vundle" | |
echo -e "\033[0m" | |
vim +BundleInstall +qall | |
brew cask alfred link | |
fi | |
echo -e "\033[34m" | |
read -p "wanna do a final cleanup? <y/n> " prompt | |
echo -e "\033[0m" | |
if [[ $prompt == "y" || $prompt == "y" || $prompt == "yes" || $prompt == "yes" ]] ;then | |
echo -e "\033[0m" | |
rm -rf ~/.subversion | |
rm ~/.profile | |
rm ~/.bash* | |
~/Dropbox/bootstrap-osx | |
fi | |
echo -e "\033[34m" | |
read -p "wanna reboot? <y/n> " prompt | |
echo -e "\033[0m" | |
if [[ $prompt == "y" || $prompt == "y" || $prompt == "yes" || $prompt == "yes" ]] ;then | |
echo -e "\033[0m" | |
sudo reboot | |
fi | |
### for manual addition | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment