Skip to content

Instantly share code, notes, and snippets.

@tscheckenbach
Last active June 20, 2022 07:17
Show Gist options
  • Save tscheckenbach/00f1ae57881b79254f11f1815debd9af to your computer and use it in GitHub Desktop.
Save tscheckenbach/00f1ae57881b79254f11f1815debd9af to your computer and use it in GitHub Desktop.
#!/bin/sh
# the file containing this gist must be executable
# chmod +x FILENAME.sh
# xattr -d com.apple.quarantine FILENAME.sh
echo "Please login to your Apple Account through the Mac App Store"
echo "When logged in sucessfully press [ENTER} to continue"
read
##############################################
## Install homebrew and Xcode
##############################################
# Install homebrew (installs Xcode, too)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
##############################################
## Uncomment to install rosetta 2 if on Apple Silicon
##############################################
# softwareupdate --install-rosetta --agree-to-license
##############################################
## Add repositories through brew tap
##############################################
echo "add repositories..."
brew tap mongodb/brew
brew tap homebrew/cask-fonts
brew tap heroku/brew
brew tap shivammathur/php
##############################################
## Install brew console tools
##############################################
binaries=(
awscli
croc
fswatch
font-hack-nerd-font
git
go
heroku
lazydocker
libreoffice
# a must to handle the app store installs
mas
modd
mongocli
mongodb-community
mongodb-database-tools
mysql-client
node
p7zip
shivammathur/php
vim
wget
zsh
zsh-completions
zsh-syntax-highlighting
)
echo "installing binaries..."
brew install ${binaries[@]}
brew cleanup
##############################################
## Install brew cask apps
##############################################
apps=(
homebrew/cask/1password
homebrew/cask/aldente
homebrew/cask/alfred
homebrew/cask/brave-browser
homebrew/cask/bartender
homebrew/cask/carbon-copy-cloner
homebrew/cask/cleanmymac
homebrew/cask/datagrip
homebrew/cask/discord
homebrew/cask/divvy
homebrew/cask/droplr
homebrew/cask/docker
homebrew/cask/ears
homebrew/cask/firefox
homebrew/cask/goland
homebrew/cask/grandtotal
homebrew/cask/imazing
homebrew/cask/iterm2
homebrew/cask/karabiner-elements
homebrew/cask-drivers/logitech-g-hub
homebrew/cask/ledger-live
homebrew/cask/microsoft-teams
homebrew/cask/mockoon
homebrew/cask/nosqlbooster-for-mongodb
homebrew/cask/path-finder
homebrew/cask/postbox
homebrew/cask/postman
homebrew/cask/protonmail-bridge
homebrew/cask/phpstorm
homebrew/cask/postbox
homebrew/cask/signal
homebrew/cask/spotify
homebrew/cask/syncthing
homebrew/cask/timings
homebrew/cask/tower
homebrew/cask/transmit
homebrew/cask/ultimaker-cura
homebrew/cask/visual-studio-code
homebrew/cask/vlc
homebrew/cask-drivers/zsa-wally
homebrew/cask/zoom
)
echo "installing cask apps..."
brew install --cask ${apps[@]}
brew cleanup
##############################################
## Install App Store Apps through mas
##############################################
echo "install App Store apps ..."
# affinity Photo
mas install 824183456
# affinity Designer
mas install 824171161
# Bear
mas install 1091189122
# Daisydisk
mas install 411643860
# Diagrams
mas install 1276248849
# Fantastical
mas install 975937182
# Slack
mas install 803453959
# Keka
mas install 470158793
# Lanscan
mas install 472226235
# MindNode
mas install 1289197285
# Tweetbot
mas install 1384080005
# Outbank
mas install 1094255754
# Todoist
mas install 585829637
# Unsplash Wallpapers
mas install 1284863847
##############################################
## Install other tools apps, plugins etc
##############################################
# Powerline fonts
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts
# Spacevim
echo ">>> install spacevim"
curl -sLf https://spacevim.org/install.sh | bash
# OhMyZsh
echo ">>> install Oh My Zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
# Powerlevel10k
echo ">>> install Powerlevel10k"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
# Z
echo ">>> install Z"
git clone https://github.com/rupa/z.git
mv z/z.sh ~/.z.sh
touch ~/.z
rm -rf z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment