Repository navigation
docs: install chezmoi via winget on Windows #1050
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Check which chezmoi executable will run. If an older
|
||
| ``` | ||
|
|
||
| **Option 2: Clone and install locally** | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Separate initialization from the install block. If a user copies the whole block, PowerShell runs both commands in the original shell. The new PATH may not be available there, so
|
||
| ``` | ||
|
|
||
| **Option 2 — Clone and install locally:** | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document the WinGet prerequisite.
WinGet is not available in every Windows environment; for example, Windows Sandbox does not include it. (learn.microsoft.com) In that environment, this command fails before installation starts. Add WinGet bootstrap guidance or a fallback in both installation locations.