feat(identity): ask name/email at install, no hardcoded USER/EMAIL in the repo

- rc templates carry @USER@/@EMAIL@ placeholders; install.sh renders them
- resolve_identity: an export already in ~/.bashrc or ~/.zshrc is reused silently,
  else IDENTITY_USER/IDENTITY_EMAIL, else a prompt, else login name + empty email
- render_gitconfig generalised to render_identity_template (gitconfig unchanged)
- vimrc reads g:_author/g:_email from $USER/$EMAIL instead of hardcoded values
- README + CLAUDE.md
This commit is contained in:
bchanot
2026-10-06 15:34:11 +02:00
parent f6a039fc80
commit 8f6969001f
8 changed files with 76 additions and 32 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
" Uset compatibility with Vii
set nocompatible
" add user info variable
let g:_author = "Bastien Chanot"
let g:_email = "chanot.bastien@gmail.com"
" user info from the shell identity (USER / EMAIL exported by the deployed rc)
let g:_author = $USER
let g:_email = exists('$EMAIL') ? $EMAIL : ''
" Enable pathogen for plugins
execute pathogen#infect()