zsh-workers
 help / color / mirror / code / Atom feed
From: Adam Spiers <adam@thelonious.new.ox.ac.uk>
To: zsh workers mailing list <zsh-workers@sunsite.auc.dk>
Subject: PATCH: missing _user@host
Date: Mon, 27 Sep 1999 14:24:27 +0100	[thread overview]
Message-ID: <19990927142427.E10336@thelonious.new.ox.ac.uk> (raw)
In-Reply-To: <rsqd7v494d6.fsf@crane.jaist.ac.jp>

Tanaka Akira (akr@jaist.ac.jp) wrote:
> Hm. `_user@host' is forgotten.

Not only forgotten, but somehow vanished without trace from my
laptop.  Sorry.

Index: Completion/User/_my_accounts
===================================================================
RCS file: /usr/local/cvsroot/zsh/Completion/User/_my_accounts,v
retrieving revision 1.1
diff -u -r1.1 _my_accounts
--- Completion/User/_my_accounts	1999/09/26 13:50:52	1.1
+++ Completion/User/_my_accounts	1999/09/27 13:09:58
@@ -11,4 +11,4 @@
   accounts_users_hosts=( $my_accounts )
 fi
 
-_user@host
+_user@host "$@"
Index: Completion/User/_other_accounts
===================================================================
RCS file: /usr/local/cvsroot/zsh/Completion/User/_other_accounts,v
retrieving revision 1.2
diff -u -r1.2 _other_accounts
--- Completion/User/_other_accounts	1999/09/27 02:07:10	1.2
+++ Completion/User/_other_accounts	1999/09/27 13:22:50
@@ -11,4 +11,4 @@
   accounts_users_hosts=( $other_accounts )
 fi
 
-_user@host
+_user@host "$@"
Index: Completion/User/_user@host
===================================================================
RCS file: _user@host
diff -N _user@host
--- /dev/null	Tue May  5 21:32:27 1998
+++ _user@host	Mon Sep 27 14:21:31 1999
@@ -0,0 +1,15 @@
+#autoload
+
+local expl nm="$compstate[nmatches]"
+
+if [[ -prefix 1 *@ ]]; then
+  local user=${PREFIX/@}
+  compset -P 1 '*@'
+  _description expl "hostnames for $user"
+  _combination accounts_users_hosts users="$user" hosts "$expl[@]" "$@"
+else
+  _description expl "usernames"
+  _combination accounts_users_hosts users -S@ -q "$expl[@]" "$@"
+fi
+
+[[ nm -ne compstate[nmatches] ]]


  reply	other threads:[~1999-09-27 13:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-26 14:17 PATCH: improvement to user@host completions Adam Spiers
1999-09-26 15:02 ` Peter Stephenson
1999-09-26 16:57   ` Bart Schaefer
1999-09-26 23:28   ` Adam Spiers
1999-09-26 17:29 ` CVS and patch (again; Re: PATCH: improvement to user@host completions) Bart Schaefer
1999-09-27  7:54 ` PATCH: improvement to user@host completions Tanaka Akira
1999-09-27 13:24   ` Adam Spiers [this message]
1999-09-27 14:43     ` PATCH: missing _user@host Ollivier Robert
1999-09-27 15:58       ` Ollivier Robert
1999-09-29 18:56         ` Adam Spiers

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=19990927142427.E10336@thelonious.new.ox.ac.uk \
    --to=adam@thelonious.new.ox.ac.uk \
    --cc=adam@spiers.net \
    --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).