zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: find real path of a zsh completion function
Date: Thu, 12 Oct 2017 00:09:47 -0700	[thread overview]
Message-ID: <171012000947.ZM6460@torch.brasslantern.com> (raw)
In-Reply-To: <CAEwkUWM1q52JEOEk6NRQT1qSsAZCKLAi51fG7G2O5XuwrnzycA@mail.gmail.com>

On Oct 11,  7:09am, Filipe Silva wrote:
} 
} First thing I notice is that zsh already ships with a `_go` completion
} function (which does not complete the go command) which is installed to
} /usr/share/zsh/functions or something. so I rename that file.
} 
} now if I write `$ which _go` there is still a _go file somewhere:
} 
} _go () {
} # undefined
} builtin autoload -XUz
} }

Did you restart the shell before doing "which _go"?  Removing a file
does not remove the autoload definition for it.

Try:

    autoload +X _go

If that gives an error, there is no such file.  If it succeeds, then:

    whence -v _go

will tell you the file from which it was loaded (in recent versions of
zsh, anyway).


      parent reply	other threads:[~2017-10-12  7:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20171011101129epcas3p38e04cd35c940d032ee7ededbadb5914b@epcas3p3.samsung.com>
2017-10-11 10:09 ` Filipe Silva
2017-10-11 10:26   ` Eric Cook
2017-10-11 10:56   ` Peter Stephenson
2017-10-12  7:09   ` Bart Schaefer [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=171012000947.ZM6460@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@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).