Limit history to successful commands #4065
Labels
Issue-Enhancement
It's a feature request.
Needs-Triage 🔍
It's a new issue that core contributor team needs to triage.
Prerequisites
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?)The text was updated successfully, but these errors were encountered: