about summary refs log tree commit diff
path: root/Completion/User
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:43:19 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:43:19 +0000
commit3dc051089213cc24a1dac02005d558f62a43e6bf (patch)
tree73bf473c37c1cef157b107a1da1b7708d007dbaf /Completion/User
parent79fdcdf332aa722372b459eb3d7ffb5981de8d5a (diff)
downloadzsh-3dc051089213cc24a1dac02005d558f62a43e6bf.tar.gz
zsh-3dc051089213cc24a1dac02005d558f62a43e6bf.tar.xz
zsh-3dc051089213cc24a1dac02005d558f62a43e6bf.zip
moved to Completion/Unix/Type/_user_at_host
Diffstat (limited to 'Completion/User')
-rw-r--r--Completion/User/_user_at_host31
1 files changed, 0 insertions, 31 deletions
diff --git a/Completion/User/_user_at_host b/Completion/User/_user_at_host
deleted file mode 100644
index b652242d3..000000000
--- a/Completion/User/_user_at_host
+++ /dev/null
@@ -1,31 +0,0 @@
-#autoload
-
-# Complete user/host combinations. Normally this looks for the style
-# `users-hosts' for the tag `accounts'. A different tag may be given
-# with `-t tag'.
-# A `-' or `--' as the first argument is ignored.
-
-local suf tag=accounts
-
-if [[ "$1" = -t?* ]]; then
-  tag="${1[3,-1]}"
-  shift
-elif [[ "$1" = -t ]]; then
-  tag="$2"
-  shift 2
-fi
-
-[[ "$1" = -(|-) ]] && shift
-
-if [[ -prefix 1 *@ ]]; then
-  local user=${PREFIX%%@*}
-
-  compset -P 1 '*@'
-
-  _wanted -C user-at hosts expl "host for $user" \
-      _combination -s '[:@]' "${tag}" users-hosts users="$user" hosts "$@" -
-else
-  compset -S '@*' || suf="@"
-  _wanted users expl "user" \
-      _combination -s '[:@]' "${tag}" users-hosts users -S "$suf" -q "$@" -
-fi