aboutsummaryrefslogtreecommitdiff
path: root/win-nvim.ps1
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-07-16 06:00:36 +0200
committersrdusr <trevorgray@srdusr.com>2023-07-16 06:00:36 +0200
commit32a71a6f19b45a00b3ea80f5698a2e460769f1e4 (patch)
tree0751e4bf07fef4f8098d4c307a2d816a765b9438 /win-nvim.ps1
parent47fd8530ddaeac3398c240794518ad5247fd5d28 (diff)
downloaddotfiles-32a71a6f19b45a00b3ea80f5698a2e460769f1e4.tar.gz
dotfiles-32a71a6f19b45a00b3ea80f5698a2e460769f1e4.zip
Changed from ssh to https
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