by lolive · 4y ago · 0 comments
[Q: can this tool help? As far as in understand, it seems that YEEEES!!!]
#write to history file at each shell prompt
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
(Unless I read your comment wrong.)