zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Good, easy to use, upstream defaults for zsh (i.e. improving usability)
Date: Fri, 15 Jul 2005 00:54:24 +0000	[thread overview]
Message-ID: <1050715005424.ZM28706@candle.brasslantern.com> (raw)
In-Reply-To: <200507141743.j6EHhxep028667@news01.csr.com>

On Jul 14,  6:43pm, Peter Stephenson wrote:
}
} Bart Schaefer wrote:
} > Here's something that occurred to me:
} > 
} > During startup, if none of the ${ZDOTDIR:-$HOME}/.z* files are found,
} > zsh looks for (but does not complain if it does not find) a "new user"
} > module, e.g. zsh/newuser, and loads it.
} > 
} > (Or the module could be loaded unconditionally, and the test for whether
} > the .z* files exist could be part of the module bootup.)
} 
} The second alternative is more natural from the point of view of
} modularity, although a little less efficient.  Presumably we could
} safely attempt to unload the module immediately.

Agreed on both counts.

} > We could provide a default implementation of zsh/newuser that looks
} > for files in /usr/share/zsh/$VERSION

On further thought, probably the right thing is for the module to look
for a *single* file, and either simply source it, or autoload it and
then call a specified function that it is expected to define.  Anything
else we might want to do can then be programmed in shell language,
within that file or function.

(I think the test for existence of the .z* files should remain within
the C code, though.)

} One thing that occurs to me is that we need to make it easy for admins
} to override the defaults.  Hence I think it should look in, say,
} <install-path>/newuser/ and <install-path>/$VERSION/newuser/, probably
} in that order

This would be fine, though perhaps <install-path>/site-functions/ is a
better spot to look first if it were a single autoloadable file.  There
may be valid reasons to make this something that can be manually loaded/
called, as with compinstall.


  reply	other threads:[~2005-07-15  0:54 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-10 22:37 Keir Mierle
2005-07-10 22:59 ` Mike Hernandez
2005-07-10 23:22   ` Keir Mierle
2005-07-11 15:44     ` Nikolai Weibull
2005-07-11 15:54       ` Travis Spencer
2005-07-11 16:24         ` Nikolai Weibull
2005-07-11 16:35           ` Keir Mierle
2005-07-11 16:13       ` Keir Mierle
2005-07-11 17:02         ` Nikolai Weibull
2005-07-13  5:44           ` Keir Mierle
2005-07-13  9:23             ` Nikolai Weibull
2005-07-14 12:03     ` Peter Stephenson
2005-07-14 15:06       ` Bart Schaefer
2005-07-14 17:43         ` Peter Stephenson
2005-07-15  0:54           ` Bart Schaefer [this message]
2005-07-15  8:58           ` Oliver Kiddle
2005-07-15  9:46             ` Peter Stephenson
2005-07-11  2:58 ` Dan Nelson
2005-07-11 15:45   ` Nikolai Weibull
2005-07-11 15:51     ` Dan Nelson
2005-07-11 15:23 ` Travis Spencer
2005-07-11 15:44   ` Stephen Rueger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1050715005424.ZM28706@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).