Skip to content

PSCompletions and PSFzf

TIP

PSFzf is a PowerShell module that provides a more powerful completion menu.

Install PSFzf

powershell
Install-Module PSFzf

Use PSFzf

  1. For completions that are not added via psc add, you need to disable the completion menu provided by PSCompletions.

    WARNING

    • Completions added via psc add are handled by PSFzf which may cause issues.
    • Therefore, you should not use psc menu config enable_menu 0.
    powershell
    psc menu config enable_menu_enhance 0
  2. Use the completion menu provided by PSFzf.

    powershell
    Set-PSReadLineKeyHandler -Key Tab -ScriptBlock { Invoke-FzfTabCompletion }
  3. For more details, please refer to PSFzf.