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:
parent
eb86b42f30
commit
e3c5dd2dd9
10 changed files with 266 additions and 43 deletions
12
Src/init.c
12
Src/init.c
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue