From 37889941aef8886eb3e5e9bfe5f1313cd0c2ed64 Mon Sep 17 00:00:00 2001 From: Jacob Date: Sat, 27 Jan 2024 17:32:32 -0500 Subject: [PATCH] Add PowerShell version of the install.sh script. --- install.ps1 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 install.ps1 diff --git a/install.ps1 b/install.ps1 new file mode 100644 index 0000000..50a3cb7 --- /dev/null +++ b/install.ps1 @@ -0,0 +1,16 @@ +Write-Output 3 +Start-Sleep -Seconds 1 +Write-Output 2 +Start-Sleep -Seconds 1 +Write-Output 1 +Start-Sleep -Seconds 1 + +if (Test-Path "$env:USERPROFILE\AppData\Local\nvim") { + Copy-Item -Path "$env:USERPROFILE\AppData\Local\nvim" -Destination "$env:TEMP\nvim-backup" -Recurse -Force + Remove-Item -Path "$env:USERPROFILE\AppData\Local\nvim" -Recurse -Force +} + +Copy-Item -Path ".config\nvim" -Destination "$env:USERPROFILE\AppData\Local\" -Recurse -Force +New-Item -Path "$env:USERPROFILE\AppData\Local\nvim\spell" -ItemType Directory -Force + +Write-Output "installed."