Useful perhaps only to me, but I encourage poking around and forking.
NOTE: The following should only be done on machines that don't already have an owner who is a developer. As an administrator, you'll potentially be screwing with their setup.
-
Log into the machine as an administrator and make a new user in the Users & Groups preference panel:
Full Name: Matthew McVickar Account Name: (automatic, probably 'matthewmcvickar') Password: ಠ_ಠ
-
Make that user an administrator. This is necessary.
-
Log in as that user for the first time. Click through dialogs. OS X starts.
-
Go here. github.com/matthewmcvickar/setup
-
Open Terminal.
-
Copy, paste, and run the initialization script.
curl -s https://raw.githubusercontent.com/matthewmcvickar/setup/master/init.sh | bash
This does the following:
- Removes all icons from the Dock.
- Sets up
~/Sites
directory structure. - Unhides
~/Library
. - Installs Homebrew and packages.
- Configures Git username and email address.
- Installs Homebrew Cask and desktop apps:
- Sets up Sublime Text command line tool.
- Fixes permissions on
/usr/local/
and~/.npm
to avoid problems withsudo
and Node. - Installs Grunt, Bower, Node libsass and the SASS Gem.
If something goes wrong during this process, use the following to uninstall HomeBrew:
$ curl -s https://gist.githubusercontent.com/mxcl/1173223/raw/a833ba44e7be8428d877e58640720ff43c59dbad/uninstall_homebrew.sh | bash
Then open another window and delete the folders that Homebrew and Homebrew Cask created:
$ sudo rm -rf /usr/local/ /opt/homebrew-cask
-
Open Keyboard preferences. Check 'Use all F1, F2, etc. keys as standard function keys.'
-
Open 1 Password. It will automatically sync to iCloud.
-
Quit Safari. Open Chrome. Get Google password from 1 Password and log in to Chrome.
-
Navigate here to resume following instructions. github.com/matthewmcvickar/setup
-
Get Alfred license key from 1 Password. Open Alfred. Enter license key.
-
In Alfred preferences, set sync to
~/Library/Mobile Documents/
. Close Alfred preferences. -
Link Homebrew Cask to Alfred:
$ brew cask alfred link
-
Open a Finder window. Open Finder preferences.
- General
- New Finder windows show: Desktop
- Sidebar
- Hide All My Files.
- Hide AirDrop.
- Show home folder.
- Hide all under Shared.
- Hide Tags.
- Advanced
- Show all filename extensions.
- General
-
Go to ~/Applications. Drag the following applications to the Dock:
- Chrome
- iTerm
- Sublime Text
-
Launch everything in ~/Applications.
-
Quit Terminal. Open iTerm. Update it. Relaunch.
-
Open iTerm preferences and set sync to
~/Library/Mobile Documents/
. -
Open TextExpander. Give it Accessibility access.
-
Relaunch TextExpander. Enter license key from 1 Password.
-
Symlink TextExpander preferences to iCloud version:
$ cd ~/Library/Application\ Support/TextExpander/ $ rm Settings.textexpander $ ln -s ~/Library/Mobile\ Documents/Settings.textexpander
Unfortunately, there is no way to automate this.
-
Launch the App Store, sign in, and go the Purchases tab to find these apps.
- Divvy
- xScope
- LiveReload
- Patterns
-
Give Divvy accessibility access in System Preferences → Security & Privacy → Accessibility.
-
Launch Divvy. Quit Divvy.
-
Symlink Divvy preferences to iCloud version:
$ cd ~/Library/Preferences $ rm com.mizage.Divvy.plist $ killall cfprefsd $ ln -s ~/Library/Mobile\ Documents/com.mizage.Divvy.plist
If this doesn't work, you can export and import Divvy's shortcuts.
As of 2019-02-10, here is my shortcuts block:
divvy://import/YnBsaXN0MDDUAQIDBAUGvL1YJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoK8QHgcIGjEyOUNETk9aW2Rlb3B5eoOEjI2Vlp+gqqu2t1UkbnVsbNIJCgsZWk5TLm9iamVjdHNWJGNsYXNzrQwNDg8QERITFBUWFxiAAoAFgAeACYALgA2AD4ARgBOAFYAXgBmAG4Ad3RscHR4fCiAhIiMkJSYnKCkqKywoKycuLykwWHNpemVSb3dzXxAPc2VsZWN0aW9uRW5kUm93XxARc2VsZWN0aW9uU3RhcnRSb3dac3ViZGl2aWRlZFZnbG9iYWxfEBJzZWxlY3Rpb25FbmRDb2x1bW5XZW5hYmxlZFtzaXplQ29sdW1uc1duYW1lS2V5XGtleUNvbWJvQ29kZV8QFHNlbGVjdGlvblN0YXJ0Q29sdW1uXWtleUNvbWJvRmxhZ3MQChAJEAAICYAECYADEH4SAJwAAFtGdWxsIFNjcmVlbtIzNDU2WiRjbGFzc25hbWVYJGNsYXNzZXNYU2hvcnRjdXSiNzhYU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ARABGAEkASwBOQFQAV4BYAFiAWQBZQFmAWgBaQFrAW0BcgF+AYMBjgGXAaABowGsAbUB0AHRAdIB1AHWAdcB2QHbAd0B4gHvAgoCCwIMAg4CEAIRAhMCFQIXAhwCIwI+AkACQQJCAkQCRgJHAkkCSwJNAlICXAJ3AngCeQJ7AnwCfgKAAoIChwKPAqoCrAKtAq4CsAKyArMCtQK3ArwC2ALzAvQC9QL3AvkC+gL8Av4DAwMPAyoDKwMsAy4DMAMxAzMDNQM6A0QDXwNgA2EDYwNkA2YDaANtA3gDkwOUA5UDlwOYA5oDnAOhA6gDwwPFA8YDxwPJA8oDzAPOA9MD3gP5A/sD/AP9A/8EAAQCBAQEBgQLBBgEMwQ1BDYENwQ5BDsEPAQ+BEAEQgRHBFMEWARnBGsEcwR8BI4EkQSWAAAAAAAAAgEAAAAAAAAAwAAAAAAAAAAAAAAAAAAABJg=
And the General and Appearance settings:
-
Create a new SSH key.
$ ssh-keygen -t rsa -C "matthew@matthewmcvickar.com" $ eval "$(ssh-agent -s)" $ ssh-add ~/.ssh/id_rsa $ pbcopy < ~/.ssh/id_rsa.pub
-
Get dotfiles.
$ cd ~/Sites/matthewmcvickar $ git clone https://github.com/matthewmcvickar/dotfiles.git $ cd dotfiles $ bash ~/Sites/matthewmcvickar/dotfiles/build_dotfiles.sh --force $ source ~/.bash_profile
-
Launch Sublime Text. Then quit Sublime Text.
-
Get Sublime Text preferences.
$ cd ~/Sites/matthewmcvickar/ $ git clone git@github.com:matthewmcvickar/sublime-text-preferences.git $ cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages $ rm -r User $ ln -s ~/Sites/matthewmcvickar/sublime-text-preferences/ User
-
Fix SASS syntax highlighting in Sublime Text:
sed -i '' '/<string>sass<\/string>/d' ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Rails/Ruby\ Haml.tmLanguage
-
Launch Sublime Text.
-
(su)Do it!
$ cd ~/Sites/matthewmcvickar/dotfiles $ ./.osx
-
Restart!
-
If you need to install Ruby:
$ brew install rbenv ruby-build $ rbenv install 1.9.3-p484 $ rbenv global 1.9.3-p484 $ gem update --system
When you are doing more than just working on the machine.
NOTE: This section is very much incomplete. See the [OS X Defaults](OS X Defaults.md) document for more notes.
There is no way to automate this.
- Fantastical
- Byword
- Day One
- Joystick Mapper
- Melo
- MsgFiler
Copy to new home folder:
- Desktop
- Documents
- Downloads
- Dropbox
- Movies
- Music
- Pictures
- Public
- Scripts
- Launch Photos.app while holding ⌥. Select Photos.app library on ‘Portable’ disk.