diff --git a/dotposh/Config/posh-completions/yq.ps1 b/dotposh/Config/posh-completions/yq.ps1 new file mode 100644 index 0000000..50c901a --- /dev/null +++ b/dotposh/Config/posh-completions/yq.ps1 @@ -0,0 +1,5 @@ +if (Get-Command yq -ErrorAction SilentlyContinue) { + Register-EngineEvent -SourceIdentifier PowerShell.OnIdle -MaxTriggerCount 1 -Action { + yq shell-completion powershell | Out-String | Invoke-Expression + } | Out-Null +}