summaryrefslogtreecommitdiffstats
path: root/Completion/User/_ssh
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-11-22 12:29:47 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-11-22 12:29:47 +0000
commit3d9d13e918c195f974ff7b2f1dc5b65f6b20a441 (patch)
treed571aef9c8152287ed94dae1199108de80f0b984 /Completion/User/_ssh
parentzsh-workers/8718 (diff)
downloadzsh-3d9d13e918c195f974ff7b2f1dc5b65f6b20a441.tar
zsh-3d9d13e918c195f974ff7b2f1dc5b65f6b20a441.tar.gz
zsh-3d9d13e918c195f974ff7b2f1dc5b65f6b20a441.tar.bz2
zsh-3d9d13e918c195f974ff7b2f1dc5b65f6b20a441.tar.lz
zsh-3d9d13e918c195f974ff7b2f1dc5b65f6b20a441.tar.xz
zsh-3d9d13e918c195f974ff7b2f1dc5b65f6b20a441.tar.zst
zsh-3d9d13e918c195f974ff7b2f1dc5b65f6b20a441.zip
zsh-workers/8720
Diffstat (limited to 'Completion/User/_ssh')
-rw-r--r--Completion/User/_ssh16
1 files changed, 3 insertions, 13 deletions
diff --git a/Completion/User/_ssh b/Completion/User/_ssh
index e7c6d37f6..4318caf96 100644
--- a/Completion/User/_ssh
+++ b/Completion/User/_ssh
@@ -4,16 +4,6 @@ _ssh () {
local curcontext="$curcontext" state lstate line ret=1 expl args tmp
typeset -A opt_args
- local accounts_users_hosts
-
- local varname="$words[1]_accounts"
-
- if (( ${(P)+varname} )); then
- accounts_users_hosts=( ${(P)varname} )
- else
- accounts_users_hosts=( $my_accounts )
- fi
-
args=()
# ssh-opt is a pseudo-command used to complete ssh options for `scp -o'.
@@ -227,14 +217,14 @@ _ssh () {
}
_ssh_users () {
- _combination accounts_users_hosts users "$@"
+ _combination my-accounts users-hosts users "$@"
}
_ssh_hosts () {
if [[ "$IPREFIX" == *@ ]]; then
- _combination accounts_users_hosts "users=${IPREFIX/@}" hosts "$@"
+ _combination my-accounts users-hosts "users=${IPREFIX/@}" hosts "$@"
else
- _combination accounts_users_hosts \
+ _combination my-accounts users-hosts \
${opt_args[-l]:+"users=${opt_args[-l]:q}"} hosts "$@"
fi
}