Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: HiSHtory: Your shell history in context, synced, and queryable. Parent comment
#write to history file at each shell prompt
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
There are no comments on this comment yet.
#write to history file at each shell prompt
(Unless I read your comment wrong.)