2021-06-29 13:43:27 +00:00
|
|
|
param([switch]$Force)
|
|
|
|
|
2021-06-29 19:06:01 +00:00
|
|
|
if( -not (Test-Path variable:global:ScoopRefreshed) ) {
|
|
|
|
scoop autocomplete-on
|
2021-06-29 13:43:27 +00:00
|
|
|
}
|
2021-06-29 19:06:01 +00:00
|
|
|
$global:ScoopRefreshed = [SessionData]::Get("ScoopRefreshed",$false)
|
2021-06-29 13:43:27 +00:00
|
|
|
|
2021-06-29 19:06:01 +00:00
|
|
|
if( -not $ScoopRefreshed ) {
|
2021-12-14 04:23:45 +00:00
|
|
|
if($Host.Name -ne 'Visual Studio Code Host' ) {
|
|
|
|
scoop refresh
|
|
|
|
[SessionData]::Set("ScoopRefreshed",$true)
|
2021-04-20 23:43:17 +00:00
|
|
|
}
|
2021-06-29 19:06:01 +00:00
|
|
|
}
|
|
|
|
|