Track dotfiles as hardlinks to files tracked in a git repo
sudo apt install --no-install-{recommends,suggests} make git
echo "$USER ALL=(ALL) NOPASSWD: ALL" | sudo tee "/etc/sudoers.d/$USER"
mkdir -p ~/.config/dotfiles/
cd !$
git clone git://github.com/shalomb/dotfiles.git .
make install./dotfile_stash install files within the repository as hard links to
counterpart locations in the home directory (and as such the repo needs to
exist on the same file system) and so changes to any of the managed
dotfiles appear as changes in the repository.
cd ~/.config/dotfiles/
git status --New files can be imported into the repository.
cd ~/.config/dotfiles/
./dotfile_stash import .bin/somefile
git add !$
git commit -m 'Added .bin/somefile'The repository now supports XDG-compliant deployment for bash configuration files:
# Deploy bash configurations with XDG compliance
./scripts/deploy-bash-xdg.sh deploy
# Verify deployment status
./scripts/deploy-bash-xdg.sh statusThis creates symlinks in the home directory pointing to XDG-compliant paths in the repository, solving the symlink chain fragility issues while maintaining full XDG Base Directory specification compliance.
- encrypt certain files ??
rewrite✅ COMPLETED: XDG-compliant deployment implemented./dotfile_stash- decompose the monolith - into submodules?