This repo contains a set of instructions and scripts that I use to set up my environment for work and play.
Homebrew relies on build tools that are a part of XCode, so before you do anything else, download that.
Note: If you want to figure out which apps you've installed via the App Store, you can enter the following command:
find /Applications \
-path '*Contents/_MASReceipt/receipt' \
-maxdepth 4 -print |\
sed 's#.app/Contents/_MASReceipt/receipt#.app#g; s#/Applications/##'
At this stage, Github access hasn't been set up on the system, so grab this repo using curl
so its scripts can be run. (We'll checkout the repo to it's permanent location later).
Open Terminal and enter:
cd ~
curl -O https://github.com/ursooperduper/mac-setup/archive/master.zip
Then enter unzip
to extract the zip file to your home directory with the folder name, mac-setup-master
.
Unfortunately, some tools require Java. So you need to download and install the following:
The .macos
script customizes the OS so it runs the way I like it. It's based on the awesome work found here: https://github.com/mathiasbynens/dotfiles/blob/master/.macos
In Terminal, enter:
cd ~/mac-setup-master
. scripts/.macos
Navigate to the mac-setup-master
directory and run the mac-setup script.
cd ~/mac-setup-master
. scripts/mac-setup.sh
The mac-setup script does the following:
- Checks to see if Xcode is installed (and exits if it's not installed)
- Checks for (and installs Command Line Tools)
- Agrees to the Xcode ToS
- Creates an SSH key (& copies it to the clipboard) and prompts you to add it to Github
- Creates working directories (~/code/personal, ~/code/work, & ~/code/third-party)
- Clones Github repos (ursooperduper.github.io, keys, .atom, dotfiles, cheatsheets, prototypes, mac-setup)
- Runs
npm install
andbundle install
for projects - Exports .keys so they're available as environment variables
- Symlinks relevant .keys and .dotfiles files (ex: .gitconfig, .bashrc)
- Runs OS X Customization script (based on ...)
- Installs Homebrew and Cask (versions, apps, fonts)
- Installs mas which then lets you install your App Store apps
- Installs Homebrew binaries, Cask binaries, Cask fonts, and Ruby Gems
Note:It may be necessary to run the script more than once for machine restarts and installations. I'll improve the script over time to address that flow.
Run the Dropbox app, log in for the first time, and then customize which directories are synced to the machine. The most important directories to include in the selective sync are:
- 1Password.agilekeychain
- alfred
- Fonts
Where possible, fonts are installed using Homebrew. The rest of my fonts are saved to Dropbox (and are now synced to this machine - thanks, Step 4!).
There may be a better way to do this, but next, I copy my fonts from ~/Dropbox/Fonts to the ~/fonts folder.
Open 1Password and go through its setup. In the process, be sure to point the archive at the ~/Dropbox/1Password.agilekeychain folder.
Keep 1Password open for now as you'll need it throughout your machine setup.
Alfred is super cool when you add the Powerpack, so grab its license which is saved in 1Password.
Go the Advanced tab in Alfred's preference window and at the bottom right, click the Set Sync Folder
button and point that at: ~/Dropbox/alfred
These files include Alfred preferences, extensions, custom sites, etc. There are a few things that aren't set so you can modify them from machine to machine. See Alfred's documentation for more.
Finally, go to the Features tab in the Preferences dialog and enable 1Password integration.
Install Browser Extensions for Chrome, Firefox, and Safari
- 1Password
- Dropmark
- Ghostery
- Grammarly
Run Adobe Creative Cloud and set it to run on startup.
After a successful set up, install:
- Photoshop
- Illustrator
- XD
Next, run and set up all the apps that should start every time you log in.
Run iTerm and then download the color schemes available here. Follow the instructions on the site for installation.
I like to keep reference material in ebook form, so it's very portable. After logging in to the Kindle, download programming and design references books from my Kindle account.
- Framer Studio
- Omnigraffle
- Reflector
- Sketch