Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Small correction to that "nextx" script


On Sun, Feb 24, 2002 at 11:08:26PM +1100, Jeff Waugh wrote:

> > Your comments near psgrep are the reason I don't bother adding aliases,
> > etc, to my profile. It used to annoy me when I'd jump on another box and
> > didn't have all my customisations.
> 
> One of these days I'll add the "bring all of my dotfiles over" function,
> which is just dirty at the moment. :)

Instead of writing all these little functions to do the job, why
not write a little executable which you can easily copy across to
other boxen?  While I'd love to write all my little psgrep-like
scripts as zsh functions, it's easier to admin all the scripts if
they're in separate scripts.

I rarely touch shell functions (except for scripting, of course)
or aliases.  #!/bin/sh scripts all the way.  It'll save you
trouble in the end :).


-- 
#ozone/algorithm <ozone@xxxxxxxxxxxx>          - trust.in.love.to.save