[wip] f
This commit is contained in:
parent
73aa4f5f23
commit
3c5f166d46
@ -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 -}}
|
||||
|
Loading…
Reference in New Issue
Block a user