about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2002-02-05 18:10:52 +0000
committerClint Adams <clint@users.sourceforge.net>2002-02-05 18:10:52 +0000
commitaa9b40fb5dc8ecd4b32fde782d69ff477cc856d8 (patch)
tree92f86decd072934c18d20ab605707c7bd9fbd19b /Completion/Unix/Command
parent6b932f3cf73c24c14bd25f35575ff9a6f0218fda (diff)
downloadzsh-aa9b40fb5dc8ecd4b32fde782d69ff477cc856d8.tar.gz
zsh-aa9b40fb5dc8ecd4b32fde782d69ff477cc856d8.tar.xz
zsh-aa9b40fb5dc8ecd4b32fde782d69ff477cc856d8.zip
16568: get listing of entire directory for approximation and other purposes.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_ssh8
1 files changed, 1 insertions, 7 deletions
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index 954a8b391..672031c36 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -5,13 +5,7 @@ _remote_files () {
   local expl remfiles remdispf remdispd
 
   if zstyle -T ":completion:${curcontext}:" remote-access; then
-    if [[ $options[globdots] == "on" ]] && [[ "$PREFIX" == */ || -z "$PREFIX" ]];
-    then
-      print ssh -a -x ${words[CURRENT]%:*} ls -a1F ${words[CURRENT]#*:}
-      remfiles=(${(f)"$(ssh -a -x ${words[CURRENT]%:*} ls -a1F ${words[CURRENT]#*:} 2>/dev/null)"})
-    else
-      remfiles=(${(f)"$(ssh -a -x ${words[CURRENT]%:*} ls -d1F ${words[CURRENT]#*:}\* 2>/dev/null)"})
-    fi
+    remfiles=(${(f)"$(ssh -a -x ${words[CURRENT]%:*} ls -d1F ${${${words[CURRENT]#*:}:h}/\\/(#e)/}/\* 2>/dev/null)"})
 
     remdispf=(${remfiles:#*/})
     remdispd=(${(M)remfiles:#*/})