Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Curate Your Shell History. Parent comment
Write commands to history files before running the commands instead of after the commands finish:
trap 'history -a' DEBUG
trap "history -a ; $(trap -p DEBUG | cut -d "'" -f 2)" DEBUG
There are no comments on this comment yet.
Write commands to history files before running the commands instead of after the commands finish:
Or if you already have a DEBUG trap: