1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 17:10:59 +01:00

21498: Add zsh/newuser module

This commit is contained in:
Peter Stephenson 2005-07-20 16:08:12 +00:00
parent eb86b42f30
commit e3c5dd2dd9
10 changed files with 266 additions and 43 deletions

View file

@ -948,8 +948,20 @@ run_init_scripts(void)
#ifdef GLOBAL_ZSHENV
source(GLOBAL_ZSHENV);
#endif
if (isset(RCS) && unset(PRIVILEGED))
{
/*
* Always attempt to load the newuser module to perform
* checks for new zsh users. Don't care if we can't load it.
*/
if (load_module_silence("zsh/newuser", 1)) {
/* Unload it immediately. */
unload_named_module("zsh/newuser", "zsh", 1);
}
sourcehome(".zshenv");
}
if (islogin) {
#ifdef GLOBAL_ZPROFILE
if (isset(RCS) && isset(GLOBALRCS))