Skip to content

Latest commit

 

History

History
133 lines (85 loc) · 2.78 KB

README.md

File metadata and controls

133 lines (85 loc) · 2.78 KB

Dev setup

This is the repo I use to set up a new machine and get it ready for development.

Prerequisites

Run this to make sure you're up to date and and you have XCode command line tools installed:

./osxprep.sh

Dotfiles

[TBD]

Mac OSX defaults

Tweak the operating system with better defaults:

./osx.sh

Please note that you may need to log out and log back in for some changes to take effect.

Homebrew

Install Homebrew:

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

Install cli tools

./brew.sh

zsh

Install zsh:

brew install zsh

and set it as your default shell:

On M1-based machines:

chsh -s /opt/homebrew/bin/zsh

On Intel-based machines:

chsh -s /usr/local/bin/zsh

oh-my-zsh

Install oh-my-zsh:

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

Install zsh-syntax-highlighting

Install a custom plugin for zsh to add syntax highlighting when typing in the shell following these instructions.

Git

Install Git:

brew install git

Set up Git SSH authentication with Github

  1. Generate a new key (reference):
    ssh-keygen -t ed25519 -C "your_email@example.com"
  2. Copy the SSH public key to your clipboard (reference)
    pbcopy < ~/.ssh/id_ed25519.pub
  3. Create a new SSH key on Github and paste your public key

Install apps

Install apps using:

./apps.sh

Set up dock icons

./dock.sh

Restore apps settings using Mackup

[TBD]

Web development

Install nvm and node

Use NVM (Node Version Manager) to be able to manage the installation of different Node versions on the same machine.

  • Install NVM using curl

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

    This will also add a snippet in .zshrc file to load NVM.

  • Install Node. Here we install the long term support version

    nvm install --lts

References