Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: finding the site-functions directory



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



Messages sorted by: Reverse Date, Date, Thread, Author