mcfly icon indicating copy to clipboard operation
mcfly copied to clipboard

change other bash history env?

Open utdrmac opened this issue 5 years ago • 1 comments

This has been in my .bashrc for many years:

export HISTSIZE=100000
export HISTTIMEFORMAT=': %Y-%m-%d_%H:%M:%S; '
export HISTIGNORE="&:ls:ll:[bf]g:w:who:exit:history"
export HISTCONTROL="ignoreboth"

I'm looking at swapping in mcfly. Do I need to modify these in any way? Does mcfly's database honor HISTSIZE or does it store/remember forever?

utdrmac avatar Sep 30 '19 20:09 utdrmac

Good question about HISTSIZE. I don't think McFly currently honors it. I believe .bash_history will currently grow unbounded as McFly writes to it, as will the database. That would be a nice improvement. (McFly only writes to .bash_history for backwards compatibility-- it works from it's sqlite database.)

HISTTIMEFORMAT other than UNIX epoch is not currently supported.

cantino avatar Oct 01 '19 03:10 cantino