Managed with GNU Stow via Task.
payload/<tool>/ one Stow package per tool; contents mirror $HOME
scripts/ package discovery and installation
tests/ installation tests using temporary homes
For example, payload/nvim/.config/nvim/init.lua links to
~/.config/nvim/init.lua. Add a package under payload/ and it is discovered
automatically. Retired configurations are deleted; Git history is the archive.
Install Git, GNU Stow and Task (the go-task runner), then clone this repo:
git clone https://github.com/archae0pteryx/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
task stow # list available packages; installs nothing
task stow:dry -- nvim # preview one package with Stow
task stow -- nvim # install or refresh that packageChoose one package per invocation. There are no platform flags, platform
overlays, or implicit install-all operation. Configurations may contain
platform-specific settings; install only the packages appropriate for your
machine. Applications and fonts must be installed separately. Neovim and
LazyVim are independent profiles; the lazyvim launcher selects the latter.
The dry run reports planned links and conflicts, not content differences. It does not change files. Both preview and installation reject conflicting regular files or unrelated symlinks, even when their contents match. Back up and move only the paths Stow reports before retrying.
Links are created without directory folding, so files applications create beside
managed configurations stay outside this repository. .DS_Store files are ignored.
The equivalent plain Stow command is:
stow --no-folding --ignore='(^|/)\.DS_Store$' -t "$HOME" -d payload -R nvimTo import an existing configuration, copy it into its package first, or use
stow --adopt deliberately: adoption moves the live file into the repository
and can replace the tracked version. Review the resulting diff.
Keep machine-specific Git trust exceptions out of the shared configuration.
For a temporary exception, use git -c safe.directory=/trusted/path <command>
only after verifying the checkout's ownership. Do not use a wildcard
safe.directory to bypass ownership checks.
When moving from an older root-level or macos/ layout, unstow packages with
that checkout before updating. If already updated, inspect dangling links and
remove only those pointing at the retired layout, then preview and stow each
package. There is no automatic reset command that deletes existing links.
task test
shellcheck scripts/*.sh tests/*.shTests require Task and Stow. They use temporary checkouts and homes to cover package discovery, previews, repeated installation, conflict preservation, invalid arguments, and paths containing spaces. They never change live configs.