zsh-users
 help / color / mirror / code / Atom feed
* finding the site-functions directory
@ 2005-03-20  9:25 Eric Mangold
  2005-03-20  9:48 ` Andrey Borzenkov
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Mangold @ 2005-03-20  9:25 UTC (permalink / raw)
  To: zsh-users

Hi all,

Could anyone tell me the right way to programatically
find the system-wide "site-functions" directory?

Thanks,
-Eric


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

* Re: finding the site-functions directory
  2005-03-20  9:25 finding the site-functions directory Eric Mangold
@ 2005-03-20  9:48 ` Andrey Borzenkov
  0 siblings, 0 replies; 2+ messages in thread
From: Andrey Borzenkov @ 2005-03-20  9:48 UTC (permalink / raw)
  To: zsh-users; +Cc: Eric Mangold

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 20 March 2005 12:25, Eric Mangold wrote:
> Hi all,
>
> Could anyone tell me the right way to programatically
> find the system-wide "site-functions" directory?
>

brute force way would be

{pts/2}% echo ${(M)fpath:#/*/site-functions}
/usr/share/zsh/site-functions

To avoid side-effects of shell rc scripts it even could be

{pts/2}% zsh -f -c 'echo ${(M)fpath:#/*/site-functions}'
/usr/share/zsh/site-functions

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCPUbbR6LMutpd94wRArO5AKCRYKMgSPFSgFrJ2Adnxtw94UNLcgCfQyj0
95NgzRw/aEBzo4TpCINtGHY=
=3FsN
-----END PGP SIGNATURE-----


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

end of thread, other threads:[~2005-03-20  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-20  9:25 finding the site-functions directory Eric Mangold
2005-03-20  9:48 ` Andrey Borzenkov

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