case 162025
dome
A minimalist dotfiles manager in Bash: your $HOME, linked to a git repo, per distro.
- filed
- my own
- role
- author
- period
- 2025
- status
- closed: shipped
- links
- source
the brief
sheet 2 of 6I keep my Linux setup in git, but a .bashrc on Arch isn't the one on Debian, and copying files back and forth drifts.
One Bash script: link the repo into $HOME, map files per distro in YAML, run hooks around each sync, back up whatever it replaces.
the identity
sheet 3 of 6
Black ink on white, letters with a sketched edge, and the O built as a geodesic dome: the name, drawn.
the colours
- ink#000000
- paper#FFFFFF
its signature
- the O is a geodesic dome
- every letter has a sketched edge
the build
sheet 4 of 6v1 copied, v2 links
The first version built a merged copy of the repo with rsync, synced it both ways and opened meld on conflicts. v2 dropped rsync for symlinks: the file in $HOME is the file in the repo, so there's nothing left to reconcile.
one repo, every distro
distro_files maps a name to its variants: .bashrc becomes .bashrc.arch on Arch and .bashrc.debian on Debian, picked at sync time from /etc/os-release.
the VERSION bug
Reading /etc/os-release on Ubuntu quietly overwrote the script's own VERSION, because that file sets one too. Renaming it DOME_VERSION fixed it. Sourcing a system file into your own namespace is a lesson you learn once.
backups first
Before it replaces a file, dome copies it into a timestamped backup per distro, and dome revert puts it all back. It's tested with Bats.
made with bash, git, yaml
the verdict
sheet 5 of 6- Feb 2025Out in the open, for Arch, Ubuntu, Fedora and the rest.
- 2025v2.0.0, "star-dust": it runs my own Hyprland, Neovim, kitty and waybar setup.
the exhibits
sheet 6 of 6exhibit Adome v1 at work