Installation (MacOS)

MacOS Installation Instructions

Terminal Emulator

MacOS's default Terminal.app is good enough but if you want something better, install iTerm2.

homebrew Package Manager

If at any point you get any errors, just ask for help.

  1. In your terminal run:

    xcode-select --install
  2. In your browser, go to brew.sh

  3. Copy the installation command

  4. Open iTerm or Terminal.app

  5. Paste the command you copied and press Enter

  6. Read and follow the prompts

  7. When the installation finishes without any errors, if it shows you something similar to this:

then run the commands it asks you to one at a time. Restart (Don't just close the window, QUIT AND RELAUNCH) your terminal then try running:

brew --version

If the output doesn't say "command not found" then you're good to go. Try running these commands:

brew install cowsay
cowsay hello $(whoami)

ZSH

  1. Install the latest version of the Z shell:

    brew install zsh
  2. Use zsh as your default shell:

    sudo sh -c "echo $(which zsh) >> /etc/shells"
    chsh -s $(which zsh)

Restart your terminal.

  1. Install oh-my-zsh:

    sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

git and tree

Install the git and tree packages.

brew install git tree

VSCode code shortcut

  1. In your terminal, run:

    which code

    if it shows you a path to the code program, you're good to go otherwise proceed to step 2.

  2. Launch Visual Studio Code.

  • Press ⌘ (Command) + Shift + p.

  • In the input box type install code and press Enter.

  • Try step 1 again.

Last updated