cli icon indicating copy to clipboard operation
cli copied to clipboard

Option to store only successful commands in history?

Open pkbehera opened this issue 11 months ago • 3 comments

I see that the history is storing all command in it, known, unknown and the ones that return errors.

Is there an option to store only the commands that run successfully?

pkbehera avatar Mar 16 '24 12:03 pkbehera

This design decision mirrors the behavior of tools like the bash shell, which keeps a history of commands. This can be helpful for situations like accidentally misspelling a command, where you can easily recall it, correct it, and resend it.

Unfortunately, there isn't currently an option to disable this history feature.

daniele77 avatar Mar 26 '24 08:03 daniele77

In bash shell any command starting with whitespaces does not go into the history; is the same supported here?

Also, in bash shell there is option to store only unique commands in the history; is that possible here too?

pkbehera avatar Mar 27 '24 19:03 pkbehera

While not yet supported, these features are something we're considering for future development. Our development roadmap is heavily influenced by user feedback. You can upvote feature requests, and your input directly impacts what we prioritize. Additionally, donations can help us accelerate development efforts.

daniele77 avatar Apr 03 '24 17:04 daniele77