Introduction
Manage, reproduce, and control everything in your $HOME — declaratively.
Tildr is a fast and minimalist CLI that lets you define the desired state of your HOME directory and automatically enforce it.
Instead of manually copying dotfiles, syncing folders, or rebuilding your environment from memory, you describe how your $HOME should look — and Tildr makes your system converge to that state.
More powerful than stow. Simpler than chezmoi.
Why Tildr?
Traditional dotfile tools focus on files. Tildr focuses on state.
It treats your HOME directory as a reproducible environment — not just a collection of configs.
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
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
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.