Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0
On 7/22/21 7:56 AM, Budi wrote:
How can we have Bash save history per CL, i.e. any time a complete CL
is ended by Enter key, i.e. \n char. and immediately interpreted. Not
save only after exit shell session
The general approach is some combination of PROMPT_COMMAND and `history -a'
to append new history entries to the history file.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/