using gnu Stow
Each top-level directory represents a "package" (e.g., bash, nvim_omarchy). Stow symlinks the contents of these directories into the home directory (~).
# Install stow
sudo pacman -S stow # Arch
sudo apt install stow # Ubuntu/Debian
# Clone and deploy
git clone [https://github.com/USER/dotfiles.git](https://github.com/USER/dotfiles.git) ~/dotfiles
cd ~/dotfiles
stow bash
stow nvim_omarchy- Create the mirror path:
mkdir -p ~/dotfiles/name/.config - Move the original:
mv ~/.config/name ~/dotfiles/name/.config/ - Link it:
cd ~/dotfiles && stow name
Changes made to files in ~ are reflected in ~/dotfiles because they are symlinks.
To save changes:
cd ~/dotfiles
git add .
git commit -m "update config"
git pushstow -D package_name