From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FGZE1-00012d-Rc for garchives@archives.gentoo.org; Tue, 07 Mar 2006 10:15:30 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k27AEOvj030901; Tue, 7 Mar 2006 10:14:24 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k27AALCS024442 for ; Tue, 7 Mar 2006 10:10:22 GMT Received: by zproxy.gmail.com with SMTP id o37so1493087nzf for ; Tue, 07 Mar 2006 02:10:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sx/36koMAgyRiznSCE2c63Dbln/x0f/SMp0wFtiRD/rheEwOodOUvE+nArpQpmoEjNVV4OHTFISNFLgf+kLuNgLHC4wdPA7VlIDcDP5RIxFKYvtmyEN1eKT8DyWPwFCPzVM6FTuLH4SQljPxG9oGAzD4OVh1Kmbet+aQJw2f74o= Received: by 10.65.84.5 with SMTP id m5mr138523qbl; Tue, 07 Mar 2006 02:10:20 -0800 (PST) Received: by 10.65.224.19 with HTTP; Tue, 7 Mar 2006 02:10:20 -0800 (PST) Message-ID: Date: Tue, 7 Mar 2006 11:10:20 +0100 From: "Matteo Lanza" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] bash_history In-Reply-To: <1141691942.11274.19.camel@parker.babysnakes.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: <000e01c6417c$7804abc0$2274fea9@compaqdu367a> <1141691942.11274.19.camel@parker.babysnakes.org> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k27AALCS024442 X-Archives-Salt: 708cc2e7-f4f0-4c83-86bb-a8bee3dcbadb X-Archives-Hash: 49964781cb24bca8d4c79ffc2bf29183 On 3/7/06, Haim Ashkenazi wrote: > when you press reboot the shell process dies, so it doesn't save the > history. if you want to save history you have to exit the shell and then > login and enter reboot, or press ctrl+alt+del. What about putting the following: trap "history -w" EXIT in ~/.bash_profile or /etc/profile? This way the current history is flushed when the shell exits. My 2c -- Matteo Lanza matteo.lanza@gmail.com -- gentoo-user@gentoo.org mailing list