diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2002-01-16 16:29:51 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2002-01-16 16:29:51 +0000 |
commit | d7822305b4a20ba09ef0c9eb0c6c9bf697c1ee87 (patch) | |
tree | 1f21ac9faf956d67f24e2005b82a42264a27f535 /Completion/Unix/Command/_ssh | |
parent | 8476aa7fc2faea453c3e07dae2e58535fa2a7086 (diff) | |
download | zsh-d7822305b4a20ba09ef0c9eb0c6c9bf697c1ee87.tar.gz zsh-d7822305b4a20ba09ef0c9eb0c6c9bf697c1ee87.tar.xz zsh-d7822305b4a20ba09ef0c9eb0c6c9bf697c1ee87.zip |
16461: a number of minor completion function updates
Diffstat (limited to 'Completion/Unix/Command/_ssh')
-rw-r--r-- | Completion/Unix/Command/_ssh | 8 |
1 files changed, 6 insertions, 2 deletions
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 () { |