This repository was archived by the owner on Jul 1, 2026. It is now read-only.
Add dotfiles/ for capturing hand-tuned local configs - #63
Merged
Conversation
Introduce a top-level dotfiles/ directory that mirrors $HOME, plus two idempotent helpers: install.sh (repo -> $HOME, for a rebuild) and capture.sh ($HOME -> repo, to snapshot local tweaks back into git). Seeded with the alacritty config + its ember/aurora theme variants, all of which now pin working_directory so new windows open in $HOME. Copy-based (not symlink) so in-place theme swapping keeps working; existing live files are backed up to ~/.dotfiles-backup/ before any overwrite. Not yet wired into setup-*.sh — manual post-provision step for now. Prompt-Origin: Chris had just had Claude fix alacritty so new windows open in $HOME, then asked for a directory under workstation-bootstrap to start capturing local configs like that one and to push it out. He wanted such configs version-controlled so they survive a rebuild. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Origin
Chris had just had Claude fix alacritty so new windows open in
$HOMEinstead of inheriting the spawning window's directory. He then asked for a
directory under workstation-bootstrap to start capturing local configs like
that one, and to push it out. The goal: keep hand-tuned local configs under
version control so they survive a machine rebuild, rather than re-tuning them
from scratch each time.
What changed
New top-level
dotfiles/directory:home/mirrors$HOME— a file's path underhome/is its path under$HOME. The tree is the manifest; no separate mapping file to drift.install.sh— repo →$HOME. Idempotent; backs up any differingexisting file to
~/.dotfiles-backup/before overwriting. For a freshprovision or to make the repo's configs live.
capture.sh—$HOME→ repo. Refreshes already-tracked files from thelive machine so a local edit becomes a reviewable diff. Only touches files
already tracked — it won't slurp the whole home dir.
README.md— layout, the install/capture workflow, how to add a newconfig, and the copy-vs-symlink rationale.
Seeded with
.config/alacritty/(alacritty.toml+ember/aurorathemevariants), all three now pinning
working_directoryso new windows open in$HOME.Design notes
in-place theme swap (
cp alacritty-aurora.toml alacritty.toml) keepsworking; a symlink would get clobbered.
capture.shis the trade-off foredits not flowing back automatically.
setup-*.sh— manual post-provision step for now;wiring it across all four scripts (per the keep-in-sync rule) is a sensible
follow-up, called out in the README.
Verification
shellcheck --severity=warningclean on both scripts.install.shandcapture.shboth run as idempotent no-ops against theseeded files (
3 unchanged).🤖 Generated with Claude Code