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
父節點 90bd351641
當前提交 2d858a8a06
共有 2 個文件被更改,包括 72 次插入4 次删除

查看文件

@ -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) ) {