Re: why does the shell show commands foolishly when I press UP key?
On Wed, 14 Nov 2007 11:09:35 +0100, Misko wrote:
> On Mon, Nov 12, 2007 at 10:49:49PM -0800, cls@truffula.sj.ca.us wrote:
>>
>> > I often use UP key to get commands entered previously. The shell show some commands again and
>> > again, just because I have used them several times. Can the shell be more smart?
>
> Put this line into .bashrc:
>
> export HISTCONTROL=ignoredups
Mine is
export HISTCONTROL=ignoreboth
Even more cleaner.
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
Reply to: