PSReadLine icon indicating copy to clipboard operation
PSReadLine copied to clipboard

Limit history to successful commands

Open fflaten opened this issue 1 year ago • 0 comments

Prerequisites

  • [X] Write a descriptive title.

Description of the new feature/enhancement

Can PSReadLine ignore commands that failed? It's mostly noise and bad suggestions for the predictor.

The predictor has been bullying me with a typo (build.ps1 instead of .\build.ps1) for a few weeks now until I manually edited my history file. 😆

Proposed technical implementation details (optional)

Check $? before committing to history? Will need to reset $? to original value after checking, similar to VSCode shell integration (possible conflict?)

fflaten avatar Jul 08 '24 21:07 fflaten