Add SessionData class to setup script

Added [SessionData] static class to setup script
Utilized SessionData for scoop refreshing, so it will happen once per login session
 - otherwise it's a nuisance.
This commit is contained in:
Gal Szkolnik 2021-06-29 09:43:27 -04:00
parent 90bd351641
commit 2d858a8a06
2 changed files with 72 additions and 4 deletions

View file

@ -1,3 +1,10 @@
param([switch]$Force)
if( -not $global:ThisSeszion -or $Force ) {
$global:MyModulesWarning = @()
}
scoop autocomplete-on
if( Test-Path (Join-Path $env:SCOOP last-scoop-refresh.clixml) ) {