zsh-users
 help / color / mirror / code / Atom feed
* fndir introspection, site-packages documentation
@ 2015-03-13 22:41 Roman Neuhauser
  2015-03-14  3:39 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Roman Neuhauser @ 2015-03-13 22:41 UTC (permalink / raw)
  To: zsh-users

hello,

is there a way to get at the value "fndir" ended up having in configure?
this would be useful in function packaging. i know
/usr/local/share/zsh/site-functions is always used (had to dig, it's not
documented!) but that is not going to please Linux distros, which
generally use --prefix=/usr.  i would like to be able to do something
like

  sitefndir=$(zsh -c 'print "$ZSHSITEFNDIR"')

a simple Makefile should be able to do the right thing on any operating
system or exotic configuration without user intervention (in this case).

apropos!

there's a *single* occurrence of "site-functions" in zshall(1), a passing
reference coming from the zsh/newuser description in zshmodules(1) of all
places:

       If none of the start-up files were found, the module then looks
       for the file newuser first in a sitewide directory, usually the
       parent  directory  of the site-functions directory, and if that
       is not found the module searches [...]

the configure-time fndir should be mentioned in the $fpath/$FPATH
description in zshparam(1), and this bullet from NEWS absolutely needs
to be there as well:

- The default $fpath/$FPATH is now designed always to include
  /usr/local/share/zsh/site-functions.  This directory does not need to
  exist.  Sites that set an explicit site directory can put that in
  /etc/zshenv as before.  The intention of the new path element is to
  increase the likelihood that locally added functions can be found with
  the shell running "out of the box", no matter how the shell was
  configured.

-- 
roman


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-03-16 10:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13 22:41 fndir introspection, site-packages documentation Roman Neuhauser
2015-03-14  3:39 ` Bart Schaefer
2015-03-15  2:14   ` Roman Neuhauser
2015-03-15 19:14     ` Bart Schaefer
2015-03-16  9:36       ` patches format " Daniel Shahaf
2015-03-16 10:01         ` Peter Stephenson

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).