Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
find real path of a zsh completion function
- X-seq: zsh-users 22926
- From: Filipe Silva <filipe.silva@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: find real path of a zsh completion function
- Date: Wed, 11 Oct 2017 07:09:57 -0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YPpUpeDkdHCzdl/y7VkVuoUjbiCndGOcJXVrCF5WVsg=; b=kpVVzwFl6K3ZaAFjR19qk8wSJQ95iDekaGzW2r/dnUAbsaB8Z70/TMJLk8sIYcEfHd +QfI1C7PLGvqtH8hEqRSbfOwfHYF8PSSgDvsYvVEjXTonbW9GAwEYETgJJgvqnQa9B4y LiZDzh5nlTgDTdNoKCNGoCDQKT6TN+fm8YcaXae5OZ5BEo7qCwf2GoYIl+T/ZwEpVpNx 8T5YVuxHzsv3vWClRz80Pw9MH6IiZK0l0owCoxjrxj7vNN4JZ3MIykzsogpXR/LHpztv mLiI1lfw52YnjEbmTh+/4wLGSqFkuyqqdplFunWSMIMHgQK3eA5+DzcDslA4yEciaWef 255g==
- 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
Hi. I'm trying to write a custom completion function for golang's go
command line, since none that works is available.
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
}
where is this file coming from? I've already searched through all of my
$fpath dirs.
I've tried:
readlink -f _go
realpath _go
which _go
none of those give me the exact path of this dangling file.
thanks in advance for any help
Messages sorted by:
Reverse Date,
Date,
Thread,
Author