diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2002-03-19 18:45:32 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2002-03-19 18:45:32 +0000 |
commit | 25b84ec914984bfd9c860e91d3be28b5b0315e6e (patch) | |
tree | a1145a006a875446164e7d4a57e650f2f0e6a0f8 | |
parent | 79952b8e056010e552b44751fd0716447e0153b6 (diff) | |
download | zsh-25b84ec914984bfd9c860e91d3be28b5b0315e6e.tar.gz zsh-25b84ec914984bfd9c860e91d3be28b5b0315e6e.tar.xz zsh-25b84ec914984bfd9c860e91d3be28b5b0315e6e.zip |
handle dot files and directories too
-rw-r--r-- | Completion/Unix/Command/_ssh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh index 012fec552..9d514de8a 100644 --- a/Completion/Unix/Command/_ssh +++ b/Completion/Unix/Command/_ssh @@ -5,7 +5,7 @@ _remote_files () { local expl remfiles remdispf remdispd suf ret=1 if zstyle -T ":completion:${curcontext}:" remote-access; then - remfiles=(${(M)${(f)"$(ssh -a -x ${words[CURRENT]%%:*} ls -d1F ${PREFIX%%[^/]#}\* 2>/dev/null)"}%%[^/]##(|/)}) + remfiles=(${(M)${(f)"$(ssh -a -x ${words[CURRENT]%%:*} ls -d1F ${PREFIX%%[^./][^/]#}\* 2>/dev/null)"}%%[^/]#(|/)}) compset -P '*/' compset -S '/*' || suf='remote file' |