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:
父節點
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) ) {
|
||||
|
|
載入中…
Add table
Add a link
Reference in a new issue