Skip to content

Instantly share code, notes, and snippets.

@freshlogic
Last active September 26, 2023 02:40
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 freshlogic/fa3dcc44eedd36b4602d541ccd5b4368 to your computer and use it in GitHub Desktop.
Save freshlogic/fa3dcc44eedd36b4602d541ccd5b4368 to your computer and use it in GitHub Desktop.
This is for Mac computers with Apple silicon: https://support.apple.com/en-us/HT211814
#!/bin/zsh
set -e
# Enable right clicking
defaults write com.apple.driver.AppleBluetoothMultitouch.mouse MouseButtonMode TwoButton
defaults write com.apple.driver.AppleHIDMouse Button2 -int 2
# You may need to reset the UI server or log out and back in for the changes to take effect
killall "SystemUIServer"
# Rosetta 2
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
# Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> ~/.zprofile
eval $(/opt/homebrew/bin/brew shellenv)
# MongoDB
brew tap mongodb/brew
brew install mongodb-community@4.4
echo 'export PATH="/opt/homebrew/opt/mongodb-community@4.4/bin:$PATH"' >> ~/.zshrc
brew services start mongodb/brew/mongodb-community@4.4
# Redis
brew install redis
brew services start redis
# NVM
touch ~/.zshrc
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm install 16
# npmclean
echo 'alias npm-clean="rm -rf node_modules/ && rm -f package-lock.json && npm i && npm outdated"' >> ~/.zshrc
alias npm-clean="rm -rf node_modules/ && rm -f package-lock.json && npm i && npm outdated"
# ESLint
npm i eslint -g
# PM2
npm i pm2 -g
# Docker Desktop
# brew install docker
# open /Applications/Docker.app
# GitHub Desktop
brew install github
open /Applications/GitHub\ Desktop.app
# MongoDB Compass
brew install mongodb-compass
open /Applications/MongoDB\ Compass.app
# ngrok
brew install ngrok
# Visual Studio Code
brew install visual-studio-code
open /Applications/Visual\ Studio\ Code.app
# Mac App Store CLI
brew install mas
# Azure VPN Client
mas install 1553936137
# Slack
mas install 803453959
open /Applications/Slack.app
# WireGuard
mas install 1451685025
# GitHub CLI
brew install gh
gh auth login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment