Skip to content

Instantly share code, notes, and snippets.

@neuroticnerd
Last active August 9, 2019 04:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neuroticnerd/465b4a6ff1f9c0060cad to your computer and use it in GitHub Desktop.
Save neuroticnerd/465b4a6ff1f9c0060cad to your computer and use it in GitHub Desktop.
Setup scripts for a fresh OS X install
#!/usr/local/env bash
set -e
###############################################################################
# Initial Setup #
###############################################################################
### make sure xcode utilities are installed
xcode-select –install
### install homebrew
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
brew doctor
brew update
### install utilities
brew install wget
brew install ack
brew install ffind
brew install autoenv
brew install coreutils
wget --output-document=~/.bash_profile https://gist.githubusercontent.com/neuroticnerd/52f41ef0aea6ee156154/raw/dc29a74b0cc0c397fe6884c469006b31f3923485/dotbash_profile
### install homebrew cask
brew tap caskroom/cask
brew tap caskroom/versions
brew install brew-cask
### install main software
brew cask install firefox
brew cask install google-chrome
brew cask install one-password
brew cask install virtualbox
brew cask install vagrant
brew cask install sublime-text3
brew cask install smartgit
brew cask install sourcetree
brew cask install kdiff3
brew cask install slack
brew cask install dropbox
brew cask install cog
brew cask install vlc
brew cask install the-unarchiver
### setup python environment
brew install python
pip install --upgrade pip setuptools wheel
pip install virtualenvwrapper
pip install virtualenv
pip install requests
pip install markdown
pip install beautifulsoup4
pip install sqlalchemy
pip install Pillow
pip install lxml
pip install Jinja2
pip install Pygments
###############################################################################
# Finder Tweaks #
###############################################################################
# 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
# Finder: show status bar
defaults write com.apple.finder ShowStatusBar -bool true
# Finder: allow text selection in Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool true
# Disable the warning when changing a file extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Enable snap-to-grid for icons on the desktop and in other icon views
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment