Skip to content

Instantly share code, notes, and snippets.

@Juxtaposedwords
Last active September 1, 2015 18:25
Show Gist options
  • Save Juxtaposedwords/7de9f4c25c3f8475b1b4 to your computer and use it in GitHub Desktop.
Save Juxtaposedwords/7de9f4c25c3f8475b1b4 to your computer and use it in GitHub Desktop.
#!/bin/bash
xcode-select --install
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew recipes
brew update
# Install GNU core utilities (those that come with OS X are outdated)
brew install coreutils
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils
# Install Bash 4
brew install bash
# Install more recent versions of some OS X tools
brew tap homebrew/dupes
brew install homebrew/dupes/grep
# This will install all the stuff we need for reasons
brew install caskroom/cask/brew-cask
brew cask install google-chrome
brew cask install shiftit
brew cask install viscosity
brew cask install sublime-text
brew cask install alfred
brew cask install google-drive
# This enables shiftit in security preferences, no seriously it does.
sudo sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" 'update access set allowed="1" where client like "%shiftit%";'
# Some configuration for EdgeTheory Users
sudo bash << "EOF"
mkdir /Library/User\ Pictures/Corporate
curl https://pbs.twimg.com/profile_images/614133831617105921/sRwtFtMz.jpg -o /Library/User\ Pictures/Corporate/EdgeTheory.jpg
dscl . delete /Users/edgetheory jpegphoto
dscl . delete /Users/edgetheory Picture
dscl . create /Users/edgetheory Picture "/Library/User\ Pictures/Corporate/EdgeTheory.jpg"
EOF
# Now let's clean up the dock
defaults write com.apple.dock static-only -bool TRUE
killall Dock
#Automatically hide and show the Dock
defaults write com.apple.dock autohide -bool true
# Disable the sound effects on boot
sudo nvram SystemAudioVolume=" "
# Save to disk (not to iCloud) by default
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# Automatically quit printer app once the print jobs complete
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
# Remove duplicates in the “Open With” menu (also see `lscleanup` alias)
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
# Disable local Time Machine snapshots
sudo tmutil disablelocal
# Finder: show hidden files by default
defaults write com.apple.finder AppleShowAllFiles -bool true
# Finder: show all filename extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Empty Trash securely by default
defaults write com.apple.finder EmptyTrashSecurely -bool true
# Make Dock icons of hidden applications translucent
defaults write com.apple.dock showhidden -bool true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment