From 1e01a701827286adfdfa4cd98625f0ce994f9734 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Mon, 21 Oct 2024 21:08:05 +0200 Subject: [PATCH] if wsl detected, save neovim in $tmp, copy to config home --- install_windows.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install_windows.ps1 b/install_windows.ps1 index 6fbcb4d..1dc8047 100644 --- a/install_windows.ps1 +++ b/install_windows.ps1 @@ -158,6 +158,12 @@ Write-Host "Setting up Neovim configuration..." -ForegroundColor Cyan $ubuntu = wsl.exe -l --all | Where-Object { $_.Replace("`0", "") -match '^Ubuntu' } if ($null -eq $ubuntu) { ProcessUrlFiles -sourceDir "$dotfilesRepo\nvim" -destinationDir "$env:LOCALAPPDATA" +} else +{ + ProcessUrlFiles -sourceDir "$dotfilesRepo\nvim" + Set-Location "$env:TMP\nvim-config" + wsl.exe cp -rf . ~/.config/ 2>$null | Out-Null + Set-Location - } # Setting up PowerShell Profile