3 ms·
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 shel
by usefulcat 4y 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.
- mkl 4y agoThat 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.
- usefulcat 4y agoYes, that's correct. I overlooked that detail while reading the link on a phone, where the text is quite small.