Skip to content

Instantly share code, notes, and snippets.

@Villanuevand
Forked from psteinroe/setup-macos.sh
Last active October 1, 2025 15:24
Show Gist options
  • Select an option

  • Save Villanuevand/128b7d6ad65f702bd596e83179b2d234 to your computer and use it in GitHub Desktop.

Select an option

Save Villanuevand/128b7d6ad65f702bd596e83179b2d234 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
brew update
brew tap homebrew/cask
brew tap homebrew/cask-versions
export PATH="/opt/homebrew/bin:$PATH"
softwareupdate --install-rosetta
# Apps
brew install spotify --cask
brew install webstorm --cask
brew install slack --cask
brew install google-chrome --cask
brew install postman --cask
brew install notion --cask
brew install discord --cask
# Tools
brew install iterm2 --cask
brew install pgadmin4 --cask
brew install caffeine --cask
# PNPM
brew install pnpm
# NX CLI
pnpm install nx --global
# 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
# Theme
brew install romkatv/powerlevel10k/powerlevel10k
echo "source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc
# Fix Perl Missing Default Locale Error
echo "export LC_CTYPE=en_US.UTF-8" >>~/.zshrc
echo "export LC_ALL=en_US.UTF-8" >>~/.zshrc
# Fix compaudit
compaudit | xargs chmod g-w
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
# 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