git clone https://github.com/alexcarpenter/dotfiles ~/dotfiles
cd ~/dotfiles./cli initThis will:
- Install Homebrew (if missing)
- Install packages from Brewfile
- Stow all dotfiles to your home directory
- Link the
dotcommand to your PATH
# Stow all packages
./cli stow
# Stow specific package
./cli stow zsh
./cli stow zed| Command | Description |
|---|---|
./cli init |
Full system setup |
./cli stow [package] |
Symlink dotfiles to home |
./cli link |
Install dot to PATH |
./cli unlink |
Remove dot from PATH |
./cli doctor |
Run diagnostics |
./cli update |
Update Homebrew packages |
./cli gen-ssh-key [email] |
Generate SSH key |
cd ~/dotfiles
git pull
./cli stow# create folder at root with target-relative paths
mkdir -p <new-package>/.config/app
# stow it
./cli stow <new-package>
# commit
git add <new-package>
git commit -m "Add <new-package>"The stow command saves overwritten files to ~/dotfiles_backup_YYYYMMDD_HHMMSS/