zsh-workers
 help / color / mirror / code / Atom feed
From: "Kiddle, Oliver" <KiddleO@logica.com>
To: "'zsh-workers@sunsite.auc.dk'" <zsh-workers@sunsite.auc.dk>
Subject: Hosts completion
Date: Fri, 18 Jun 1999 19:05:48 +0100	[thread overview]
Message-ID: <4FBF540FF16FD1119D9600A0C94B2B51F29E94@napier.logica.co.uk> (raw)

Following is a replacement for the hosts completion. I've added an initial
line which attempts to set $hosts if it isn't already and I've added
matching control: host names are not case-sensitive so should be treated as
such and it's useful if '.' is treated as special like '/' in path names.
I've also added telnet and xhost to the list of commands to work on.
Host names isn't the perfect completion for them but they haven't got a
better completion yet.

Oliver Kiddle

#compdef ftp ncftp ping rwho rup xping traceroute nslookup telnet xhost

: ${(A)hosts:=${${(s: :)${(ps:\t:)${${(f)"$(</etc/hosts)"}%%\#*}##[\t ]#[^\t
]#}}}}

compgen -M 'm:{a-zA-Z}={A-Za-z} r:|.=* r:|=*' -k hosts


                 reply	other threads:[~1999-06-18 18:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4FBF540FF16FD1119D9600A0C94B2B51F29E94@napier.logica.co.uk \
    --to=kiddleo@logica.com \
    --cc=zsh-workers@sunsite.auc.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).