My fork of @mathiasbynens' ~/.osx script