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 PAA11423 for ; Thu, 7 Sep 1995 15:42:00 +1000 Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA11863 (5.65c/Gatech-10.0-IDA for ); Thu, 7 Sep 1995 01:42:46 -0400 Received: by math (5.x/SMI-SVR4) id AA18209; Thu, 7 Sep 1995 01:36:52 -0400 Old-Return-Path: Resent-Date: Thu, 07 Sep 1995 17:38:44 +1200 Old-Return-Path: From: Dave Sainty Message-Id: <199509070538.RAA20576@circa.comp.vuw.ac.nz> To: zsh-users@math.gatech.edu Subject: Re: maintaining init files on a [t]csh influenced system In-Reply-To: Your message of "Wed, 06 Sep 1995 12:00:41 MST." <950906120041.ZM4788@zyrcon.z-code.com> X-Face: /B9VTI#fcP.}X/h^;-~C,RyvcjB8gD' s!52iF{}"OR9bmoP Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/74 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Barton E. Schaefer writes: > > alias switch='cat >! /tmp/sw$$ <<\endsw ; doswitch' > > And finishes up with a doswitch() function that reads the temporary file > and looks for the case ... breaksw block matching the function params. Expensive every time you log in! 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. It's gotta be useful for people running zsh on un-zsh-savvy systems! So, who wants to write it? D.