7 Best Dotfile Managers for Portable Developer Setups
Key takeaways
- chezmoi is the most complete standalone option, with templates, secrets integration and encryption in one binary.
- GNU Stow and rcm manage symlinks from a dotfiles folder and stay out of your way.
- yadm and the bare Git repo method treat your home directory as a Git working tree.
- Dotbot bootstraps a machine from a YAML file kept inside your dotfiles repository.
- Home Manager declares your whole user environment in Nix, packages included, with rollbacks.
What a dotfile manager is for
Dotfiles are the hidden configuration files in your home directory: .zshrc, .gitconfig, editor settings, terminal configs, SSH client options. Over time they encode a lot of personal workflow, and losing them on a new laptop or a fresh server costs hours. Keeping them in a Git repository solves backup, but leaves two problems: getting the files into the right places on each machine, and handling the differences between machines, such as a work email in .gitconfig or a macOS-only alias.
Dotfile managers solve those problems with different mechanisms. Some create symlinks from a repository into your home directory. Some copy rendered files from templates. Some make your home directory itself a Git working tree. One goes further and builds your whole user environment from a declarative description.
Quick comparison
| Tool | Best for | Starting price | Free plan |
|---|---|---|---|
| chezmoi | Many machines with per-host differences and secrets | Free (open source) | Yes (open source) |
| GNU Stow | Simple symlink farms from one folder | Free (open source) | Yes (open source) |
| yadm | Git users who want a Git-like dotfiles tool | Free (open source) | Yes (open source) |
| rcm | Symlink management with tags and host folders | Free (open source) | Yes (open source) |
| Dotbot | Repeatable bootstrap from a YAML file | Free (open source) | Yes (open source) |
| Home Manager | Nix users who want declarative environments | Free (open source) | Yes (open source) |
| Bare Git repo | Zero-install dotfiles with plain Git | Free (open source) | Yes (open source) |
The best dotfile managers
1. chezmoi
- Official site: https://www.chezmoi.io/
- Best for: Many machines with per-host differences and secrets
- Starting price: Free (open source)
- Free plan: Yes (open source)
- Pros: Templates handle per-machine differences; Integrates with password managers and supports encryption
- Cons: Source and target files are separate, which adds an edit step; More concepts to learn than symlink tools
chezmoi is a single Go binary that keeps a source directory of your dotfiles, usually a Git repository, and applies it to your home directory. Files can be templates, so one .gitconfig can render a work email on a work laptop and a personal one at home, based on hostname, OS or custom data.
It can pull secrets from password managers at apply time and encrypt sensitive files with age or gpg, so private values never sit in plain text in the repository. Scripts can run once or on change to install packages. The trade-off is that you edit files in the source directory (or through chezmoi edit) rather than in place, which takes some adjustment.
2. GNU Stow
- Official site: https://www.gnu.org/software/stow/manual/
- Best for: Simple symlink farms from one folder
- Starting price: Free (open source)
- Free plan: Yes (open source)
- Pros: Very simple model that is easy to reason about; Packaged on most Linux distributions and Homebrew
- Cons: No templating or secrets handling; Per-machine differences need separate packages
GNU Stow is a symlink farm manager originally built for installing software into separate directories. Dotfile users organize a repository into packages, such as zsh, git and nvim, each mirroring the home directory layout, and stow zsh creates the matching symlinks.
Because the links point back into the repository, editing a file in place edits the tracked copy, with no sync step. It is written in Perl and has been stable for years. It does nothing about differences between machines or secrets, so you handle those by choosing which packages to stow on each host.
3. yadm
- Official site: https://yadm.io/
- Best for: Git users who want a Git-like dotfiles tool
- Starting price: Free (open source)
- Free plan: Yes (open source)
- Pros: Uses familiar Git commands directly; Alternate files, templates, encryption and bootstrap built in
- Cons: Home directory acts as the work tree, which some find cluttered; Fewer template features than chezmoi
yadm, short for Yet Another Dotfiles Manager, wraps Git so that your home directory becomes the working tree of a dotfiles repository stored elsewhere. You run yadm add, yadm commit and yadm push exactly as you would with Git, and files stay in their real locations with no symlinks.
On top of that it adds alternate files chosen by OS, class or hostname, simple templates, encryption for a listed set of private files, and a bootstrap script that runs after cloning. It is a good step up from the bare repo method for people who want extras without learning a new model.
4. rcm
- Official site: https://github.com/thoughtbot/rcm
- Best for: Symlink management with tags and host folders
- Starting price: Free (open source)
- Free plan: Yes (open source)
- Pros: Host-specific and tag-based file selection; Small set of focused commands
- Cons: No built-in secrets handling; Unix-like systems only
rcm is a set of shell commands from thoughtbot for managing dotfiles with symlinks. rcup links files from a dotfiles directory into your home, mkrc moves an existing file into the repository, lsrc lists what would be linked, and rcdn removes links.
Its distinctive features are tags and host directories: files under a host folder apply only on that machine, and tag folders let you opt in to sets of files such as a work tag. It can combine several dotfiles directories, for example a shared team repo plus your own. It is Unix-focused and does not handle secrets.
5. Dotbot
- Official site: https://github.com/anishathalye/dotbot
- Best for: Repeatable bootstrap from a YAML file
- Starting price: Free (open source)
- Free plan: Yes (open source)
- Pros: Lives inside your repo as a submodule, so no global install; Declarative links, shell commands and cleanup
- Cons: Needs Python; No templating for per-host content
Dotbot is a small Python tool that you add to your dotfiles repository, typically as a Git submodule, alongside an install.conf.yaml file. Running the included install script creates directories, links files, cleans dead symlinks and runs shell commands in the order described.
That makes a new machine setup a single clone and one command. Plugins extend it with package installation and other tasks. Per-machine differences are usually handled with separate config files, since Dotbot itself does not render templates.
6. Home Manager
- Official site: https://nix-community.github.io/home-manager/
- Best for: Nix users who want declarative environments
- Starting price: Free (open source)
- Free plan: Yes (open source)
- Pros: Manages packages and config together; Generations allow rollback
- Cons: Requires learning Nix; Heavier setup than any other option here
Home Manager is a Nix community project that describes a user environment in the Nix language: which packages are installed, and how programs like Git, zsh, tmux or Neovim are configured. Running home-manager switch builds that environment and links the generated files into place.
Each switch creates a new generation, so a broken change can be rolled back. It runs on NixOS, other Linux distributions and macOS with Nix installed. The catch is Nix itself: the language and ecosystem take real time to learn, so it pays off mainly for people already invested in Nix.
7. Bare Git repo
- Official site: https://git-scm.com/docs/git-init
- Best for: Zero-install dotfiles with plain Git
- Starting price: Free (open source)
- Free plan: Yes (open source)
- Pros: Nothing to install beyond Git; Files stay in place with no symlinks
- Cons: Every command needs an alias with git-dir and work-tree flags; No templating, secrets or bootstrap
The bare repo method uses git init --bare to create a repository in a folder such as ~/.dotfiles, then an alias that runs Git with --git-dir pointing at it and --work-tree set to your home directory. You add and commit dotfiles in place, and setting status.showUntrackedFiles to no keeps the rest of your home directory out of the status output.
It is the most minimal approach and works anywhere Git does. Everything beyond version control is manual: machine differences, secrets and setup scripts are up to you. yadm is essentially this method with those gaps filled.
How they differ
Symlink managers (GNU Stow, rcm, Dotbot) keep files in a repository and link them into place, so edits land in the repo immediately. Git-as-work-tree tools (yadm, bare repo) skip links entirely. chezmoi renders and copies files from a source state, which enables templates and secrets. Home Manager generates configuration from a Nix description and manages packages too.
How to choose
If you have one or two similar machines, start with GNU Stow or the bare repo method. If you want Git-native workflow with extras, choose yadm. If you need tags or a shared team layer, choose rcm. For one-command bootstrap of new machines, use Dotbot. For many machines with real differences and secrets, chezmoi is the strongest standalone choice. If you already use Nix, Home Manager gives you packages and config in one place.
How we chose
We reviewed vendor docs, official project pages and public documentation for each tool, including the Git documentation for the bare repo method. We compared how files are placed, how machine differences and secrets are handled, and what each tool requires. We did not run our own setup trials.
FAQ
Should I store secrets in my dotfiles repo?
Not in plain text. chezmoi and yadm support encryption, and chezmoi can read values from a password manager at apply time.
Symlinks or copies, which is better?
Symlinks make in-place edits land in the repo instantly. Copies, as chezmoi uses, allow templates but add an apply step.
Can I use these tools on Windows?
chezmoi supports Windows natively. Most symlink tools target Unix-like systems, so WSL is the usual route.
Do I need Nix to use Home Manager?
Yes. Home Manager is built on the Nix package manager, which must be installed first.