Skip to content

Commit af47a66

Browse files
committed
✨ feat: added completion for yq command
1 parent 25345e9 commit af47a66

File tree

1 file changed

+5
-0
lines changed
  • dotposh/Config/posh-completions

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if (Get-Command yq -ErrorAction SilentlyContinue) {
2+
Register-EngineEvent -SourceIdentifier PowerShell.OnIdle -MaxTriggerCount 1 -Action {
3+
yq shell-completion powershell | Out-String | Invoke-Expression
4+
} | Out-Null
5+
}

0 commit comments

Comments
 (0)