Grok.
Install:
brew install stow
Typical usage (dotfiles):
- Create folder:
mkdir ~/dotfiles && cd ~/dotfiles - Create package folders (one per program):
mkdir zsh nvim git - Put files inside with correct structure:
~/dotfiles/zsh/.zshrc
~/dotfiles/nvim/.config/nvim/init.vim - 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
| Step | Command / Action | Description |
|---|---|---|
| 1 | brew install stow | Install stow via Homebrew |
| 2 | mkdir ~/dotfiles && cd ~/dotfiles | Create and enter dotfiles directory |
| 3 | mkdir zsh nvim git | Create one folder per program/package |
| 4 | Put files e.g. zsh/.zshrc | Mirror the target structure inside pkg |
| 5 | stow zsh | Symlink the zsh package to ~ |
| stow . | Symlink all packages at once | |
| Undo | stow -D zsh | Remove symlinks for zsh package |
| Test | stow -n -v zsh | Dry-run + verbose (check before apply) |
| .dotfiles: My dotfiles! | ||
| mac config | ||
| software | ||
| mac |