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

...until you press up one too many times and enter the same command but with a typo. Again.

  • source
  • hideshow 4 child 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