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

Re: PATCH: Re: Implementation of simple newuser module (how to start?)



On Jul 20,  7:04pm, Peter Stephenson wrote:
} Subject: Re: PATCH: Re: Implementation of simple newuser module (how to st
}
} Here's a basic newuser script to be installed and the outline of the
} function that will be doing the work.
} 
} +# zsh script sourced at startup when a user is found to have
} +# no startup files.  See the documentation for the zsh/newuser
} +# module in zshmodules(1).
} +
} +autoload -U zsh-install-newuser
} +zsh-install-newuser

I suggest that instead this be:

 autoload -U +X zsh-install-newuser && zsh-install-newuser

That is, don't execute the function if it can't be autoloaded, and don't
redefine it if it is already defined.



Messages sorted by: Reverse Date, Date, Thread, Author