PSReadLine
PSReadLine copied to clipboard
Limit history to successful commands
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?)