From e3c2ba0bab168e0229173bd73c086ee8caf8ed95 Mon Sep 17 00:00:00 2001 From: JohnnyRevay <65253638+jan-revay@users.noreply.github.com> Date: Thu, 2 Jan 2025 22:33:41 +0100 Subject: [PATCH] Win: Formatting - split long lines --- Windows_1X/packages_install.ps1 | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Windows_1X/packages_install.ps1 b/Windows_1X/packages_install.ps1 index 1f99f153..c2704214 100644 --- a/Windows_1X/packages_install.ps1 +++ b/Windows_1X/packages_install.ps1 @@ -145,13 +145,18 @@ winget upgrade --all --accept-source-agreements --accept-package-agreements ` # TODO some packages below need to be fixed (or just installed globally?) # TODO install python applications with pipx # refresh Path variable -$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") +$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" ` + + [System.Environment]::GetEnvironmentVariable("Path","User") + py -3 -m pip install --user pipx py -3 -m pipx ensurepath # refresh Path variable -$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") -pipx install flawfinder # C++ linter +$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" ` + + [System.Environment]::GetEnvironmentVariable("Path","User") + +# C++ linters +pipx install flawfinder pipx install cpplint # TODO try installing these packages directly via winget @@ -168,7 +173,9 @@ pip install scikit-learn pip install shap # TODO an attempt to reload the path (investigate further) -$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") +$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" ` + + [System.Environment]::GetEnvironmentVariable("Path","User") + # TODO uncomment and fix the next line # gem install github-linguist