Skip to content

Instantly share code, notes, and snippets.

@dshemetov
Last active June 18, 2024 02:14
Show Gist options
  • Save dshemetov/8e03812af9077e1db623dc9f532f34c0 to your computer and use it in GitHub Desktop.
Save dshemetov/8e03812af9077e1db623dc9f532f34c0 to your computer and use it in GitHub Desktop.
Installer for a fresh Mac
# Mac Setup Helper
#
# This my helper script for setting up a new Mac. It's not meant to be run
# as-is, but rather to be used as a reference for setting up a new Mac.
#
# Some resources I used:
# - An in-depth setup guide https://sourabhbajaj.com/mac-setup/
# Install xcode, many basics for Mac dev
xcode-select --install
# Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install a few utilities
brew install xz pyenv wget zsh git
# Install oh-my-zsh https://github.com/ohmyzsh/ohmyzsh/
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install starship https://starship.rs/
curl -sS https://starship.rs/install.sh | sh
# Add pyenv hooks to your profile
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
source ~/.zshrc
# Install a recent Python with pyenv and make it default
pyenv install 3.11
pyenv global 3.11
# Install useful programs
brew install --cask \
adobe-acrobat-reader \
audacity \
audio-hijack \
cleanmymac \
discord \
djview \
firefox \
gimp \
guitar-pro \
hyper \
kindle \
loopback \
obsidian \
reaper \
rocket \
signal \
slack \
spotify \
steam \
supercollider \
syncthing \
telegram \
visual-studio-code \
vlc \
whatsapp \
zoom \
zotero
# Copy .zshrc, .zprofile, ssh keys, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment