2021-06-29 09:43:27 -04:00
|
|
|
param([switch]$Force)
|
|
|
|
|
2021-06-29 15:06:01 -04:00
|
|
|
if( -not (Test-Path variable:global:ScoopRefreshed) ) {
|
|
|
|
scoop autocomplete-on
|
2021-06-29 09:43:27 -04:00
|
|
|
}
|
2021-06-29 15:06:01 -04:00
|
|
|
$global:ScoopRefreshed = [SessionData]::Get("ScoopRefreshed",$false)
|
2021-06-29 09:43:27 -04:00
|
|
|
|
2021-06-29 15:06:01 -04:00
|
|
|
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)
|
2021-04-20 19:43:17 -04:00
|
|
|
}
|
2021-06-29 15:06:01 -04:00
|
|
|
}
|
|
|
|
|