Skip to content

fix(windows): re-deploy PowerShell profile loader via run_onchange - #1052

Merged
DevSecNinja merged 2 commits into
mainfrom
devsecninja-powershell-loader-onchange
Nov 14, 2026
Merged

DevSecNinja merged 2 commits into
mainfrom
devsecninja-powershell-loader-onchange

Conversation

@DevSecNinja

Copy link
Copy Markdown
Owner

On machines with OneDrive-redirected Documents, $PROFILE points at OneDrive\Documents\PowerShell\profile.ps1, but no loader was deployed there, so profile.ps1 never loaded DotfilesHelpers (cmdlets like Get-GitHubRepoConfig were missing).

The loader script was run_once_, so it never re-ran once chezmoi had recorded it. Renamed it to run_onchange_05-setup-powershell-loader.ps1 so it runs early and re-applies on change. The script content is unchanged (signature intact); it already resolves the Documents folder from $PROFILE.

Verified by running the script manually: it deployed both loaders to the OneDrive Documents path.

DevSecNinja and others added 2 commits November 15, 2026 00:13
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
run_once never re-ran on machines where it had already been recorded, leaving OneDrive-redirected Documents without a profile and the DotfilesHelpers module unloaded. run_onchange_05 runs early and re-applies on content change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 35 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d83d6281-feec-48af-b372-086732661c9f
Commits

Reviewing files that changed from the base of the PR and between eed3c41 and 13f7286.

Files selected for processing: 4

  • README.md
  • STRUCTURE.md
  • docs/installation.md
  • home/.chezmoiscripts/windows/run_onchange_05-setup-powershell-loader.ps1
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@DevSecNinja
DevSecNinja merged commit 74aab8d into main Nov 14, 2026
18 checks passed
@DevSecNinja
DevSecNinja deleted the devsecninja-powershell-loader-onchange branch November 14, 2026 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant