aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/neovim-win.ps112
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstrap/neovim-win.ps1 b/bootstrap/neovim-win.ps1
index a2e755b..1ea3b3c 100644
--- a/bootstrap/neovim-win.ps1
+++ b/bootstrap/neovim-win.ps1
@@ -89,9 +89,21 @@ function Test-Prerequisites {
89 } 89 }
90} 90}
91 91
92function Update-SessionPath {
93 # winget/npm-Installer tragen PATH-Aenderungen in die Registry (User-
94 # und/oder Machine-Scope) ein, aber der laufende PowerShell-Prozess
95 # bekommt das nicht automatisch mit. Ohne diesen Refresh wuerde z.B.
96 # "npm" gleich im Anschluss an die Node-Installation als "nicht
97 # gefunden" gemeldet, obwohl es gerade erst installiert wurde.
98 $machine = [Environment]::GetEnvironmentVariable("PATH", "Machine")
99 $user = [Environment]::GetEnvironmentVariable("PATH", "User")
100 $env:PATH = "$machine;$user"
101}
102
92function Install-Prerequisites { 103function Install-Prerequisites {
93 Install-WingetPackage -Binary "git" -Id "Git.Git" 104 Install-WingetPackage -Binary "git" -Id "Git.Git"
94 Install-WingetPackage -Binary "node" -Id "OpenJS.NodeJS.LTS" 105 Install-WingetPackage -Binary "node" -Id "OpenJS.NodeJS.LTS"
106 Update-SessionPath
95} 107}
96 108
97function Install-Formatters { 109function Install-Formatters {