Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jun 2007 16:52:55 -0400
From:      "'Anubhav A.'" <parv@pair.com>
To:        sac <sac@inf.in>
Cc:        f-q <freebsd-questions@freebsd.org>
Subject:   Re: How to disable command prompt history?
Message-ID:  <20070602205255.GA2169@holestein.holy.cow>
In-Reply-To: <e14997e00706021056h2c94e1c6je3e57acc33841066@mail.gmail.com>
References:  <2cd0a0da0706020638g48b7ac7fn946c6e3caddc0663@mail.gmail.com> <466199E5.3040005@vindaloo.com> <e14997e00706021056h2c94e1c6je3e57acc33841066@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
in message
<e14997e00706021056h2c94e1c6je3e57acc33841066@mail.gmail.com>, wrote
sac thusly...
>
> > VeeJay wrote:
> > >
> > > Could someone would like to describe that how we can disable
> > > to show last executed commands by pressing Up Arrow?
...
>  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.

Perhaps so, but to me it seems that OP was asking to turn off the
history recall in the current session itself.  In bash & zsh,
setting HISTSIZE may be of some value.


  - Parv

-- 




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