this post was submitted on 19 Feb 2026
2 points (100.0% liked)

Powershell

1231 readers
7 users here now

PowerShell (POSH) is a a task automation command-line shell and scripting language created by Microsoft. It became part of the FOSS community in 2016 and is now available across Windows, Linux, and macOS

Resources:


Rules:

Self-promotion rules:


founded 2 years ago
MODERATORS
 

I just released PSNotes v1.0.0.

PSNotes is a PowerShell module that lets you build your own snippet library with:

  • Aliases for quick recall
  • Catalog-based organization
  • Direct execution or clipboard copy
  • Executing script via paths or as saved snippets
  • Support for remote catalogs allowing you to have your snippets everywhere
  • Quick browser to see all your notes at a glance
  • Works from Windows Terminal, VSCode, pwsh, or any PowerShell host (even ISE if you're still using that)

The goal is simple: make it easier to reuse the commands you run constantly and remember the ones you don’t. Or if you are like me and get sick of typing out [System.Collections.Generic.List[PSObject]] forty times a day.

Full documentation and samples: https://github.com/mdowst/PSNotes

Release notes: https://github.com/mdowst/PSNotes/releases/tag/v1.0.0

PowerShell Gallery Listing: https://www.powershellgallery.com/packages/PSNotes/1.0.0.0

I hope you find it useful. And as always, I'm open to any suggestions or feedback.

you are viewing a single comment's thread
view the rest of the comments
[–] podbrushkin@mander.xyz 1 points 2 weeks ago

I search history like that:

$psHistorySavePath = (Get-PSReadLineOption).HistorySavePath
(gc $psHistorySavePath -Raw) -split '(?<=[^`])\r?\n' -replace '`\r?\n',"`n" -match 'ddrescue' | scb

It puts all ddrescue commands to clipboard, which I paste into empty Kate tab. Split and replace are to handle multiline cmds