Skip to content

Instantly share code, notes, and snippets.

@BramEsposito
Created January 9, 2017 10:12
Show Gist options
  • Save BramEsposito/5de2ee102b5848f9a7faa486a300b91d to your computer and use it in GitHub Desktop.
Save BramEsposito/5de2ee102b5848f9a7faa486a300b91d to your computer and use it in GitHub Desktop.
install script for new mac
echo "Enter your username: (for git usage)"
read UserName
echo "Enter your email address: (for git usage)"
read EmailAddress
# Ask for the administrator password upfront
sudo -v
echo "Installing xcode-stuff"
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
echo "Updating homebrew..."
brew update
echo "Installing Git..."
brew install git
echo "Git config"
git config --global user.name $UserName
git config --global user.email $EmailAddress
echo "Installing other brew stuff..."
brew install wget
brew install node
echo "Cleaning up brew"
brew cleanup
echo "Setting ZSH as shell..."
chsh -s /bin/zsh
# Apps
apps=(
alfred
axure-rp
dash
diffmerge
caffeine
dropbox
firefox
gas-mask
google-chrome
google-drive
google-photos-backup
go2shell
hammerspoon
harvest
invisionsync
phpstorm
soulver
sourcetree
sketch
spotify
iterm2
sublime-text
virtualbox
vlc
skype
transmission
onepassword
sequel-pro
qlmarkdown
qlstephen
suspicious-package
xmind
)
# Install apps to /Applications
# Default is: /Users/$user/Applications
echo "installing apps with Cask..."
brew cask install --appdir="/Applications" ${apps[@]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment