Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jun 2007 23:26:06 +0530
From:      sac <sac@inf.in>
To:        VeeJay <maanjee@gmail.com>
Cc:        FreeBSD-Questions <freebsd-questions@freebsd.org>
Subject:   Re: How to disable command prompt history?
Message-ID:  <e14997e00706021056h2c94e1c6je3e57acc33841066@mail.gmail.com>
In-Reply-To: <466199E5.3040005@vindaloo.com>
References:  <2cd0a0da0706020638g48b7ac7fn946c6e3caddc0663@mail.gmail.com> <466199E5.3040005@vindaloo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/2/07, Christopher Hilton <chris@vindaloo.com> wrote:
> VeeJay wrote:
> > Hello there
> >
> > Could someone would like to describe that how we can disable to show last
> > executed commands by pressing Up Arrow?
> >
>
> That would depend on which shell you are running. Can you run the
> following command and post the results here?
>
>      echo $SHELL
>

By default most of the shells like bash, zsh, ksh have history option.
But you can avoid writing the history of the current session to the
history file by unsetting the HISTFILE environment variable.
So next time when you login the history of the previous session will
not be shown.

sac.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e14997e00706021056h2c94e1c6je3e57acc33841066>