Skip to content

PSAliasFinder 2.0.0

Choose a tag to compare

@backmind backmind released this 24 Apr 20:16
· 1 commit to main since this release

Full rewrite as a binary module on top of PowerShell 7.4's native IFeedbackProvider subsystem. Alias suggestions now render in the engine's [Feedback] block and follow $PSStyle.Formatting.Feedback* theming — no more PSReadLine Enter-key hook, no more Write-Host.

Demo

Install

Install-Module PSAliasFinder -Scope CurrentUser
Import-Module  PSAliasFinder

Available on the PowerShell Gallery.

Breaking changes

  • Minimum PowerShell raised from 5.1 to 7.4. On 7.4 / 7.5 both PSFeedbackProvider and PSSubsystemPluginModel experimental features must be enabled (both graduated to mainstream in 7.6-preview.6, so nothing is needed on 7.6+). 5.1 and 7.0–7.3 users should stay on 1.0.0: Install-Module PSAliasFinder -RequiredVersion 1.0.0.
  • Set-AliasFinderHook and Test-CommandAlias removed. No shims.
  • \$global:PSAliasFinderConfig no longer consulted. Configuration is persisted per-user at \$env:APPDATA\PSAliasFinder\config.json on Windows or ~/.config/PSAliasFinder/config.json on Linux/macOS.

New

  • Get-AliasFinderConfig / Set-AliasFinderConfig with -Enabled, -MinCommandLength, -MaxPipes, -MaxArguments, -MinCharsSaved, -CooldownSeconds, -MaxSuggestions, ignore list, -Reset, -PassThru. Changes apply without reimporting.
  • Per-command cooldown (default 30 min), ignore list, tunable top-N via MaxSuggestions (default 1).
  • PSALIASFINDER_CONFIG_DIR env override for portable installs and CI.

See the README for full details.