From 3c5f166d46bac83a631fa2eadc41ab633639a765 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Thu, 15 Aug 2024 17:44:07 -0400 Subject: [PATCH] [wip] f --- src/run_after__symlink-config_windows.ps1.tmpl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/run_after__symlink-config_windows.ps1.tmpl b/src/run_after__symlink-config_windows.ps1.tmpl index e1180fc..c4ef15d 100644 --- a/src/run_after__symlink-config_windows.ps1.tmpl +++ b/src/run_after__symlink-config_windows.ps1.tmpl @@ -2,7 +2,6 @@ {{- $roamingconfdirs := list "alacritty" "nushell" -}} {{- $localconfdirs := list "nvim" -}} -{{- $localdatadirs := list "nvim-data/site" -}} {{- if eq .chezmoi.os "windows" -}} $userdir = ([Environment]::GetFolderPath("UserProfile")) @@ -21,10 +20,8 @@ If (-Not (Test-Path $localconfdir\{{ . }})) { } {{ end }} -{{ range $localdatadirs }} -If (-Not (Test-Path $localconfdir\{{ . }})) { - New-Item -Path $localconfdir\{{ . }} -ItemType Junction -Value $userdir\.local\share\{{ . }} +If (-Not (Test-Path $localconfdir\nvim-data\site)) { + New-Item -Path $localconfdir\nvim-data\site -ItemType Junction -Value $userdir\.local\share\nvim\site } -{{ end }} {{- end -}}