Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: missing _user@host
- X-seq: zsh-workers 8065
- From: Adam Spiers <adam@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxx>
- Subject: PATCH: missing _user@host
- Date: Mon, 27 Sep 1999 14:24:27 +0100
- In-reply-to: <rsqd7v494d6.fsf@xxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990926151723.F1246@xxxxxxxxxxxxxxxxxxxxxxx> <rsqd7v494d6.fsf@xxxxxxxxxxxxxxxxx>
- Reply-to: Adam Spiers <adam@xxxxxxxxxx>
Tanaka Akira (akr@xxxxxxxxxxx) 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] ]]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author