- Install Apple's Command Line Tools, which are prerequisites for Git and Homebrew
xcode-select --install
- Clone repo into new hidden directory
# Use SSH (if set up...)
git clone git@github.com:maxonchickdev/dotfiles.git
# Use HTTPS
git clone https://github.com/maxonchickdev/dotfiles.git
- Create symlinks in the Home directory to the real file in the repo
ln -s ~/dotfiles/.zshrc ~/.zshrc
ln -s ~/dotfiles/.gitconfig ~/.gitconfig
ln -s ~/dotfiles/.nvmrc ~/.nvmrc
- Install nvm
# Using curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# Or wget
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
- Install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
source ~/.zshrc
- Install Homebrew, followed by the software listed in the Brewfile
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew bundle --file ~/Brewfile
- Setup mac os settings
chmod +x ./os.sh
sudo ./os.sh