I consistently have more than one terminal open. Anywhere from two to ten, doing various bits and bobs. Now let's say I restart and open up another set of terminals. Some remember certain things, some forget.
I want a history that:
- Remembers everything from every terminal
- Is instantly accessible from every terminal (eg if I
ls
in one, switch to another already-running terminal and then press up,ls
shows up) - Doesn't forget command if there are spaces at the front of the command.
Anything I can do to make bash work more like that?
Best Answer
Add the following to your
~/.bashrc
: