#!/bin/sh # BACKUP BEFORE WIPE: # SSH keys # Fonts # Keychain passwords # files outside dropbox: downloads, documetns, photos # music itunes # bash profile # transmit favs # reference: # https://github.com/thoughtbot/laptop # https://github.com/tylucaskelley/setup # http://sourabhbajaj.com/mac-setup/ echo "Starting configuration..." if ! brew help &> /dev/null; then echo "installing homebrew..." /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" else echo "homebrew already installed" fi echo "Updating Homebrew formulae ..." brew update echo "Begin Homebrew bundle install..." brew bundle --file=- <> ~/.config/youtube-dl/config # RUBY # https://gorails.com/setup/osx/10.14-mojave # https://sourabhbajaj.com/mac-setup/Ruby/ echo "Begin Ruby config..." # Add rbenv to bash so that it loads every time you open a terminal echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile source ~/.bash_profile rbenv install 2.6.1 rbenv global 2.6.1 ruby -v echo "Begin OSX Settings..." # OSX Settings # reference: https://github.com/keith/dotfiles/blob/master/osx/defaults.sh # Disable "shake to find mouse" defaults write NSGlobalDomain CGDisableCursorLocationMagnification -bool true # Enable two button mouse defaults write com.apple.driver.AppleBluetoothMultitouch.mouse.plist MouseButtonMode -string "TwoButton" # Trackpad: enable tap to click for this user and for the login screen defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1 # set key repeat speed defaults write -g InitialKeyRepeat -int 15 defaults write -g KeyRepeat -int 2 # When performing a search, search the current folder by default defaults write com.apple.finder FXDefaultSearchScope -string SCcf # Dont reopen apps after shutdown defaults write -g ApplePersistence -bool no # Automatically hide and show the Dock defaults write com.apple.dock autohide -bool true # Change the auto-hiding Dock delay adn speed defaults write com.apple.dock autohide-delay -float 0.0 defaults write com.apple.dock autohide-time-modifier -float 0.5 # set DNS servers networksetup -setdnsservers Wi-Fi 1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001 # Dock setup if command -v dockutil; then dockutil --remove all else echo "dockutil not installed, re-run after installing" fi echo "Setup process complete!" # MANUAL SETUP # install font manager # adobe-creative-cloud run the installer '/usr/local/Caskroom/adobe-creative-cloud/latest/Creative Cloud Installer.app' # git config # mamp settings: set server ports to 80, 81, 433... # Spectacle: remove shortcuts that conflict with photoshop undo, start at login, and set as background application # setup Dropbox # Alfred: link settings in dropbox # Sublime: link settings in dropbox