3 ms·
Yeah, I have this as well: export HISTSIZE=65535 # why not? export HISTFILESIZE=65535 export HISTCONTROL=ignoredups but now I'm wondering if I should
by michaelhoffman 11y ago
Yeah, I have this as well:
export HISTSIZE=65535 # why not?
export HISTFILESIZE=65535
export HISTCONTROL=ignoredups
but now I'm wondering if I should unset `HISTFILESIZE` insteead.
- myhf 11y agoIt can also be nice to use HISTCONTROL=ignorespace If you're planning on keeping a lot of history, ignorespace makes it easy to avoid inserting commands with sensitive info. A well-placed $(cat) can work too. $ PASSWORD=hunter2 # sensitive info doesn't go into history $ curl -O http://name:$PASSWORD@server/path # command with correct syntax does go into history