Skip to content

Commit

Permalink
✨ feat: powershell hugo completion
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquindev committed Dec 28, 2024
1 parent d4e5d20 commit f171f5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dotposh/Config/posh-completions/hugo.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# hugo
if (Get-Command hugo -ErrorAction SilentlyContinue) {
Register-EngineEvent -SourceIdentifier PowerShell.OnIdle -MaxTriggerCount 1 -Action {
hugo completion powershell | Out-String | Invoke-Expression
} | Out-Null
}

0 comments on commit f171f5f

Please sign in to comment.