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

15 lines
340 B
PowerShell
Raw Normal View History

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