Skip to content

anirudhsalgundi/dotfiles

Repository files navigation

Steps to bootstrap a new Mac

  1. Install Apple's Command Line Tools, which are prerequisites for Git and Homebrew.
xcode-select --install
  1. Clone repo into new hidden directory.

use HTTPS and switch remotes later. (use your repo link)

clone this in your home. So cd ~/dotfiles will work

git clone https://github.com/anirudhsalgundi/dotfiles.git
  1. Create symlinks in the Home directory to the real files in the repo.

open a file called stow-all.sh.

vim stow-all.sh

Copy all the contents

#!/bin/bash
# stow-all.sh
cd ~/dotfiles || exit 1
for dir in */ ; do
    [ -d "$dir" ] && stow "$dir"
done

make the file executable

chmod +x stow-all.sh

#run the script

./stow-all.sh
  1. Install Homebrew, followed by the software listed in the Brewfile.
# These could also be in an install script.

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

# Then pass in the Brewfile location...
brew bundle --file ~/dotfiles/brew/Brewfile

# ...or move to the directory first.
cd ~/dotfiles/brew && brew bundle

TODO List

  • Learn how to use defaults to record and restore System Preferences and other macOS configurations.
  • Organize these growing steps into multiple script files.
  • Automate symlinking and run script files with a bootstrapping tool like Dotbot.
  • Revisit the list in .zshrc to customize the shell.
  • Make a checklist of steps to decommission your computer before wiping your hard drive.
  • Create a bootable USB installer for macOS.
  • Integrate other cloud services into your Dotfiles process (Dropbox, Google Drive, etc.).
  • Find inspiration and examples in other Dotfiles repositories at dotfiles.github.io.

I have taken inspiration from https://github.com/eieioxyz/Beyond-Dotfiles-in-100-Seconds and edited README.md to work for this repo

Thank you

About

All my configs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published