Last active
September 26, 2023 02:40
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 [email protected] | |
echo 'export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"' >> ~/.zshrc | |
brew services start mongodb/brew/[email protected] | |
# 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