* compinit, $fpath, and recursive searching.
@ 2004-12-09 23:07 Jason Price
2004-12-10 2:27 ` Dan Nelson
0 siblings, 1 reply; 2+ messages in thread
From: Jason Price @ 2004-12-09 23:07 UTC (permalink / raw)
To: zsh-users
When I install zsh from source, if I set the $fpath to
fpath=( /usr/local/share/zsh/$ZSH_VERSION/functions )
it works right.
Now, these people who install zsh as a package tend to break the functions
into various sub directories, which is well and good, but when I try to
autoload -U compinit ; compinit
it doesn't work. Currently, this quandary is showing up in solaris 10 (I
was impressed that solaris 10 includes version 4.2.1).
Compinstall claims that the $fpath is set correctly, and adds the autoload
stuff in, but it errors out with:
./.zshrc:95: compinit: function definition file not found
What are the appropriate setting(s) when you divide up the completion
functions into directories?
Thanks for any help;
jason
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: compinit, $fpath, and recursive searching.
2004-12-09 23:07 compinit, $fpath, and recursive searching Jason Price
@ 2004-12-10 2:27 ` Dan Nelson
0 siblings, 0 replies; 2+ messages in thread
From: Dan Nelson @ 2004-12-10 2:27 UTC (permalink / raw)
To: Jason Price; +Cc: zsh-users
In the last episode (Dec 09), Jason Price said:
> When I install zsh from source, if I set the $fpath to
>
> fpath=( /usr/local/share/zsh/$ZSH_VERSION/functions )
>
> it works right.
If you had left in zsh's default fpath elements, it would have worked
better:
fpath=( $fpath /more/fpath/paths )
> What are the appropriate setting(s) when you divide up the completion
> functions into directories?
If you have subdirs inside site-functions, or some other local
directory, just use a wildcard to enumerate them ( /primary/path/**/ ) .
The default value of $fpath on my s10b72 box is:
( /usr/sfw/share/zsh/site-functions
/usr/sfw/share/zsh/4.2.1/functions/Completion
/usr/sfw/share/zsh/4.2.1/functions/Completion/AIX
/usr/sfw/share/zsh/4.2.1/functions/Completion/BSD
/usr/sfw/share/zsh/4.2.1/functions/Completion/Base
/usr/sfw/share/zsh/4.2.1/functions/Completion/Cygwin
/usr/sfw/share/zsh/4.2.1/functions/Completion/Debian
/usr/sfw/share/zsh/4.2.1/functions/Completion/Linux
/usr/sfw/share/zsh/4.2.1/functions/Completion/Mandrake
/usr/sfw/share/zsh/4.2.1/functions/Completion/Redhat
/usr/sfw/share/zsh/4.2.1/functions/Completion/Unix
/usr/sfw/share/zsh/4.2.1/functions/Completion/X
/usr/sfw/share/zsh/4.2.1/functions/Completion/Zsh
/usr/sfw/share/zsh/4.2.1/functions/MIME
/usr/sfw/share/zsh/4.2.1/functions/Misc
/usr/sfw/share/zsh/4.2.1/functions/Prompts
/usr/sfw/share/zsh/4.2.1/functions/TCP
/usr/sfw/share/zsh/4.2.1/functions/Zftp
/usr/sfw/share/zsh/4.2.1/functions/Zle )
--
Dan Nelson
dnelson@allantgroup.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-10 2:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-09 23:07 compinit, $fpath, and recursive searching Jason Price
2004-12-10 2:27 ` Dan Nelson
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).