Skip to content

Instantly share code, notes, and snippets.

@gweakliem
Last active December 30, 2024 13:45
Show Gist options
  • Save gweakliem/66e0512a7ee10e0528fff66f310cbd1e to your computer and use it in GitHub Desktop.
Save gweakliem/66e0512a7ee10e0528fff66f310cbd1e to your computer and use it in GitHub Desktop.
Setting up Command Line Environment on OSX

This is pretty much true for Linux as well, but I mostly use OSX these days. I set up machines infrequently enough that there's a lot of fumbling around while I remember how to do all this so I'm writing this down to have in one place for the next time I have to set up a new machine. This list doesn't include things like Rust, which manages itself pretty well, it's for environment settings and things that need an external manager to keep the environment sane.

Aside from the usual applications distributed in .dmg format, I like the following:

  1. Install ITerm2 because the system terminal is kinda lame. I don't typically do a lot of customization but I do add vi mode to the shell by putting bindkey -v into ~/.zshrc (or ~/.bashrc).
  2. Create a new SSH key and add it to Github.
  3. Install Homebrew - this is the bootstrap for most of the rest of the installations. IIRC Homebrew will install the XCode Command Line Tools, which you will need for practically everything else.
  4. Install PyEnv - there are a bunch of other dependencies, make sure you do those too. The instructions have a few sections, don't forget to install in your login shell or you'll be wondering why python doesn't work.
  5. Install pipx for system-wide Python applications.
  6. Install SDKMan - for all things JVM.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment