PowerShell_Scripts/scoop/profile.d/smart-refresh-on-startup.ps1

15 lines
340 B
PowerShell

param([switch]$Force)
if( -not (Test-Path variable:global:ScoopRefreshed) ) {
scoop autocomplete-on
}
$global:ScoopRefreshed = [SessionData]::Get("ScoopRefreshed",$false)
if( -not $ScoopRefreshed ) {
if($Host.Name -ne 'Visual Studio Code Host' ) {
scoop refresh
[SessionData]::Set("ScoopRefreshed",$true)
}
}