From 37b10d439c9ec7876fc3aea159d3a6a8062c379e Mon Sep 17 00:00:00 2001 From: TheFlyingFool Date: Tue, 14 May 2024 19:38:21 -0500 Subject: [PATCH] Removed some comments --- setup.ps1 | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/setup.ps1 b/setup.ps1 index 44ad43c..f32f0af 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -63,27 +63,11 @@ function Update-Profile { $URL="https://git.theflyingfool.com/theflyingfool/Win_Setup/raw/branch/main/CopyFromFile.txt" $PATH="$PWD\CopyFromFile.txt" if (-not (Test-Path ./CopyFromFile.txt)) { (New-Object System.Net.WebClient).DownloadFile($URL, $PATH) } -# Get-Content -Path $PROFILE + $CheckString = Get-Content -Path .\CopyFromFile.txt if (-not(Select-String -Quiet -Path $PROFILE -Pattern $CheckString)) {Get-Content -Path .\CopyFromFile.txt | Add-Content -Path $PROFILE} -# Get-Content -Path $PROFILE - -#> - <# - Write-Output ' - Register-ArgumentCompleter -Native -CommandName winget -ScriptBlock { - param($wordToComplete, $commandAst, $cursorPosition) - [Console]::InputEncoding = [Console]::OutputEncoding = $OutputEncoding = [System.Text.Utf8Encoding]::new() - $Local:word = $wordToComplete.Replace('"', '""') - $Local:ast = $commandAst.ToString().Replace('"', '""') - winget complete --word="$Local:word" --commandline "$Local:ast" --position $cursorPosition | ForEach-Object { - [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) - } - } - }' >> $PROFILE -#> } do {