// TODO: Add Makefile or justfile to init new machines or easier stow targets
Ensure the system has git
and stow
installed.
Maintain copies of dot files or config files in directories per architecture or some machine identifier. These files will get symlinked to a specified target directory upon running the stow
command. Maintain nested directory structure as desired outcome in this repository. Stow works on packages (directories).
(REPO): stow [args] ARCH -t TARGET
REPO/ARCH/.somefile -> TARGET/.somefile
REPO/ARCH/.config/file -> TARGET/.config/file
from the base of this repository.
Stow all darwin-arm64
files:
stow -v --no-folding --dotfiles darwin-arm64 -t $HOME
Stow testor
package from darwin-arm64
:
stow -v testor -d darwin-arm64 -t $HOME
Passing the --dotfiles
argument to stow
resulting in stowing dot-gitignore
as .gitignore
.
Add --no-folding
to link a file inside a .directory here without linking the entire directory. Ex: Stow only .gpg-agent.conf from .gnupg and don't link entire .gnupg to here.