place where I store my poorly organized configurations
Each top-level directory is a stow package. Its contents mirror your $HOME, so stow knows exactly where to symlink everything.
~/.dotfiles/
├── bash/
│ └── .bashrc
├── zsh/
│ └── .zshrc
├── git/
│ └── .gitconfig
├── nvim/
│ └── .config/nvim/
├── tmux/
│ └── .tmux.conf
└── ...
Install stow:
# debian
sudo apt install stow
# nix
nix shell -p stow
# macOS (Homebrew)
brew install stow1. Clone the repo
git clone https://github.com/yourusername/dotfiles.git ~/.dotfiles
cd ~/.dotfiles2. Back up any existing configs you care about
# example — do this for any file that already exists
mv ~/.bashrc ~/.bashrc.bak3. Stow a package
stow bash # links bash/.bashrc → ~/.bashrc
stow nvim # links nvim/.config/nvim/ → ~/.config/nvim/4. Stow everything at once
stow */Tip: use
stow -n(dry run) to preview what would be linked before actually doing it.
9. Remove a package
stow -D bash # removes symlinks created by the bash package0. Re-stow after adding/removing files
stow -R bash # equivalent to -D then -S















