hooks/init-session.ps1
|
# Sources the PwrClaude profile to ensure all modules are discoverable, # then exports PSModulePath to CLAUDE_ENV_FILE so every PowerShell tool # subprocess in this session can auto-load PwrDev/PwrClaude without an # explicit Import-Module or profile source. if ($env:PWRCLAUDE_PROFILE) { . $env:PWRCLAUDE_PROFILE } if ($env:CLAUDE_ENV_FILE -and $env:PSModulePath) { "PSModulePath=$env:PSModulePath" | Add-Content $env:CLAUDE_ENV_FILE } |