Enable Tab Completion (original) (raw)

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:
  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,wordToComplete, wordToComplete,cursorPosition)
usbipd [suggest:$cursorPosition] "$wordToComplete" | ForEach-Object {
[System.Management.Automation.CompletionResult]::new($, ,′ParameterValue′,, 'ParameterValue', ,ParameterValue,_)
}
} 3. Restart PowerShell. All future PowerShell instances will have tab completion for usbipd.