From aa9b40fb5dc8ecd4b32fde782d69ff477cc856d8 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Tue, 5 Feb 2002 18:10:52 +0000 Subject: 16568: get listing of entire directory for approximation and other purposes. --- Completion/Unix/Command/_ssh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'Completion/Unix/Command/_ssh') 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:#*/}) -- cgit 1.4.1