On Sun, Apr 18, 2021 at 04:12:10PM -0700, Ananth Chellappa wrote: > Sincerely appreciate your time. Far as I understand, there is no > way to accomplish what I want - concisely : *get a true private mode* (no > logging to HISTFILE *OR* recall with history command after exiting > private-mode (toggle of history using set -/+ o) *without sacrificing > productivity*. That is, when you are *in private mode, you DO WANT recall > with !number and arrow keys.
bash --rcfile <(echo source ~/.bashrc; echo unset HISTFILE)