aboutsummaryrefslogtreecommitdiff
path: root/win-nvim.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'win-nvim.ps1')
-rw-r--r--win-nvim.ps110
1 files changed, 9 insertions, 1 deletions
diff --git a/win-nvim.ps1 b/win-nvim.ps1
index 82a454b..4f156ec 100644
--- a/win-nvim.ps1
+++ b/win-nvim.ps1
@@ -7,7 +7,7 @@ if (!(Get-Command nvim -ErrorAction SilentlyContinue)) {
$dotFilesRoot = Join-Path $HOME "dotfiles"
if (!(Test-Path $dotFilesRoot -PathType Container)) {
- git clone git@github.com:srdusr/dotfiles.git $dotFilesRoot
+ git clone https://github.com:srdusr/dotfiles.git $dotFilesRoot
}
# Link NeoVim configuration
@@ -29,3 +29,11 @@ if (!(Test-Path $localPacker -PathType Container)) {
# Set-ExecutionPolicy RemoteSigned
# Then run the script by using this command in the same existing directory:
# ./win-nvim.ps1
+curl -o winget-cli.appxbundle https://aka.ms/winget-cli-appxbundle
+powershell Add-AppxPackage -Path "winget-cli.appxbundle"
+Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
+use `-y` or consider: choco feature enable -n allowGlobalConfirmation
+choco install git
+- Refresh the environment
+Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
+refreshenv