Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: maintaining init files on a [t]csh influenced system



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