Is there a way to increase the default amount of history reverse-i-search
(CTRL+R) keeps? In Ubuntu 16.04, it doesn't seem to have a very long "memory", sometimes even commands from yesterday are already gone from its history, ie. will not appear even after cycling through all entries with repeated CTRL+R.
I'm using Terminator as the console.
the file is only written when you exit a terminal.
Ah, I think that explains it. I generally leave it "running" with the host OS (virtualbox) in hibernation. In my.bashrc
there was HISTSIZE=1000 and HISTFILESIZE=2000 from some team template. – Juha Untinen Feb 14 '18 at 09:48history -a
writes it "on demand", if you need it – Robert Riedl Feb 14 '18 at 09:51PROMPT_COMMAND="history -a"
in the.bashrc
described here. Although I'm not sure I can recommend that... what I would recommend is setting aHISTTIMEFORMAT
like thisexport HISTTIMEFORMAT='[%Y.%m.%d %H:%M:%S] '
so you see exactly when you executed the command – Robert Riedl Feb 14 '18 at 09:56