4 ms·
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 co
by otras 8y ago
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 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.