pincoded / osxbootstrap

Custom bootstrap installation and configuration for Mac OS X.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

osxbootstrap

Custom bootstrap installation and configuration for Mac OS X.

Introduction

In order to have easier reinstalls of my Mac, I wrote scripts based off of fBootstrap and Wilto's dotfiles. The files are organized as follows:

  • bootstrap.sh: Command script to run the process.
  • brew/*.sh: Scripts to install software.
  • config/osx.sh: Script to set custom settings to OSX.

Installation

Run the following:

git clone git://github.com/krimkus/OSXBootstrap.git ~/.bootstrap 
cd ~/.bootstrap && ./bootstrap.sh

If the Mac this is being installed on has a ssd boot drive or a battery, use the appropriate flags, --ssd and --battery

cd ~/.fBootstrap && ./bootstrap.sh --ssd --battery

During the installation/configuration process, you will be prompted for your username/email and root credentials.

Customization

I think that most of these scripts are perfectly useful for anybody. However, there are parts that you should consider to adapt to fit your own needs:

  • The applications installed under /brew/brew.sh could be customized to your needs. More casks available at https://github.com/phinze/homebrew-cask
  • Everything under /config/osx.sh is relatively personal. Take a look and decide for yourself.

What you get

An essential pack of software for your Mac:

You also get these tools for developement:

And last but not least, this bootstrap will install:

  • Ctrl + + + c to copy file/dir paths from Finder. I know drag and drop is cool, but not as much as this shortcut!

What's the future of OSXBootstrap?

There are tasks that I would still like to automate:

Installing homebrew currently prompts to install dev tools because it isn't by default with XCode (Checking for clang is not enough). But the shortcut for that could be run first.

Turn on (or warn) full-disk encryption if installing on a laptop Customize finder sidebar:

  • Hide all-my-files, movies, music, pictures, bonjour, idisk
  • Show ~, ~/Dev, boot disk

Customize Alfred and Spotlight more:

  • Launch Alfred at login
  • change Spotlight hotkey to alt-space
  • change Alfred hotkey to command-space

Customize iTerm2:

Customize Messages:

  • add accounts
  • make sure history is being saved
  • set my background color: clear
  • set sender's background color: aqua
  • Turned off all sound notifications

Sublime Text:

  • copy in license
  • install Sublime Package Control
  • install SublimeCodeIntel, SublimeLinter
  • add Soda Themes:
  • sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /bin/subl

Install the following apps, or remind to install from the App Store:

  • Fantastical
  • Aperture
  • Trasmit
  • Cinch
  • Textwrangler
  • Alfred
  • Caffeine
  • iWork
  • Evernote
  • Postbox
  • 1Password
  • mysql-workbench
  • Photoshop
  • Stay (if a laptop)
  • Omnigraffle
  • SuperDuper
  • Sublime Text

Code to add to this repo:

  • copy in ~/work_on.sh
  • copy in Eject app (if a laptop)
  • sudo easy_install pip
  • sudo pip install virtualenv
  • sudo pip install djenesis
  • check that mysql and postgres are working properly, add Django db_settings defaults
  • remove default mac apps from the dock
  • add adobe IPs to config
  • Downloaded Trim Enabler (if SSD)
  • Turn off hard drive sleep (if SSD only)

Add tasks to the Reminders app to do the following:

  • Copy in private keys
  • Copy in OS X keychains
  • Copy in 1Password library, or turn on cloud storage
  • Copy in Transmit favorites
  • Add mail accounts

Licensing and thanks...

I kept as much references as I could (in-line with the code) to the work of others. But I'm going to be more clear:

I'd be happy to hear any comments, ideas, code, questions.

You can find me at: github.com/krimkus, or @kylerimkus.

About

Custom bootstrap installation and configuration for Mac OS X.

License:MIT License


Languages

Language:Shell 61.5%Language:AppleScript 36.0%Language:Ruby 2.5%