Skip to content

Instantly share code, notes, and snippets.

@karimkod
Created September 13, 2024 18:26
Show Gist options
  • Save karimkod/8ba8f056fc00e3f4824e4fe2006cc4e2 to your computer and use it in GitHub Desktop.
Save karimkod/8ba8f056fc00e3f4824e4fe2006cc4e2 to your computer and use it in GitHub Desktop.
param(
[Parameter(Mandatory, Position=0)]
[String]
$CommandLike
)
Get-Content (Get-PSReadLineOption).HistorySavePath | Where-Object { $_ -like "*$CommandLike*" -And $_ -NotLike "*Lazy-Up*" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment