From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.mira.net.au (8.6.12/8.6.9) with SMTP id SAA24200 for ; Thu, 7 Sep 1995 18:45:19 +1000 Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA13044 (5.65c/Gatech-10.0-IDA for ); Thu, 7 Sep 1995 04:45:53 -0400 Received: by math (5.x/SMI-SVR4) id AA18720; Thu, 7 Sep 1995 04:16:02 -0400 Old-Return-Path: Resent-Date: Thu, 7 Sep 1995 01:17:20 -0700 Old-Return-Path: From: "Bart Schaefer" Message-Id: <9509070117.ZM2460@zipx1.z-code.com> Date: Thu, 7 Sep 1995 01:17:20 -0700 In-Reply-To: Dave Sainty "Re: maintaining init files on a [t]csh influenced system" (Sep 7, 5:38pm) References: <199509070538.RAA20576@circa.comp.vuw.ac.nz> Reply-To: schaefer@z-code.com X-Mailer: Z-Mail (3.2.1 15feb95) To: zsh-users@math.gatech.edu Subject: Re: maintaining init files on a [t]csh influenced system Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-Id: <"71mAH3.0.Fa4.aegJm"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/75 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Sep 7, 5:38pm, Dave Sainty wrote: } Subject: Re: maintaining init files on a [t]csh influenced system } } Barton E. Schaefer writes: } } > alias switch='cat >! /tmp/sw$$ <<\endsw ; doswitch' } } Expensive every time you log in! Yeah, it fits more in the Stupid Zsh Tricks category. You'll have noticed from my earlier message that I don't do any such thing in my own startup files. } As far as init files are concerned, how about a function doinitfiles() } that did a [[ /etc/csh.cshrc -nt $HOME/.zsh.cshrc ]]. If true, run a } conversion (autoloaded!) over /etc/csh.cshrc and save the result as } .zsh.cshrc, in either case sourcing the new file. You could start with the c2z script that comes with the zsh dist. That converter needs updating -- it was written for zsh2.3 -- but it still does most of the right things. -- Bart Schaefer Vice President, Technology schaefer@z-code.com Z-Code / NCD Software Inc. What quantity of engineers is required to rotationally reconfigure an electronically-actuated filament-enabled photon-wave generator?