Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
trouble trying to understand zsh's completion system
- X-seq: zsh-users 22927
- From: Filipe Silva <filipe.silva@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: trouble trying to understand zsh's completion system
- Date: Wed, 11 Oct 2017 07:37:13 -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=r03HZd3QJKktjRCM+Q1EKMzDRjPaH5SKxh7y8PDrtOE=; b=nyPasrPGr+jNvN0o+koL/CEDFq1zdSU4IjPAtQqqqdPV4eG40RRX1qBe8RioUJeAjH OvRI3qJJAg75I60V5wpnCaBzh0M9f5Xo2W288tSDbb6HYZyes1/UUwn2xJdbaSid+hUj ZFyrdhSXH9DhtnDU9XluNZ/3Vz8wVglTg6IcH4Sa+njWcKuWkGgnkc8hxXLybuJ0F88c J+42iLa6nHYXxoXV5uOCMFcbSuh/cewWpGDXgHvQEV+IaHjRsraPqB+56n/1dN2UtccI 1gWW5Aceh0FYhNBfxYy4QFKiPNkZmP8YYMdTZW4bpD6vFQ2MpEdyz8PVoxuPJnQYfFMz IABQ==
- 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
So I saved this file as _gocomp in a directory:
#compdef go
local -a options
options=('run:description for run' 'build:description for build')
_describe 'values' options
after $ fpath=($(readlink -f .) $fpath) and autload -U _gocomp, I try to
type go [TAB]. zsh greets me with `go _gocomp`.
What am I doing wrong?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author