Skip to content

Instantly share code, notes, and snippets.

@SimplGy SimplGy/macSetup.sh
Created Feb 10, 2014

Embed
What would you like to do?
Mac Setup Script
#!/usr/bin/env bash
sudo -v
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
xcode-select —install
sh -c "`curl -fsSL https://raw.github.com/skwp/dotfiles/master/install.sh`"
rake update
chsh -s $(which zsh)
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
brew tap phinze/homebrew-cask
brew install brew-cask wget git htop legit brew-pip brew-gem python scala sbt node ruby
gem update --system
# Regular OSX Applications
brew cask install dropbox google-chrome vlc mou firefox
# brew pip Glances git-sweep
npm install -g coffee-script
#gem install travis
#legit install
#defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
#defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
#defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
#defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
#defaults write com.apple.LaunchServices LSQuarantine -bool false
#sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
#systemsetup -setrestartfreeze on
# God, does this supress the update notices?
# launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist 2> /dev/null
# Show all files in the finder, even hidden files.
defaults write com.apple.finder AppleShowAllFiles -bool true
# Don't hide /Library
chflags nohidden ~/Library
#defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
#defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
#defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
#defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40
#defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
#defaults write com.apple.BezelServices kDim -bool true
#defaults write com.apple.BezelServices kDimTime -int 300
#defaults write com.apple.screencapture location -string "${HOME}/Desktop"
#defaults write NSGlobalDomain AppleFontSmoothing -int 2
#defaults write com.apple.finder QuitMenuItem -bool true
#defaults write NSGlobalDomain AppleShowAllExtensions -bool true
#defaults write com.apple.finder ShowStatusBar -bool true
#defaults write com.apple.finder ShowPathbar -bool true
#defaults write com.apple.finder QLEnableTextSelection -bool true
#defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
#defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
#defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
#defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
#defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
#defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
#defaults write com.apple.finder CreateDesktop -bool false
#defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
#sudo nvram boot-args="mbasd=1"
#defaults write com.apple.finder FXInfoPanesExpanded -dict \
# General -bool true \
# OpenWith -bool true \
# Privileges -bool true
#defaults write com.apple.dock minimize-to-application -bool true
#defaults write com.apple.dock show-process-indicators -bool true
#defaults write com.apple.dock expose-group-by-app -bool false
#defaults write com.apple.dashboard mcx-disabled -bool true
#defaults write com.apple.dock dashboard-in-overlay -bool true
#defaults write com.apple.dock mru-spaces -bool false
defaults write com.apple.dock autohide -bool true
#defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
##defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
#defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" -string "@\\U21a9"
#defaults write com.apple.mail DraftsViewerAttributes -dict-add "DisplayInThreadedMode" -string "yes"
#defaults write com.apple.mail DraftsViewerAttributes -dict-add "SortedDescending" -string "yes"
#defaults write com.apple.mail DraftsViewerAttributes -dict-add "SortOrder" -string "received-date"
#defaults write com.apple.mail DisableInlineAttachmentViewing -bool true
#sudo defaults write /.Spotlight-V100/VolumeConfiguration Exclusions -array "/Volumes"
#killall mds > /dev/null 2>&1
#sudo mdutil -i on / > /dev/null
#sudo mdutil -E / > /dev/null
# sudo find / -name '*.DS_Store' -type f -delete
#for app in "Activity Monitor" "Address Book" "Calendar" "Contacts" "Dock" \
# "Finder" "Mail" "Messages" "Safari" "SizeUp" "SystemUIServer" "Terminal" \
# "Transmission" "Twitter" "iCal"; do
# killall "${app}" > /dev/null 2>&1
#done
echo "Your Mac is ready!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.