Skip to content

Instantly share code, notes, and snippets.

@nbellocam
Forked from psteinroe/setup-macos.sh
Last active June 7, 2025 20:34
Show Gist options
  • Save nbellocam/fdabb5f4a6e4f8ba59c16efb555985b7 to your computer and use it in GitHub Desktop.
Save nbellocam/fdabb5f4a6e4f8ba59c16efb555985b7 to your computer and use it in GitHub Desktop.
A litte script to setup a new mac
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
xcode-select --install
echo >> ~/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
brew update
export PATH="/opt/homebrew/bin:$PATH"
softwareupdate --install-rosetta
# Apps
brew install spotify --cask
brew install slack --cask
brew install google-chrome --cask
brew install google-chrome@canary --cask
brew install microsoft-edge --cask
brew install microsoft-office --cask
brew install visual-studio-code --cask
brew install windsurf --cask
brew install postman --cask
brew install notion --cask
brew install notion-calendar --cask
brew install discord --cask
brew install whatsapp --cask
brew install 1password --cask
# Postgres
brew install postgresql
# Tools
brew install iterm2 --cask
brew install docker --cask
brew install pgadmin4 --cask
brew install dbeaver-community --cask
brew install caffeine --cask
brew install awscli
brew install nvm
mkdir ~/.nvm
echo >> ~/.zshrc
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.zshrc
echo '[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm' >> ~/.zshrc
echo '[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion' >> ~/.zshrc
brew install gnupg
brew install pinentry-mac
brew install awscli
# Cocoapods
sudo gem install cocoapods
# Python
brew install python3
pip3 install virtualenv --user
pip3 install --upgrade pip --user
brew install pyenv
# Go
brew install golang
# zsh
brew install zsh
# oh my zsh
export RUNZSH=no
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Add brew to zshrc
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> $HOME/.zshrc
brew install zsh-syntax-highlighting
echo 'source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc
brew install zsh-autosuggestions
echo 'source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
# Theme
brew install romkatv/powerlevel10k/powerlevel10k
echo "source $HOMEBREW_PREFIX/share/powerlevel10k/powerlevel10k.zsh-theme" >> ~/.zshrc
# Add pyenv to zsh
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init - zsh)"' >> ~/.zshrc
# Fix compaudit
compaudit | xargs chmod g-w
# Set git defaults
git config --global push.default current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment