Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: find real path of a zsh completion function
- X-seq: zsh-users 22933
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: find real path of a zsh completion function
- Date: Thu, 12 Oct 2017 00:09:47 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=YFPtw/TpYuWVxyId7NIYfsNIppVlHcP6jxG6mimwKHg=; b=jOAmVZhbO7pL2ZyWzCLQX7lSOCa783oLfWen0OD22EO0LV+AX6LzWEfdTtxh3z8QiU Ok/MMk6T0f68Qoozb0h7JHb+4ApiP8wCIAn9OxDRu2sUX1OTcG8mosPi/0jDMln0/1Ax d8KIqSvPHZneEoHo4klSq7KjQvwUpntaexI4CHvV9JyK+ZCDmrC/pkgN9gMgsnPgPQ1t yaC9LkJf+Ilv4eWTs8MzoTay3KO4aEPIuFYjqbavsB0rR656lbrXZISXefueVevvbucW xBvZqnF+4mW8osY0/Otq5BnAVuQ5oQrb3NA+takrctdjyODQ1wYQahHulUjL3d8Z4bty ne2A==
- In-reply-to: <CAEwkUWM1q52JEOEk6NRQT1qSsAZCKLAi51fG7G2O5XuwrnzycA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <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).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author