From: Andrey Borzenkov <arvidjaar@newmail.ru>
To: zsh-users@sunsite.dk
Cc: "Eric Mangold" <teratorn@world-net.net>
Subject: Re: finding the site-functions directory
Date: Sun, 20 Mar 2005 12:48:11 +0300 [thread overview]
Message-ID: <200503201248.12038.arvidjaar@newmail.ru> (raw)
In-Reply-To: <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-----
prev parent reply other threads:[~2005-03-20 9:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-20 9:25 Eric Mangold
2005-03-20 9:48 ` Andrey Borzenkov [this message]
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=200503201248.12038.arvidjaar@newmail.ru \
--to=arvidjaar@newmail.ru \
--cc=teratorn@world-net.net \
--cc=zsh-users@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).