From bd08f1f0dbddafbba227df78cc339e59f10f8e65 Mon Sep 17 00:00:00 2001 From: starchyunderscore Date: Thu, 29 Feb 2024 08:56:41 -0500 Subject: [PATCH] Update setup.ps1 hopefully make text editors select correct file --- current/setup.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/current/setup.ps1 b/current/setup.ps1 index 22ef7ac..42a1797 100644 --- a/current/setup.ps1 +++ b/current/setup.ps1 @@ -1366,7 +1366,7 @@ public class PInvoke { Expand-Archive $HOME\w11-nau-temp\vim.zip $HOME\w11-nau-temp\vim | out-null Write-Output "Installing..." mv $HOME\w11-nau-temp\vim\vim\vim*\ $HOME\bin\vim | out-null - Write-Output "$HOME\bin\vim\vim.exe" > "$HOME\bin\vim.ps1" + Write-Output "param([Parameter(Position=0)][string[]]`$File); $HOME\bin\vim\vim.exe `$File" > "$HOME\bin\vim.ps1" Write-Output "Cleaning up..." rm -r $HOME\w11-nau-temp\vim rm $HOME\w11-nau-temp\vim.zip @@ -1392,7 +1392,7 @@ public class PInvoke { Expand-Archive $HOME\w11-nau-temp\nvim.zip $HOME\w11-nau-temp\nvim | out-null Write-Output "Installing..." mv $HOME\w11-nau-temp\nvim\nvim-win64\ $HOME\bin\nvim | out-null - Write-Output "$HOME\bin\nvim\bin\nvim.exe" > "$HOME\bin\nvim.ps1" + Write-Output "param([Parameter(Position=0)][string[]]`$File); $HOME\bin\nvim\bin\nvim.exe `$File" > "$HOME\bin\nvim.ps1" Write-Output "Downloading dependencies..." Invoke-webRequest -UseBasicParsing "https://www.dropbox.com/scl/fi/3jce5pmrv0yxuu23zvbbc/vcruntime140.dll?rlkey=iktobjfly7orys8we6hjf5l6x&dl=1" -OutFile "$HOME\bin\nvim\bin\vcruntime140.dll" Write-Output "Cleaning up..." @@ -1448,7 +1448,7 @@ public class PInvoke { Expand-Archive $HOME\w11-nau-temp\nano.zip $HOME\w11-nau-temp\nano | out-null Write-Output "Installing..." mv $HOME\w11-nau-temp\nano\nano\ $HOME\bin\nano\ | out-null - Write-Output "$HOME\bin\nano\bin\nano.exe" > "$HOME\bin\nano.ps1" + Write-Output "param([Parameter(Position=0)][string[]]`$File); $HOME\bin\nano\bin\nano.exe `$File" > "$HOME\bin\nano.ps1" Write-Output "Cleaning up..." rm -r $HOME\w11-nau-temp\nano rm $HOME\w11-nau-temp\nano.zip