On 1/19/23 7:08 PM, Peter wrote:
Currently, in the event bash or something below it crashes, that session's command history is lost. It would be nice if bash saved it somewhere periodically, it doesn't have to be too often, let's say on every second command.
Use PROMPT_COMMAND to run `history -a' (or `history -w' if you're paranoid) with whatever granularity you choose. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/