zsh-workers
 help / color / mirror / code / Atom feed
From: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
To: zsh-workers@zsh.org
Subject: The default $fpath
Date: Sat, 06 Sep 2014 15:00:51 +0300	[thread overview]
Message-ID: <540AF773.5080407@linux.intel.com> (raw)

Hello,

I have a complaint about the default $fpath contents.

Let's assume that I write a program, let's call it "Foo". I want to 
support Zsh completion for Foo, so I write a shell completion script. By 
default, if someone builds Foo from source, Foo should be installed 
under prefix /usr/local. Distributions will install Foo under prefix /usr.

Regardless of whether Foo is installed under /usr or /usr/local, I want 
the Zsh completion to Just Work. I think it should not matter whether 
the Zsh completion is installed under /usr/share/zsh/site-functions or 
/usr/local/share/zsh/site-functions, the completion script should be 
picked up by Zsh either way.

On some distributions this appears to work, but not all. At least 
Fedora's Zsh doesn't include /usr/local/share/zsh/site-functions in the 
default $fpath. This doesn't seem to be Fedora's fault. As far as I can 
see, Zsh upstream doesn't include /usr/local/share/zsh/site-functions in 
$fpath if the install prefix is /usr.

Would a patch be accepted that adds /usr/local/share/zsh/site-functions 
to $fpath always, no matter what the install prefix is?

-- 
Tanu


             reply	other threads:[~2014-09-06 12:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-06 12:00 Tanu Kaskinen [this message]
2014-09-06 16:06 ` Frank Terbeck
2014-09-06 18:45 ` Peter Stephenson
2014-09-06 19:10   ` Frank Terbeck
2014-09-06 23:04     ` Peter Stephenson
2014-09-07  3:44       ` Bart Schaefer
2014-09-07 18:31         ` Peter Stephenson
2014-09-07 19:37           ` Vin Shelton
2014-09-07 19:53             ` Tanu Kaskinen
2014-09-07 20:40               ` Peter Stephenson
2014-09-07 21:01                 ` Bart Schaefer
2014-09-08 10:23                   ` Peter Stephenson
2014-09-08 11:16                     ` Frank Terbeck
2014-09-20 19:04                       ` Peter Stephenson
2014-09-20 19:36                         ` Peter Stephenson
2014-09-20 20:00                           ` Peter Stephenson

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=540AF773.5080407@linux.intel.com \
    --to=tanu.kaskinen@linux.intel.com \
    --cc=zsh-workers@zsh.org \
    /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).