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:
parent
90bd351641
commit
2d858a8a06
2 changed files with 72 additions and 4 deletions
|
@ -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) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue