you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 1 year ago (2 children)

There is an option you can set in .zshrc or .bashrc which only includes lines that exit 0 (success)

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 1 year ago (1 child)

    Infuriatingly that would omit things like unit test runners from the history in case they don't pass. As a developer I tend to re-run failed commands quite often, not sure how widely that applies, though.

  • source
  • parent
  • hideshow 1 child comment