dotfiles tip: if your dotfiles manager only supports 1:1 source→destination mappings, but you need one source folder mounted in two places under $HOME — don't fight the tool.

Trick: keep one source as the truth. Put a relative symlink to it inside your repo at the second location. Now you have two distinct source paths pointing to the same content. Two mappings, no key collision.

#dotfiles

The manager will symlink your symlink. The OS resolves the chain transparently. Both `~/.foo/X` and `~/.bar/X` see the same files. One edit point. Single source of truth in git (which stores symlinks natively on Unix).

Tested today on dotbro with a Claude Code skill that lives at both `~/.claude/skills/X` and `~/.agents/skills/X`. Same trick works for stow, chezmoi — anything that calls symlink(2) without resolving src first.

https://github.com/hypnoglow/dotbro

#dotfiles

GitHub - hypnoglow/dotbro: Dotbro - simple yet effective dotfiles manager.

Dotbro - simple yet effective dotfiles manager. Contribute to hypnoglow/dotbro development by creating an account on GitHub.

GitHub