diff --git a/src/run_after__symlink-config_windows.ps1.tmpl b/src/run_after__symlink-config_windows.ps1.tmpl index d5eb605..2e26c92 100644 --- a/src/run_after__symlink-config_windows.ps1.tmpl +++ b/src/run_after__symlink-config_windows.ps1.tmpl @@ -1,7 +1,8 @@ -{{- /* symlink into ~/.config on windows */ -}} +{{- /* symlink into ~/.config and ~/.local/share/ on windows */ -}} {{- $roamingconfdirs := list "alacritty" "nushell" -}} {{- $localconfdirs := list "nvim" -}} +{{- $localdatadirs := list "nvim-data" -}} {{- if eq .chezmoi.os "windows" -}} $userdir = ([Environment]::GetFolderPath("UserProfile")) @@ -20,4 +21,10 @@ If (-Not (Test-Path $localconfdir\{{ . }})) { } {{ end }} +{{ range $localdatadirs }} +If (-Not (Test-Path $localconfdir\{{ . }})) { + New-Item -Path $localconfdir\{{ . }} -ItemType Junction -Value $userdir\.local\share\{{ . }} +} +{{ end }} + {{- end -}}