Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: maintaining init files on a [t]csh influenced system
- X-seq: zsh-users 74
- From: Dave Sainty <David.Sainty@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: maintaining init files on a [t]csh influenced system
- Date: Thu, 07 Sep 1995 17:38:44 +1200
- In-reply-to: Your message of "Wed, 06 Sep 1995 12:00:41 MST." <950906120041.ZM4788@xxxxxxxxxxxxxxxxx>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author