Last active
June 17, 2016 13:13
-
-
Save sixfeetover/7a958f62cce9c43b4a8cf3eb696109e9 to your computer and use it in GitHub Desktop.
macOS Setup
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
#!/usr/bin/env bash | |
# Instructions: Just run ./osx_setup.sh. Answer the prompts as needed. | |
touch ~/.bash_profile | |
# Show the full URL in the address bar (note: this still hides the scheme) | |
defaults write com.apple.Safari ShowFullURLInSmartSearchField -bool true | |
# Enable the Develop menu and the Web Inspector in Safari | |
defaults write com.apple.Safari IncludeDevelopMenu -bool true | |
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true | |
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true | |
# Add a context menu item for showing the Web Inspector in web views | |
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true | |
# Install command line tools | |
echo 'Installing command line tools' | |
xcode-select --install | |
echo 'Installing homebrew' | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
echo 'Installing homebrew packages' | |
# now, install the other required things for development | |
brew update | |
# Source Control | |
brew install git | |
brew install freetds node wget | |
echo 'Installing rbenv and ruby' | |
# Ruby tools and ruby itself | |
brew install rbenv | |
brew install ruby-build | |
# rbenv init | |
eval "$(rbenv init -)" | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
# Install ruby | |
rbenv install 2.3.1 | |
rbenv global 2.3.1 | |
gem install bundler rails rubocop scss_lint | |
npm install -g eslint | |
# Install binaries | |
echo 'Installing GitHub for Mac' | |
curl -O -J -L https://central.github.com/mac/latest | |
unzip GitHub*.zip | |
mv GitHub\ Desktop.app /Applications | |
echo 'Installing iTerm2' | |
curl -O -J -L https://iterm2.com/downloads/beta/iTerm2-3_0_2.zip | |
unzip iTerm2*.zip | |
mv iTerm.app /Applications | |
echo 'Installing atom and packages' | |
curl -J -L https://atom.io/download/mac > atom-mac.zip | |
unzip atom-mac.zip | |
mv Atom.app /Applications | |
# Configure atom | |
apm install atom-handlebars | |
apm install language-tsql | |
apm install language-babel | |
apm install linter | |
apm install linter-coffeelint | |
apm install linter-rubocop | |
apm install linter-eslint | |
apm install linter-scsslint | |
apm install merge-conflicts | |
apm install data-atom | |
apm install highlight-selected | |
echo 'EDITOR=/usr/local/bin/atom' >> ~/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment