zsh-workers
 help / color / mirror / code / Atom feed
* The default $fpath
@ 2014-09-06 12:00 Tanu Kaskinen
  2014-09-06 16:06 ` Frank Terbeck
  2014-09-06 18:45 ` Peter Stephenson
  0 siblings, 2 replies; 16+ messages in thread
From: Tanu Kaskinen @ 2014-09-06 12:00 UTC (permalink / raw)
  To: zsh-workers

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


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

end of thread, other threads:[~2014-09-20 20:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-06 12:00 The default $fpath Tanu Kaskinen
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

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