From: Rik <rik@pkl.net>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: zsh-users@sunsite.dk
Subject: Re: Can someone help me convert compctl to zstyle, please.
Date: Tue, 5 Feb 2002 10:38:02 +0000 [thread overview]
Message-ID: <20020205103802.GA3602@spoon.pkl.net> (raw)
In-Reply-To: <20020205100209.37738.qmail@web9305.mail.yahoo.com>
On Tue, Feb 05, 2002 at 10:02:09AM +0000, Oliver Kiddle wrote:
> Have you at least run compinit? (You need autoload -U compinit;compinit
> in your .zshrc or run compinstall similarly from the command line).
Yes, I had.
> There is already a pre-written completion for sysctl so this should
I haven't got anything in my /usr/local/share/zsh/4.0.2/functions with
sysctl mentioned in it. I'll update to 4.0.4.
> already work. If it didn't, you could do:
>
> _sysctl {
> compadd $(sysctl -AN ${1%.*})
> }
> compdef _sysctl sysctl
Sorry for the incredibly dumb-sounding question, but *where* would I do
that? I tested this it on the command line and in my ~/.zprofile, and
zsh sulked. If I changed the first line to "_sysctl () {" (tested on the
command line only, not that that should make a difference), then it
accepts it happily, but fails when I try to use it.
> Here you need something like:
> zstyle ':completion:*:*:(ssh|scp):*:my-accounts' users-hosts \
> root@mail.mynetwork.com root@www.mynetwork.com
Hm. Not quite the same as I had before, but close enough. I had got used
to a single tab though. Hrm. Is there a way to remove the /etc/hosts
from the lists of hostnames to try. I'm guessing it's something to do
with the tag-order thing, but, uhm, again, it appears not to like me.
> Peter has written a user-guide which has a good chapter on the new
> completion system. You might find it easier than the manual. It is
> available at http://zsh.sunsite.dk/Guide/zshguide.html
Alas I was reading that yesterday too. I think I'm missing something
fundamental. When I work out what that is, I'm sure it will all make
sense.
--
PGP Key: D2729A3F - Keyserver: wwwkeys.uk.pgp.net - rich at rdrose dot org
Key fingerprint = 5EB1 4C63 9FAD D87B 854C 3DED 1408 ED77 D272 9A3F
Public key also encoded with outguess on http://rikrose.net
next prev parent reply other threads:[~2002-02-05 10:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-05 3:18 Rik
2002-02-05 10:02 ` Oliver Kiddle
2002-02-05 10:38 ` Rik [this message]
2002-02-05 11:26 ` Oliver Kiddle
2002-02-05 15:12 ` Rik
2002-02-12 17:07 ` Reading .zprofile (Re: Can someone help me convert ...) Bart Schaefer
2002-02-12 21:25 ` Craig Van Tassle
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=20020205103802.GA3602@spoon.pkl.net \
--to=rik@pkl.net \
--cc=okiddle@yahoo.co.uk \
--cc=zsh-users@sunsite.dk \
/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).