[Techtalk] duplicate bash history entries
Carla Schroder
carla at bratgrrl.com
Sun Sep 12 19:32:12 EST 2004
On Sunday 12 September 2004 8:11 am, aec wrote:
> Hi,
> I have my ~/.bash_profile set to source ~/.bashrc ; inside bashrc,
> I have the line :
>
> export HISTCONTROL=ignoredups
>
> yet my history file is full of duplicate commands,
> is there something else i need to do to have only
> unique commands stored in my history file?
>
> This is is on Debian Sid.
>
Is this a recent modification? It won't do anything about the existing lines
in your history file, only the new ones after you added 'export
HISTCONTROL=ignoredups' to your bashrc.
Also, does ~/.bash_profile reference your ~/.bashrc? It should have these
lines:
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Carla Schroder
this message brought to you
by Libranet 2.8 and Kmail
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the Techtalk
mailing list