From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8484 invoked from network); 15 Mar 2006 18:22:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 Mar 2006 18:22:31 -0000 Received: (qmail 99680 invoked from network); 15 Mar 2006 18:22:22 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Mar 2006 18:22:22 -0000 Received: (qmail 12247 invoked by alias); 15 Mar 2006 18:22:09 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10026 Received: (qmail 12238 invoked from network); 15 Mar 2006 18:22:07 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 Mar 2006 18:22:07 -0000 Received: (qmail 98148 invoked from network); 15 Mar 2006 18:22:07 -0000 Received: from parhelion.firedrake.org (193.201.200.77) by a.mx.sunsite.dk with SMTP; 15 Mar 2006 18:22:07 -0000 Received: from phil by parhelion.firedrake.org with local (Exim 4.50 #1 (Debian)) id 1FJadK-000615-Km for ; Wed, 15 Mar 2006 18:22:06 +0000 Date: Wed, 15 Mar 2006 19:22:06 +0100 From: Phil Pennock To: zsh-users@sunsite.dk Subject: Re: zsh startup files Message-ID: <20060315182206.GA22553@parhelion.globnix.org> Mail-Followup-To: zsh-users@sunsite.dk References: <20060314195023.GE9875@dot.blorf.net> <060314184352.ZM19392@torch.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <060314184352.ZM19392@torch.brasslantern.com> Sender: Phil Pennock On 2006-03-14 at 18:43 -0800, Bart Schaefer wrote: > Back when I was using timeshared computers a lot, I had a .zlogout that > cleared the screen and any scrollback buffers, but I removed that a long > time ago; I haven't thought of any other good use for it. Machine-rooms in third-party hosting facilities, when you've been in logged in on a real virtual console. I should probably get around to making it more portable to different TTY naming schemes, but the very simple method works for me: [[ $SHLVL -eq 1 && $TTY == /dev/ttyv* ]] && clear