mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 03:11:45 +00:00
if wsl detected, save neovim in $tmp, copy to config home
This commit is contained in:
parent
c90d46ef6c
commit
1e01a70182
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user