aboutsummaryrefslogtreecommitdiff
path: root/install-win.ps1
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-07-24 10:32:42 +0200
committerThomas Schmucker <ts@its1.de>2026-07-24 10:32:42 +0200
commitb91319846c364030074726fba73e76f19713e69d (patch)
tree48da13081a154598c1d8c5aac831630b850173bb /install-win.ps1
parentc1e4fdb0b9eaf0a6ff2f73ae732970e9b956b05f (diff)
downloaddotfiles-b91319846c364030074726fba73e76f19713e69d.tar.gz
dotfiles-b91319846c364030074726fba73e76f19713e69d.tar.bz2
dotfiles-b91319846c364030074726fba73e76f19713e69d.zip
windows: eigene npmrc-Variante ohne ${HOME} (npm/npmrc-win)
npm/npmrc setzt prefix=${HOME}/.local, damit globale npm-Installationen ohne sudo/root ins Home-Verzeichnis gehen. HOME ist unter Windows i.d.R. nicht gesetzt, ${HOME} wuerde also nicht expandieren. npm/npmrc-win laesst prefix komplett weg - npm nutzt unter Windows ohnehin schon %APPDATA%\npm als Praefix, von Node's eigenem Installer automatisch zum PATH hinzugefuegt, kein Workaround noetig. install-win.ps1 und neovim-windows-setup.md entsprechend angepasst. npm/npmrc (POSIX) bleibt unveraendert.
Diffstat (limited to 'install-win.ps1')
-rw-r--r--install-win.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/install-win.ps1 b/install-win.ps1
index 632c25e..e52c0cb 100644
--- a/install-win.ps1
+++ b/install-win.ps1
@@ -41,7 +41,7 @@ $GitUp2partsSrc = Join-Path $RepoRoot "git\config-up2parts"
41$GitXdgDir = Join-Path $env:USERPROFILE ".config\git" 41$GitXdgDir = Join-Path $env:USERPROFILE ".config\git"
42$GitUp2partsDst = Join-Path $GitXdgDir "config-up2parts" 42$GitUp2partsDst = Join-Path $GitXdgDir "config-up2parts"
43 43
44$NpmrcSrc = Join-Path $RepoRoot "npm\npmrc" 44$NpmrcSrc = Join-Path $RepoRoot "npm\npmrc-win"
45$NpmrcDst = Join-Path $env:USERPROFILE ".npmrc" 45$NpmrcDst = Join-Path $env:USERPROFILE ".npmrc"
46 46
47function Copy-NvimConfig { 47function Copy-NvimConfig {
@@ -75,7 +75,7 @@ function Copy-Npmrc {
75 return 75 return
76 } 76 }
77 77
78 Write-Step "npm\npmrc -> $NpmrcDst" 78 Write-Step "npm\npmrc-win -> $NpmrcDst"
79 Copy-Item -Force $NpmrcSrc $NpmrcDst 79 Copy-Item -Force $NpmrcSrc $NpmrcDst
80 Write-Ok $NpmrcDst 80 Write-Ok $NpmrcDst
81} 81}