docs(setup): version aliases.zsh + gitconfig.txt under docs/setup/dotfiles #224
Reference in New Issue
Block a user
Delete Branch "docs/setup-versioned-dotfile-templates"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Follow-up on #220.
80-dotfiles.shwas readingnotes/aliases.zshandnotes/gitconfig.txt— butnotes/is the project lead's personal scratchpad and is gitignored, so a fresh clone on the dev VM has nothing to read:Move both templates to a versioned location and update the script + docs to match.
What lands
docs/setup/dotfiles/aliases.zshnotes/aliases.zsh. Header explains scope (project-wide, all devs pick it up on next zsh restart) and where per-dev customizations go (private dotfiles repo).docs/setup/dotfiles/gitconfig.txt~/.gitconfigtemplate — init / core / aliases / colour.[user]block carries placeholder identity (name = your name/email = your.email@example.com) that the script overwrites at install viagit config --global user.{name,email}.docs/setup/scripts/80-dotfiles.sh$REPO_ROOT/notes/…to$REPO_ROOT/docs/setup/dotfiles/…. Header doc-comment updated.docs/setup/01-dev-debian-vm-setup.mddocs/setup/README.mddotfiles/section in the folder index. Step-7 row in the scripts table also reflects the new paths.Why this lives in
docs/setup/dotfiles/and notinfra/or a top-leveldotfiles/80-dotfiles.sh— co-locating it underdocs/setup/keeps the setup family self-contained (one folder to read, one folder to clone).dotfiles/reads correctly for a future per-dev dotfiles repo migration (§8.4) — the templates here become the seed of that repo, and the install script will then check~/.dotfiles/first and fall back todocs/setup/dotfiles/second.Unblock path (if you're stuck mid-bootstrap)
Either pull this PR, or manually create the two files at the new location on the VM:
Test plan
./docs/setup/scripts/80-dotfiles.shsucceeds: aliases.zsh symlink lands at~/.oh-my-zsh/custom/aliases.zshpointing atdocs/setup/dotfiles/aliases.zsh,~/.gitconfigwritten with the prompted identity.↪ skip aliases.zsh symlink already correct(idempotency).git config --global user.namereturns the prompted value (i.e. placeholderyour nameis overwritten).pnpm exec prettier --checkclean on the touched files.bash -n docs/setup/scripts/80-dotfiles.shclean.Notes
notes/aliases.zshandnotes/gitconfig.txton existing dev workstations are unaffected — those files live outside the repo (gitignored), nothing here touches them. They can be deleted or kept as personal scratch at the dev's discretion.apf/dotfiles) and teaches80-dotfiles.shto prefer~/.dotfiles/overdocs/setup/dotfiles/when both exist.