Introduction
Manage, reproduce, and control your entire $HOME—declaratively.
More powerful than stow. Simpler than chezmoi.
Tildr is a fast, minimalist CLI for defining and reproducing your personal Unix environment.
Rather than manually copying dotfiles, syncing directories, or rebuilding your setup from memory, you describe the desired state of your $HOME in a declarative configuration. Tildr then ensures your system converges to that state safely and consistently.
Designed around simplicity, predictability, and idempotency, Tildr helps you keep your environment reproducible across new machines, reinstalls, and everyday changes.
Why Tildr?
Traditional dotfile managers reproduce files. Tildr manages your HOME state.
Most dotfile managers treat your configuration as a collection of individual files. Tildr takes a broader view: your $HOME is an environment whose structure, contents, and behavior should be reproducible as a whole.
With Tildr, you can:
- Define the structure and contents of your
$HOME - Keep files and directories consistently in sync
- Recreate your environment reliably at any time
- Eliminate configuration drift
- Manage more than dotfiles—manage your entire home state
Why the name?
The name Tildr is inspired by the tilde (~), one of the most recognizable symbols in Unix and Linux.
For decades, ~ has represented the user’s home directory—a familiar starting point where configuration, files, and personal workflows naturally live. It’s a small symbol with a meaning that every Unix user immediately understands.
That idea perfectly reflects the project’s philosophy: your home directory is more than a place to store dotfiles—it’s your personal environment.
Rather than using Tilde directly, the name was distilled into Tildr: shorter, more distinctive, and better suited as a modern software project while preserving its Unix roots.
For experienced Unix users, it’s a subtle nod to a symbol they’ve used countless times. For everyone else, it’s simply a memorable name that grows with the project.
Philosophy
Your $HOME should be:
- Declarative — defined by intent, not manual steps
- Reproducible — rebuildable at any time
- Consistent — always matching your desired state
- Simple — without unnecessary complexity
- Portable — move between machines effortlessly
Tildr turns your HOME directory into a predictable and controlled environment.
Overview
Tildr is a Rust CLI for managing files in your home directory on Linux and macOS through a repository-backed model.
Instead of keeping the original file in place, Tildr moves the managed file into a repository and creates a symlink back into $HOME. From that point on:
- The repository becomes the source of truth
$HOMEcontains symlinks that represent the applied stateapplyre-creates or repairs those symlinksrestoremoves files back from the repository into$HOMEunlinkremoves symlinks without deleting repository contentdelremoves managed content from the repository and unlinks it from$HOME
Tildr manages files, not directories as first-class objects. Directory operations are recursive and act on all managed files under the selected path.
Interactive Behavior
When a target is omitted, the following commands open an interactive file picker over the list of managed files:
tildr add(picks from$HOMEinstead of the repository)tildr cattildr edittildr unlinktildr restoretildr deltildr mv
The picker operates on the managed files discovered by scanning the repository.
When the number of managed files exceeds core.search_threshold (default: 15), the picker shows a search step first. Type a fragment to filter the list by fuzzy match, or press enter with an empty input to skip filtering and see the full list.
Typical Workflow
Initial setup and daily use:
tildr init
tildr add .bashrc
tildr add .config/nvim
tildr git status
tildr status
tildr apply
tildr sync
Recovery and maintenance:
tildr status
tildr doctor
tildr apply
tildr unlink .config/nvim
tildr restore .bashrc
Secret file management:
# Symmetric mode (default) — uses a passphrase
tildr secret add ~/.ssh/id_rsa
tildr secret list
tildr secret encrypt
tildr sync
# Asymmetric mode — set in config.toml first
# [crypto]
# mode = "asymmetric"
# gpg_key = "[email protected]"
tildr secret add ~/.ssh/id_rsa
tildr sync
Operational Notes
- Tildr is designed for home-directory management on Linux and macOS
- The repository must stay inside
$HOME - Relative paths for managed targets are interpreted from
$HOME - Directory operations are always recursive over files under that path
applydoes not overwrite conflicting regular files unless--forceis providedunlinkremoves only symlinks, never repository contentrestorephysically moves the real file back out of the repositorydelremoves repository content; use--purgefor permanent deletion, otherwise files go to trashgit.auto_commitaffectsadd,restore,del,mv, andsecret— notapply,unlink,git, orsyncgit.enable = falsedisables Tildr-managed Git operations even if Git is installedtildr secretrequiresgpgto be installed and available inPATH- sensitive files registered with
tildr secret addare never stored in plain text in the repository crypto.modecontrols whether symmetric (passphrase) or asymmetric (key pair) GPG encryption is used- in asymmetric mode,
crypto.gpg_keyis saved automatically after interactive key selection on first use core.color = falsedisables all colored output;NO_COLORenvironment variable is also respected
Summary
Tildr turns $HOME into a repository-backed declarative environment. Its model is simple:
- store real files in a repository
- expose them into
$HOMEthrough symlinks - inspect drift with
status - converge state with
apply - recover ownership with
restore
For reliable operation, keep the repository in your home directory, use .tildrignore to exclude unmanaged artifacts, and treat tildr repo path as the canonical way to locate the repository in scripts and shell aliases.