Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: compinit prints out last functions



On Fri, 7 Sep 2007 14:27:54 -0500
"Mike Hostetler" <hostetlerm@xxxxxxxxx> wrote:
> I'm somewhat new to zsh and very new to this list.  I'm running zsh  4.3.4
> on a freshly installed Cygwin on WinXP.
> 
> Whenever I run compinit through my .zshrc file or on the command line, it
> get what seems to be the functions last autoloaded.  Completion, however, is
> not turned on after this.  Other functions work fine.

The first thing to try is "which compinit" to find out whether compinit
is set to the correct function, and if not (which is probably the case)
what it is.

Next you need to find out how compinit is being defined to what it is.
Start "zsh -x"; you'll get lots of output (if you like, use "script zsh
-x" to copy it to a file) and somewhere in there should be a reference
to how compinit is being defined.  Normally it will be something like
"autoload -U compinit".  (If the -U is missing, something funny could be
happening with aliases.)

If all that seems OK, look for the compinit in your fpath:

ls $^fpath/compinit(N)

and see what's in it.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



Messages sorted by: Reverse Date, Date, Thread, Author