Hacker News new | ask | show | jobs
by usefulcat 1193 days ago
It is very useful just be careful when switching between shells and hitting the up arrow to get the previous command, as you may get something from another shell.
1 comments

That will only happen if PROMPT_COMMAND also contains "history -c; history -r", right? "history -a" just saves it, but "history -c; history -r" clears memory history and reloads from disk.
Yes, that's correct. I overlooked that detail while reading the link on a phone, where the text is quite small.