Last active
November 13, 2018 13:35
-
-
Save kpopper/a348511a6c45935f4cdc to your computer and use it in GitHub Desktop.
Laptop setup
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 | |
| read -p "Have you set up FileVault on both accounts? <y/N> " prompt | |
| if ! [[ $prompt =~ [yY](es)* ]] | |
| then | |
| echo "Come back when you have!" | |
| exit 2 | |
| read -p "Have you installed all App Store apps? <y/N> " prompt | |
| if ! [[ $prompt =~ [yY](es)* ]] | |
| then | |
| echo "Come back when you have!" | |
| exit 2 | |
| echo Install Xcode development tools - install from pop-up | |
| gcc | |
| echo Installing development stuff | |
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| brew update | |
| brew doctor | |
| read -p "Does everything look alright? <y/N> " prompt | |
| if ! [[ $prompt =~ [yY](es)* ]] | |
| then | |
| echo "Go and fix the problems, then come back." | |
| exit 3 | |
| brew install wget | |
| brew install git | |
| brew install postgresql | |
| brew services start postgresql | |
| echo Installing Ruby (current stable version): https://www.ruby-lang.org/en/downloads/ | |
| brew install ruby-install | |
| ruby-install ruby | |
| brew install chruby | |
| brew install node | |
| brew install android-sdk | |
| brew install hub | |
| brew install redis | |
| brew services start redis | |
| ## Potential things to install that might be better dealt with using vagrant | |
| # brew install imagemagick | |
| # brew install mongodb | |
| # brew install mysql | |
| # brew install phantomjs | |
| # brew install rabbitmq | |
| # brew install sqlite | |
| echo Set up SSH keys for Github: https://help.github.com/articles/connecting-to-github-with-ssh/ | |
| echo Set up dotFiles | |
| cd ~ && git clone [email protected]:kpopper/dotFiles.git | |
| ln -s ~/dotFiles/.aliases ~/.aliases | |
| ln -s ~/dotFiles/.bash_completion ~/.bash_completion | |
| ln -s ~/dotFiles/.bash_profile ~/.bash_profile | |
| ln -s ~/dotFiles/.bashrc ~/.bashrc | |
| ln -s ~/dotFiles/.cliprompt ~/.cliprompt | |
| ln -s ~/dotFiles/.gemrc ~/.gemrc | |
| ln -s ~/dotFiles/.gitconfig ~/.gitconfig | |
| ln -s ~/dotFiles/.gitignore_global ~/.gitignore_global | |
| ln -s ~/dotFiles/.netrc ~/.netrc | |
| ln -s ~/dotFiles/.rspec ~/.rspec | |
| ln -s ~/dotFiles/.vimrc.local ~/.vimrc.local | |
| source .bash_profile | |
| gem update --system | |
| gem install bundler | |
| npm install -g bower | |
| echo Installing Maximum Awesome | |
| cd ~ && git clone [email protected]:square/maximum-awesome.git | |
| cd maximum-awesome && rake | |
| echo Installing applications via Homebrew Cask | |
| brew install caskroom/cask/brew-cask | |
| brew cask install java | |
| brew install elasticsearch | |
| ln -sfv /usr/local/opt/elasticsearch/*.plist ~/Library/LaunchAgents | |
| launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist | |
| brew cask install --appdir=/Applications alfred | |
| brew cask install --appdir=/Applications dropbox | |
| brew cask install eclipse-ide | |
| brew cask install --appdir=/Applications google-chrome | |
| brew cask install spotify | |
| brew cask install --appdir=/Applications synology-cloud-station | |
| brew cask install 1password | |
| brew install heroku/brew/heroku | |
| # brew cask install virtualbox | |
| # brew cask install vagrant | |
| brew cask install superduper | |
| brew cask install base | |
| brew cask install transmission | |
| brew cask install audacity | |
| brew cask install steam | |
| brew cask install cyberduck | |
| brew cask install skype | |
| brew cask install google-drive | |
| echo Installing fonts | |
| brew tap caskroom/fonts | |
| brew cask install font-aleo | |
| echo Log in to Heroku | |
| echo Clean up... | |
| brew cleanup --force | |
| rm -f -r /Library/Caches/Homebrew/* | |
| echo To finish installation: | |
| echo \n | |
| echo Set up dotFiles manually or by running ./dotFiles/link_me_up.sh | |
| echo \n | |
| echo Install the following apps manually | |
| echo * Microsoft Office (Ian and Louise) (NAS) | |
| echo * Printer Drivers (Ian and Louise) (NAS) | |
| echo * Flash player (Ian and Louise) (NAS) | |
| echo * Sublime Text 3 | |
| echo * Sublime Text 3 packages: Package Control (https://packagecontrol.io/installation), EditorConfig, Sass | |
| echo \n | |
| echo Set up Cloud Station folders (Ian and Louise) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment