Grok.

Install:
brew install stow

Typical usage (dotfiles):

  1. Create folder:
    mkdir ~/dotfiles && cd ~/dotfiles
  2. Create package folders (one per program):
    mkdir zsh nvim git
  3. Put files inside with correct structure:
    ~/dotfiles/zsh/.zshrc
    ~/dotfiles/nvim/.config/nvim/init.vim
  4. Apply (from inside ~/dotfiles):
    stow -v zsh
    or
    stow -v . (all packages at once)

Undo:
stow -D zsh

Dry run first (recommended):
stow -n -v zsh

StepCommand / ActionDescription
1brew install stowInstall stow via Homebrew
2mkdir ~/dotfiles && cd ~/dotfilesCreate and enter dotfiles directory
3mkdir zsh nvim gitCreate one folder per program/package
4Put files e.g. zsh/.zshrcMirror the target structure inside pkg
5stow zshSymlink the zsh package to ~
stow .Symlink all packages at once
Undostow -D zshRemove symlinks for zsh package
Teststow -n -v zshDry-run + verbose (check before apply)
.dotfiles: My dotfiles!
mac config
software
mac