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:
+4
-3
@@ -44,9 +44,10 @@ else
|
||||
SAVEHIST=10000000
|
||||
fi
|
||||
|
||||
# Identity for the vim header; install.sh also writes it into ~/.gitconfig
|
||||
export USER=bchanot
|
||||
export EMAIL=bchanot@gmail.fr
|
||||
# Identity for git commits and vim headers. Filled by install.sh (asked once,
|
||||
# reused from an existing ~/.bashrc / ~/.zshrc on re-runs), never stored here.
|
||||
export USER="@USER@"
|
||||
export EMAIL="@EMAIL@"
|
||||
|
||||
# claude-dans-dtach : creer une session (claude tournant dans dtach, detache via Ctrl-\).
|
||||
# Usage : cd ~/projets/seo && cc seo -> session nommee "seo".
|
||||
|
||||
Reference in New Issue
Block a user