From d7822305b4a20ba09ef0c9eb0c6c9bf697c1ee87 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 16 Jan 2002 16:29:51 +0000 Subject: 16461: a number of minor completion function updates --- Completion/Unix/Command/_ssh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Completion/Unix/Command/_ssh') diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh index 40664114c..7d1d95d7c 100644 --- a/Completion/Unix/Command/_ssh +++ b/Completion/Unix/Command/_ssh @@ -5,8 +5,12 @@ _remote_files () { # colorings and LIST_TYPES and so on, but I'm just not that ambitious. local expl - _wanted files expl 'remote files' \ - compadd $(ssh -a -x ${words[CURRENT]%:*} echo ${words[CURRENT]#*:}\*) + if zstyle -T ":completion:${curcontext}:" remote-access; then + _wanted files expl 'remote files' \ + compadd $(ssh -a -x ${words[CURRENT]%:*} echo ${words[CURRENT]#*:}\*) + else + _message 'remote files' + fi } _ssh () { -- cgit 1.4.1