diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-10-22 22:39:26 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-10-22 22:39:26 +0200 |
| commit | 3d9ff286af272a40c09edda50283c8d4ce959f32 (patch) | |
| tree | ca12463705af2ac872ca584683f4d8eaff350c72 /.local/bin/scripts/win-nvim.bat | |
| parent | 9a2951d12da3a8f284a68ac14ea35775881b04aa (diff) | |
| download | dotfiles-3d9ff286af272a40c09edda50283c8d4ce959f32.tar.gz dotfiles-3d9ff286af272a40c09edda50283c8d4ce959f32.zip | |
Moved scripts to ~/.scripts
Diffstat (limited to '.local/bin/scripts/win-nvim.bat')
| -rw-r--r-- | .local/bin/scripts/win-nvim.bat | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/.local/bin/scripts/win-nvim.bat b/.local/bin/scripts/win-nvim.bat deleted file mode 100644 index c99374d..0000000 --- a/.local/bin/scripts/win-nvim.bat +++ /dev/null @@ -1,37 +0,0 @@ -@echo off - -REM Install NeoVim with winget, if not already present on the system -where nvim >nul 2>nul -if %errorlevel% neq 0 ( - winget install Neovim.Neovim -q -) - -REM Clone my dotfiles repo -set dotFilesRoot=%USERPROFILE%\dotfiles -if not exist "%dotFilesRoot%\." ( - git clone git@github.com:srdusr/dotfiles.git "%dotFilesRoot%" -) - -REM Link NeoVim configuration -set localConfiguration=%LOCALAPPDATA%\nvim -set dotfilesConfiguration=%dotFilesRoot%\.config\nvim - -if not exist "%localConfiguration%\." ( - mklink /D "%localConfiguration%" "%dotfilesConfiguration%" -) - -REM Clone Packer.nvim, if not already present on the system -set localPacker=%LOCALAPPDATA%\nvim-data\site\pack\packer\start\packer.nvim - -if not exist "%localPacker%\." ( - git clone https://github.com/wbthomason/packer.nvim "%localPacker%" -) - -REM Run the script by using this command in the same existing directory: win-nvim.bat - -@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://aka.ms/install-winget'))" -iex ((new-object net.webclient).DownloadString('https://aka.ms/install-winget')) -curl -o winget-cli.appxbundle https://aka.ms/winget-cli-appxbundle - -powershell Add-AppxPackage -Path "winget-cli.appxbundle" - |
