Dotfile Management with GNU Stow

#dotfiles #stow #linux #configuration
sudo pacman -S stow  # Arch Linux installation

Basic Setup Walkthrough

1. Directory Structure

~/dotfiles
├── .config/
   ├── kitty/
   ├── current-theme.conf
   └── kitty.conf
   ├── qtile/
   ├── autostart.sh
   └── config.py
   └── yazi/theme.toml
└────── wallpapers/
cd ~/dotfiles

mkdir ~/wallpapers/
stow -t ~/wallpapers/ wallpapers

cd .config

mkdir ~/.config/qtile/
stow -t ~/.config/qtile/ qtile

mkdir ~/.config/yazi/
stow -t ~/.config/yazi/ .config/yazi

3. Manage Configs

stow -D wallpapers  # Delete wallpapers symlinks
stow -R qtile # Restow (refresh) qtile

Ignore Files

# ~/dotfiles/nvim/.stow-local-ignore
README.md

Pro Tips

Version Control Integration

cd ~/dotfiles && git init
gh repo create

Read more GitHub Workflow with GitHub CLI (gh)