From owner-freebsd-questions@FreeBSD.ORG Sat Jun 2 20:52:15 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4262116A562 for ; Sat, 2 Jun 2007 20:52:15 +0000 (UTC) (envelope-from parv@pair.com) Received: from mta16.adelphia.net (mta16.mail.adelphia.net [68.168.78.211]) by mx1.freebsd.org (Postfix) with ESMTP id CE17313C45A for ; Sat, 2 Jun 2007 20:52:14 +0000 (UTC) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([24.126.17.68]) by mta16.adelphia.net (InterMail vM.6.01.05.04 201-2131-123-105-20051025) with ESMTP id <20070602205214.IWGL17043.mta16.adelphia.net@default.chvlva.adelphia.net>; Sat, 2 Jun 2007 16:52:14 -0400 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id 7CEA8B6B4; Sat, 2 Jun 2007 16:52:55 -0400 (EDT) Date: Sat, 2 Jun 2007 16:52:55 -0400 From: "'Anubhav A.'" To: sac Message-ID: <20070602205255.GA2169@holestein.holy.cow> Mail-Followup-To: sac , f-q References: <2cd0a0da0706020638g48b7ac7fn946c6e3caddc0663@mail.gmail.com> <466199E5.3040005@vindaloo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: f-q Subject: Re: How to disable command prompt history? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jun 2007 20:52:15 -0000 in message , 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 --