private/CompleteFrecent.ps1
function CompleteFrecent { param($commandName, $parameterName, $wordToComplete) $recents = Get-FrecentLocation $wordToComplete if (!$recents) { return } @($recents) | Where Path -match ($wordToComplete | RemoveSurroundingQuotes | RemoveTrailingSeparator | Escape) | IndexedComplete -indexed $false | DefaultIfEmpty { $null } } |