Skip to content

Instantly share code, notes, and snippets.

@rorymcdaniel
Last active December 19, 2019 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rorymcdaniel/1d906ad681b808d45a79754327312dff to your computer and use it in GitHub Desktop.
Save rorymcdaniel/1d906ad681b808d45a79754327312dff to your computer and use it in GitHub Desktop.
Provision my mac after re-installing
#!/bin/bash
# First, install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install caskroom/cask/brew-cask 2> /dev/null
brew install node
brew cask install iterm2
brew install zsh
brew cask install firefox
brew cask install sublime-text
brew cask install google-chrome
brew cask install phpstorm
brew cask install libreoffice
brew cask install slack
brew cask install gpgtools
brew cask install dbeaver-community
brew cask install rescuetime
brew install openconnect
brew cask install zoom
brew cask install remote-desktop-connection
brew cask install deluge
# Mac app store utility
brew install mas
# Download and install Lando
brew install wget
wget https://github.com/lando/lando/releases/download/v3.0.0-rc.23/lando-v3.0.0-rc.23.dmg
sudo hdiutil attach lando-v3.0.0-rc.23.dmg
sudo installer -pkg "/Volumes/Lando 3.0.0-rc.23/LandoInstaller.pkg" -target /
sudo hdiutil detach "/Volumes/Lando 3.0.0-rc.23"
rm lando-v3.0.0-rc.23.dmg
# Download and install TorBrowser
wget https://www.torproject.org/dist/torbrowser/9.0.1/TorBrowser-9.0.1-osx64_en-US.dmg
sudo hdiutil attach TorBrowser-9.0.1-osx64_en-US.dmg
sudo cp "/Volumes/Tor Browser/Tor Browser.app" /Applications
sudo hdiutil detach "/Volumes/Tor Browser"
rm TorBrowser-9.0.1-osx64_en-US.dmg
# Download and install Signal
wget https://updates.signal.org/desktop/signal-desktop-mac-1.28.0.dmg
sudo hdiutil attach signal-desktop-mac-1.28.0.dmg
sudo cp "/Volumes/Signal 1.28.0/Signal.app" /Applications
sudo hdiutil detach "/Volumes/Signal 1.28.0"
rm signal-desktop-mac-1.28.0.dmg
# Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Install the fonts we need for the cool terminal prompt
cd ~/Library/Fonts && { curl -O 'https://github.com/romkatv/dotfiles-public/raw/master/.local/share/fonts/NerdFonts/MesloLGS%20NF%20Regular.ttf' ; cd -; }
cd ~/Library/Fonts && { curl -O 'https://github.com/romkatv/dotfiles-public/raw/master/.local/share/fonts/NerdFonts/MesloLGS%20NF%20Bold.ttf' ; cd -; }
cd ~/Library/Fonts && { curl -O 'https://github.com/romkatv/dotfiles-public/raw/master/.local/share/fonts/NerdFonts/MesloLGS%20NF%Italic.ttf' ; cd -; }
cd ~/Library/Fonts && { curl -O 'https://github.com/romkatv/dotfiles-public/raw/master/.local/share/fonts/NerdFonts/MesloLGS%20NF%20Bold%20Italic.ttf' ; cd -; }
# put the original .zshrc and p10k config files back in place
scp devstation:/home/rory/Backup/.zshrc ~/.zshrc
scp devstation:/home/rory/Backup/.p10k.zsh ~/.p10k.zsh
echo "All Done. Close this terminal and restart it."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment