diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-07-23 10:16:22 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-07-23 10:16:22 +0200 |
| commit | bb70769ffdc3b93329f364f47c49148658a03d44 (patch) | |
| tree | 4f21bf43282989fa0d9a872b849e581fc55aad2b /bootstrap/neovim-win.ps1 | |
| parent | b504e16f941470d46c0f8495f7ea4368e5d14871 (diff) | |
| download | dotfiles-bb70769ffdc3b93329f364f47c49148658a03d44.tar.gz dotfiles-bb70769ffdc3b93329f364f47c49148658a03d44.tar.bz2 dotfiles-bb70769ffdc3b93329f364f47c49148658a03d44.zip | |
windows: cmd-Style %VAR%-Syntax in PowerShell-Kontexten korrigiert
setx PATH "%PATH%;..." funktioniert in PowerShell nicht wie in cmd.exe
(kein automatisches Expandieren von %VAR%) und haette zusaetzlich den
kompletten Prozess-PATH inkl. System-Anteil dauerhaft in den User-PATH
kopiert. Ersetzt durch [Environment]::GetEnvironmentVariable/SetEnviron-
mentVariable("PATH", ..., "User") in bootstrap/neovim-win.ps1 und
neovim-windows-setup.md. Ausserdem klargestellt, dass windows/bin/gmake.cmd
bewusst die einzige Nicht-PowerShell-Datei im Windows-Zweig bleibt.
Diffstat (limited to 'bootstrap/neovim-win.ps1')
| -rw-r--r-- | bootstrap/neovim-win.ps1 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bootstrap/neovim-win.ps1 b/bootstrap/neovim-win.ps1 index 60ed0ea..a2e755b 100644 --- a/bootstrap/neovim-win.ps1 +++ b/bootstrap/neovim-win.ps1 | |||
| @@ -115,8 +115,11 @@ function Install-Tools { | |||
| 115 | 115 | ||
| 116 | # opt.makeprg = "gmake" (nvim/lua/config/options.lua) - Alias liegt in | 116 | # opt.makeprg = "gmake" (nvim/lua/config/options.lua) - Alias liegt in |
| 117 | # windows/bin/gmake.cmd, reicht an "make" durch. Einmalig windows\bin | 117 | # windows/bin/gmake.cmd, reicht an "make" durch. Einmalig windows\bin |
| 118 | # zum PATH hinzufuegen, z.B.: | 118 | # zum PATH hinzufuegen (PowerShell, User-Scope, nicht setx mit %PATH% |
| 119 | # setx PATH "%PATH%;%USERPROFILE%\dotfiles\windows\bin" | 119 | # verwenden - das wuerde den gesamten Prozess-PATH inkl. System-Anteil |
| 120 | # dauerhaft in den User-PATH kopieren): | ||
| 121 | # $userPath = [Environment]::GetEnvironmentVariable("PATH", "User") | ||
| 122 | # [Environment]::SetEnvironmentVariable("PATH", "$userPath;$env:USERPROFILE\dotfiles\windows\bin", "User") | ||
| 120 | Install-WingetPackage -Binary "make" -Id "GnuWin32.Make" | 123 | Install-WingetPackage -Binary "make" -Id "GnuWin32.Make" |
| 121 | } | 124 | } |
| 122 | 125 | ||
