Skip to content

Enable Tab Completion

Frans van Dorsselaer edited this page Jun 28, 2025 · 1 revision

Tab completion for PowerShell requires the following one-time-only activation steps.

  1. Find the expected path to your PowerShell profile by running the following command:

    echo $profile
  2. Add the following to your PowerShell profile using your favorite text editor:

    # PowerShell parameter completion shim for usbipd-win
    Register-ArgumentCompleter -Native -CommandName usbipd -ScriptBlock {
        param($commandName, $wordToComplete, $cursorPosition)
        usbipd [suggest:$cursorPosition] "$wordToComplete" | ForEach-Object {
            [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
        }
    }
  3. Restart PowerShell. All future PowerShell instances will have tab completion for usbipd.

Clone this wiki locally