Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
banku_brougham
· 8y ago · 0 comments
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.
Comments
[–]
Sreyanth
8y ago
May be extend a bit further to check if the return value is 0? Can be accessed via `$?` in most non-Windows systems.