From 68f133f10bf01349171b09d5c03ebb1ffa649727 Mon Sep 17 00:00:00 2001 From: Jean-Paul van Ravensberg <14926452+DevSecNinja@users.noreply.github.com> Date: Sun, 15 Nov 2026 00:13:16 +0100 Subject: [PATCH 1/2] docs: install chezmoi via winget on Windows Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- README.md | 5 +++-- docs/installation.md | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 785091b8..6f7eec20 100644 --- a/README.md +++ b/README.md @@ -146,8 +146,9 @@ cd dotfiles **Option 1: Direct from GitHub (PowerShell 5.1+ or PowerShell 7+)** ```powershell -# Using the official chezmoi installer (recommended) -(irm -useb https://get.chezmoi.io/ps1) | powershell -c -; chezmoi init --apply DevSecNinja +# Install chezmoi via winget (recommended), then open a new shell +winget install twpayne.chezmoi +chezmoi init --apply DevSecNinja ``` **Option 2: Clone and install locally** diff --git a/docs/installation.md b/docs/installation.md index 45d1acc5..4c7dcae9 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -122,8 +122,9 @@ the dotfiles. **Option 1 — Directly from GitHub (PowerShell 5.1+ or PowerShell 7+):** ```powershell -# Using the official chezmoi installer (recommended) -(irm -useb https://get.chezmoi.io/ps1) | powershell -c -; chezmoi init --apply DevSecNinja +# Install chezmoi via winget (recommended), then open a new shell +winget install twpayne.chezmoi +chezmoi init --apply DevSecNinja ``` **Option 2 — Clone and install locally:** From 13f728603c1ee4baebfc18b05a5b3bd16e39c23b Mon Sep 17 00:00:00 2001 From: Jean-Paul van Ravensberg <14926452+DevSecNinja@users.noreply.github.com> Date: Sun, 15 Nov 2026 00:38:13 +0100 Subject: [PATCH 2/2] fix(windows): re-deploy PowerShell profile loader via run_onchange 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> --- STRUCTURE.md | 2 +- ...l-loader.ps1 => run_onchange_05-setup-powershell-loader.ps1} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename home/.chezmoiscripts/windows/{run_once_setup-powershell-loader.ps1 => run_onchange_05-setup-powershell-loader.ps1} (100%) diff --git a/STRUCTURE.md b/STRUCTURE.md index 97aa3029..1f789706 100644 --- a/STRUCTURE.md +++ b/STRUCTURE.md @@ -68,7 +68,7 @@ dotfiles/ │ │ ├── run_once_before_00-setup.ps1 # Initial directory creation │ │ ├── run_onchange_10-install-packages.ps1.tmpl # Development tools (winget, runs on packages.yaml change) │ │ ├── run_onchange_20-install-modules.ps1.tmpl # PowerShell modules/fonts (after packages so pwsh exists) -│ │ └── run_once_setup-powershell-loader.ps1 # PowerShell profile loader +│ │ └── run_onchange_05-setup-powershell-loader.ps1 # PowerShell profile loader │ ├── 🧪 Validation & Testing │ └── tests/ diff --git a/home/.chezmoiscripts/windows/run_once_setup-powershell-loader.ps1 b/home/.chezmoiscripts/windows/run_onchange_05-setup-powershell-loader.ps1 similarity index 100% rename from home/.chezmoiscripts/windows/run_once_setup-powershell-loader.ps1 rename to home/.chezmoiscripts/windows/run_onchange_05-setup-powershell-loader.ps1