zsh-users
 help / color / mirror / code / Atom feed
From: "Michael Drzal" <mdrzal@gmail.com>
To: zsh-users@sunsite.dk
Subject: completion help
Date: Sat, 14 Apr 2007 10:08:56 -0400	[thread overview]
Message-ID: <d8079bfb0704140708s6214781bhefc58b4955c44c2a@mail.gmail.com> (raw)

I apologize in advance if this question has been asked before and
answered, but I spent the last couple of days searching the web and
reading docs, and I came up empty handed.

I love the zsh completion system, but I'm having a little trouble
trying to figure out how to setup a specific completion.  I work in an
environment where hosts have DNS entries in multiple domains.  There
is one domain for normal host access, another domain for some form of
inband access (think DRAC on dells or SP/SC on sun hosts), and a third
for out of band access (serial console).  I would like to be able to
complete the domain name for various commands (ssh, ping, traceroute,
...).  I would envision something like:

% ssh host<TAB>
host host.regular host.inband host.outofband

I realize that I could enumerate all of the possible hosts with the
hosts style, but this seems like overkill.  Is there some way that I
could do something like:

zstyle context domains domain1 domain2 domain3 ...

and get the effect that I'm looking for?

  Mike


             reply	other threads:[~2007-04-14 14:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-14 14:08 Michael Drzal [this message]
2007-04-15 18:57 ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
2004-02-14 20:09 Dwight Shih
2004-02-14 23:31 ` Eric Mangold

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=d8079bfb0704140708s6214781bhefc58b4955c44c2a@mail.gmail.com \
    --to=mdrzal@gmail.com \
    --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).