Hacker News new | ask | show | jobs
by banku_brougham 2857 days ago
How could it check that the command from bash history successfully ran? I often iterate about 10 times to get the right command, so that's 9 errors in the history.
1 comments

May be extend a bit further to check if the return value is 0? Can be accessed via `$?` in most non-Windows systems.