Skip to content

Scripts to prepare a Mac running OS X Mavericks for Ruby development

License

Notifications You must be signed in to change notification settings

ShelbyTV/sprout-wrap

 
 

Repository files navigation

sprout-wrap

This project uses soloist and librarian-chef to run a subset of the recipes in sprout's [cookbooks]((https://github.com/pivotal-sprout/sprout).

Fork it to customize its attributes in soloistrc and the list of recipes you'd like to use for your team. You may also want to add other cookbooks to its Cheffile, perhaps one of the many community cookbooks. By default it configures an OS X Mavericks workstation for Ruby development.

Installation

1. Install XCode

Xcode - Apple

As of Mavericks, command line tools are installed w/ XCode 5. Hurray (even tho Brew wrongly complains)!

2. Do all of the things

bash <( curl https://raw.github.com/ShelbyTV/sprout-wrap/master/shelby_bootstrap.sh )

Script will clone this project, install the requirements, and run soloist to provision your machine.

TODO

As I use my newly provisioned machine, I'm tracking everything that should have been provisioned but I'm forced to do manually...

Must do before next run

  • Fix the cocoapods and bundler gems install recipes
    • Maybe use the Ops Code rbenv cookbook to install rbenv and the gems I want

Nice To Have

  • Terminal tweaks
    • visual bell, no audio bell
      • com.apple.terminal "Window Settings" -> "Pro" -> Bell = 0;
    • Terminal should exit when last process exist cleanly
      • com.apple.terminal "Window Settings" -> "Pro" -> shellExitAction = 1;
  • hide volume from menu bar
  • hide time machine from menu bar
  • hide bluetooth from menu bar
  • trackpad tap to click
  • trackpad app expose
  • Safari new window/tab is blank page
    • com.app.safari NewTabBehavior = 1;
    • com.apple.safari NewWindowBehavior = 1;
  • disable "automatically rearrange Spaces based on use"
  • disable "when switiching to an app, switch to a Space with open windows"
  • require PW 5 seconds after screen saver
  • Shelby specific ~/.ssh/config
    • would want to pull this from a private repo
  • Additional Finder tweaks
    • Show item info near icons on the desktop and in other icon views /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist /usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist /usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
    • Show item info to the right of the icons on the desktop /usr/libexec/PlistBuddy -c "Set DesktopViewSettings:IconViewSettings:labelOnBottom false" ~/Library/Preferences/com.apple.finder.plist
    • Enable snap-to-grid for icons on the desktop and in other icon views /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist /usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist /usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
    • Set grid spacing for icons on the desktop and in other icon views /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist /usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist /usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist
    • Set the size of icons on the desktop and in other icon views /usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:iconSize 48" ~/Library/Preferences/com.apple.finder.plist /usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:iconSize 48" ~/Library/Preferences/com.apple.finder.plist /usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:iconSize 48" ~/Library/Preferences/com.apple.finder.plist
    • brew cask install Transmission
    • brew cask install vlc

The Ultimate

How can this be used to easily refresh a computer on a regular basis (monthly, quarterly)?

Remaining big issue: my files in my home directory. Seperate partition? Dropbox? Cloud + local copy seems nice (ie. Backblaze + TimeMachine) if it's easy and reliable.

About

Scripts to prepare a Mac running OS X Mavericks for Ruby development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 71.3%
  • Shell 28.7%