Dotfile Management with GNU Stow

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

Basic Setup Walkthrough

1. Directory Structure

Terminal window
~/dotfiles
├── .config/
├── kitty/
├── current-theme.conf
└── kitty.conf
├── qtile/
├── autostart.sh
└── config.py
└── yazi/theme.toml
└────── wallpapers/
Terminal window
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

Terminal window
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

Terminal window
cd ~/dotfiles && git init
gh repo create

Read more GitHub Workflow with GitHub CLI (gh)