feat: add WSL GPG integration with Windows pinentry support

Configure chezmoi to automatically set up WSL to use Windows GPG for native
Qt5 GUI passphrase prompts during git commit signing:

- Add symlink_dot_gnupg.tmpl to link ~/.gnupg to Windows GPG directory
- Add run_onchange_before_setup-wsl-gpg.sh.tmpl for system GPG symlink
- Update .chezmoiignore to handle .gnupg appropriately per platform
- Document GPG configuration in CLAUDE.md and ONBOARDING.md

This enables seamless git commit signing in WSL environments (including
Claude Code) without passphrase prompt issues, while maintaining platform
independence for regular Linux installations.
This commit is contained in:
2025-10-27 15:17:17 -05:00
parent 4d914f1e2f
commit b71c320ea5
5 changed files with 58 additions and 0 deletions

View File

@@ -13,3 +13,7 @@ When **bolded**, this application won't be installed automatically. It implies t
- Preferred applications
- [ ] kitty
- [ ] micro
- WSL-specific requirements
- [ ] **GPG4win** (Windows) - Required for Git commit signing with GUI pinentry
- Install via: `scoop install gpg4win`
- WSL will automatically link to Windows GPG for native passphrase dialogs