News for hackers. Stuff that matters.
Re:How to determine which commands failed/succeeded in your ... by otras on Thursday December 06, 2018 @10:35AM (#18618845)
You may be interested in this HN comment from roughly a year ago, in which a user created a playful bash prompt script that displays the number of successful commands run in a row: https://news.ycombinator.com/item?id=15563117. Sample prompt:

  [0] /home/bar/g3 14:19 $ echo "boo"
  boo

  [1] /home/bar/g3 14:19 $
With this as an example ($LAST_STATUS in particular) it seems like writing a custom bash_history program would be very possible.

There are no comments on this comment yet.