From 2e82efff09d3eea2b9d2610b091e250e09d8db2b Mon Sep 17 00:00:00 2001 From: "hh.lohmann" Date: Sat, 10 Sep 2022 17:10:07 +0200 Subject: [PATCH] Install on Windows: Correct + augment (#1520) * PowerShell / "other CLIs" don't have "set" * "setx" for global setting for current user (no admin rights required) --- content/en/getting-started/installing.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/en/getting-started/installing.md b/content/en/getting-started/installing.md index d2d912a28..3fd8d0a57 100644 --- a/content/en/getting-started/installing.md +++ b/content/en/getting-started/installing.md @@ -384,7 +384,12 @@ You'll need a place to store the Hugo executable, your [content][], and the gene 1. Download the latest zipped Hugo executable from [Hugo Releases][releases]. 2. Extract all contents to your `..\Hugo\bin` folder. -3. In PowerShell or your preferred CLI, add the `hugo.exe` executable to your PATH by navigating to `C:\Hugo\bin` (or the location of your hugo.exe file) and use the command `set PATH=%PATH%;C:\Hugo\bin`. If the `hugo` command does not work after a reboot, you may have to run the command prompt as administrator. +3. Open Windows Command Line (cmd, "DOS") to add the `hugo.exe` executable to your PATH + * do `set PATH=%PATH%;C:\Hugo\bin` to have hugo in PATH for the currently opened cmd box + * do `setx PATH "%PATH%;C:\Hugo\bin"` to have hugo in PATH for every newly opened cmd box + * note: "setx", not "set", plus syntax 'key "val"', not 'key=val' + +> You may also use "Git CMD" from the [Git for Windows package](https://gitforwindows.org/) for the native Windows commands [set](https://ss64.com/nt/set.html) and [setx](https://ss64.com/nt/setx.html), but not "Git Bash", PowerShell, or any other "CLI" with different commands ### Less-technical Users