2 ms·
my .bashrc has: shopt -s histappend export HISTFILESIZE=1000000 export HISTSIZE=1000000 export HISTTIMEFORMAT="%m/%d/%Y %T " export HISTIGNORE="exec
by m463 3y ago
my .bashrc has:
shopt -s histappend
export HISTFILESIZE=1000000
export HISTSIZE=1000000
export HISTTIMEFORMAT="%m/%d/%Y %T "
export HISTIGNORE="exec env*:history*"
export HISTCONTROL="ignoreboth"
It seems my history preceeds "recorded time", because timestamps start in 2016, which is probably when I discovered HISTTIMEFORMAT. 110k commands btw
the "exec env*" is because emacs tramp uses that when remotely logging into a machine and fill the logs with junk.
The fist thing I do on any machine is to set HISTSIZE and HISTFILESIZE to large numbers. It is wonderful to refer back to how you set up a machine from scratch for instance.
How did I set up this. what did I set up. What packages did I install.
I've always kind of wanted to create some sort of "annotated history" program. The idea would be, to ask you what you are doing (maybe in a separate window to the side) so you could properly document something fiddly.