mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-06 01:14:48 -06:00
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:
@@ -33,6 +33,12 @@ This is a **chezmoi source directory** for managing dotfiles across multiple mac
|
||||
- Bootstrap encryption key from Doppler before apply
|
||||
- Handle `chezmoi init` and `chezmoi update --init`
|
||||
|
||||
**GPG Configuration (WSL-only):**
|
||||
- `~/.gnupg` → Symlink to Windows GPG directory (`C:\Users\Xevion\AppData\Roaming\gnupg`)
|
||||
- `/usr/local/bin/gpg` → Symlink to Windows `gpg.exe` (via `run_onchange_before_setup-wsl-gpg.sh.tmpl`)
|
||||
- Enables native Windows Qt5 pinentry GUI for passphrase prompts
|
||||
- Automatic setup on WSL; ignored on regular Linux
|
||||
|
||||
## Critical Restrictions
|
||||
|
||||
### NEVER Do These Actions
|
||||
|
||||
Reference in New Issue
Block a user