From af47a66ee77a595bc62f504bbaed84c88a3a1d11 Mon Sep 17 00:00:00 2001 From: Jacquin Moon Date: Sun, 8 Dec 2024 09:03:00 +0700 Subject: [PATCH] :sparkles: feat: added completion for yq command --- dotposh/Config/posh-completions/yq.ps1 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 dotposh/Config/posh-completions/yq.ps1 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 +}