Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: finding the site-functions directory
- X-seq: zsh-users 8611
- From: Andrey Borzenkov <arvidjaar@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: finding the site-functions directory
- Date: Sun, 20 Mar 2005 12:48:11 +0300
- Cc: "Eric Mangold" <teratorn@xxxxxxxxxxxxx>
- In-reply-to: <opsnxi3yq56k1y1x@aspen>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <opsnxi3yq56k1y1x@aspen>
-----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