Skip to content

Instantly share code, notes, and snippets.

@simonluijk
Last active December 2, 2023 05:31
Show Gist options
  • Save simonluijk/666264df5c31b73398da013556f85de0 to your computer and use it in GitHub Desktop.
Save simonluijk/666264df5c31b73398da013556f85de0 to your computer and use it in GitHub Desktop.
echo "Installing xcode"
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 brew stuff..."
apps=(
awscli
direnv
docker
docker-compose
docker-credential-helper-ecr
forego
git
gnupg
libmagic
libmemcached
libtool
libxml2
libxmlsec1
mackup
pinentry
pinentry-mac
pre-commit
pyenv
pyenv-virtualenv
telnet
tfenv
tox
tree
wget
)
brew install ${apps[@]}
brew cleanup
sudo ln -s /usr/local/opt/libxml2/include/libxml2/libxml /usr/local/include/libxml
#Install Zsh & Oh My Zsh
echo "Installing Oh My ZSH..."
curl -L http://install.ohmyz.sh | sh
echo "Setting ZSH as shell..."
chsh -s /bin/zsh
# Apps
apps=(
arduino
cyberduck
deepl
docker
dropbox
electron-cash
electrum
firefox
gnucash
google-chrome
google-drive
gpg-suite
insomnia
iterm2
keepassxc
ledger-live
libreoffice
little-snitch
microsoft-teams
pgadmin4
protonmail-bridge
protonvpn
session-manager-plugin
sketchup-pro
skype
sublime-merge
sublime-text
the-unarchiver
todoist
vlc
yubico-yubikey-manager
yubico-yubikey-personalization-gui
zoomus
)
# Install apps to /Applications
# Default is: /Users/$user/Applications
echo "Installing apps with Cask..."
brew cask install --appdir="/Applications" ${apps[@]}
brew cleanup
echo "Please sign into App store."
read -p "Press [Enter] key after this..."
mas install 497799835 # Install xcode
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license
echo "Install tools with pip and npm"
npm install -g yarn
echo "Please setup and sync Dropbox, and then run this script again."
read -p "Press [Enter] key after this..."
echo "Restoring setup from Mackup..."
mackup restore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment