Skip to content

Instantly share code, notes, and snippets.

@eknowles
Last active October 11, 2023 10:05
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 eknowles/71ed8b770cd66adb96d5fbe8241e01e8 to your computer and use it in GitHub Desktop.
Save eknowles/71ed8b770cd66adb96d5fbe8241e01e8 to your computer and use it in GitHub Desktop.

macOS Setup for SWE

Core

Install Homebrew

Homebrew will also install Xcode for you, but if you'd rather do this first you can with xcode-select --install.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Basics

brew update
brew install coreutils curl git openssl readline sqlite3 xz zlib tcl-tk # needed for asdf and asdf-python

Optional

brew update
brew install htop # terminal process viewer, alternative to top
brew install gdal # For use with geopandas etc...
brew install duckdb # local olap db
brew install kind # alternative to minikube, install docker first
brew install helm # manage kubernetes apps

Install Docker

brew cask install docker

Terminal

Warp

brew install --cask warp # terminal alternative (see https://warp.dev)

zoxide (path manager)

https://github.com/ajeetdsouza/zoxide

brew install zoxide

Add this to the end of your config file (usually ~/.zshrc):

eval "$(zoxide init zsh)"

Languages

Install Python

This requires git which we did before with brew. Details on pydev installer can be found on their GitHub page. Learn more about pyenv at realpython.com's intro to pyenv

curl https://pyenv.run | bash
pyenv install 3.11.6 # version 3.12 breaks for me on some stuff
pyenv global 3.11.6 # install it globally

Install asdf

For languages such as go, python, nodejs

git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.13.1

Add the following to ~/.zshrc:

. "$HOME/.asdf/asdf.sh"

Add some global plugins for asdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment