From c90d46ef6c2011a17660cf5044889c02415368d6 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Mon, 21 Oct 2024 21:07:41 +0200 Subject: [PATCH] install neovim configs for windows if no wsl detected --- install_windows.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install_windows.ps1 b/install_windows.ps1 index 0fcffef..6fbcb4d 100644 --- a/install_windows.ps1 +++ b/install_windows.ps1 @@ -155,7 +155,10 @@ CopyFileWithPrompt "$dotfilesRepo\alacritty\alacritty.toml" "$alacrittyConfigDir # Setting up Neovim Configuration Write-Host "Setting up Neovim configuration..." -ForegroundColor Cyan -ProcessUrlFiles -sourceDir "$dotfilesRepo\nvim" -destinationDir "$env:LOCALAPPDATA" +$ubuntu = wsl.exe -l --all | Where-Object { $_.Replace("`0", "") -match '^Ubuntu' } +if ($null -eq $ubuntu) +{ ProcessUrlFiles -sourceDir "$dotfilesRepo\nvim" -destinationDir "$env:LOCALAPPDATA" +} # Setting up PowerShell Profile Write-Host "Setting up PowerShell profile..." -ForegroundColor Cyan