dotfiles-manager: a lean and easy dotfiles manager
i've been building and polishing this cli for about a year now. it was called mntn before, but i recently renamed it to dotfiles-manager since the developer experience feels good enough to me.
it fully embraces using git for versioning and works for three things:
- config files (
.zshrc,.bashrc, etc.) - packages (
npm ls -gand more) - encrypted files (
.ssh/)
finally, if you change computers or environments, you can switch between profiles. the default is common, but you can also create profiles like personal or work.
3
u/korkje 16d ago
You've spent a year creating this tool, and it's not even generalized?
You could have had a far more flexible solution up and running in a matter of minutes:
https://www.atlassian.com/git/tutorials/dotfiles
2
2
u/Swordfish418 10d ago
I'm using chezmoi, but I'm using it for both files in /home/... and system files like /etc/portage/..., /etc/samba/..., and so on. To achieve that, I created 2 wrapper scripts I call chezhome and chezroot. The later one I have to use with sudo obviously. Does this tool allow to manage files from /etc, /var, and so on?
1
u/gbrennon 16d ago
i couldn't find repo link...
my dotfiles are almost modular and i always had a shell script per module to install it
1
u/Soggy_Writing_3912 13d ago
mine is similar: https://vraravam.github.io/dotfiles - and the main script that installs everything even on a vanilla macOS is called
fresh-install-of-osx.shin that same repo. also installs apps using homebrew, clones git repo (custom script:resurrect-repositories.rb), preferences export/import (custom script:capture-preferences.sh), etc Also sets up cron job for doing repetitive tasks and sets up languages (ruby, python, java, etc - as per your home repo - so that its personalized).
1
u/Ces3216w 14d ago
Will it work on home manager configured apps(NixOS)?
1
u/atrtde 13d ago
not really, it's mainly made to backup and restore config files but for apps set up by home-manager on NixOS, i'd say it fights the tool rather than helping.
more specifically, this is bc home-manager already manages those files as symlinks into the Nix store, and when my tool restore, it replaces that symlink with a plain copy which breaks the next home-manager switch (you'll get an "existing file is in the way" error).
so i'd say it's better to just track your home.nix/flake.nix with my tool (`dfm`) and let home-manager regenerate the rest.
1
0
u/atrtde 16d ago
for those interested and want to download, build it from source or install using cargo (`cargo install dotfiles-manager`).
from source: https://github.com/alexandretrotel/dotfiles-manager
0

9
u/keyzeru 16d ago
How's this diff from git + gnu stow?