diff --git a/src/PSFzfHistory.psm1 b/src/PSFzfHistory.psm1 index 6b288cc..fdc8f2a 100644 --- a/src/PSFzfHistory.psm1 +++ b/src/PSFzfHistory.psm1 @@ -1,8 +1,8 @@ # Do not add --height option for fzf, it shows nothing in keybind use function Invoke-FzfHistory ([String]$fuzzy) { [Microsoft.PowerShell.PSConsoleReadLine]::GetHistoryItems() | - Reverse | Select-Object -ExpandProperty CommandLine | + Reverse | AsOrderedSet | fzf --scheme=history --no-sort --no-height --query $fuzzy }