mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-09 00:11:25 +02:00
16568: get listing of entire directory for approximation and other purposes.
This commit is contained in:
parent
6b932f3cf7
commit
aa9b40fb5d
2 changed files with 4 additions and 7 deletions
|
@ -1,5 +1,8 @@
|
||||||
2002-02-04 Clint Adams <clint@zsh.org>
|
2002-02-04 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
|
* 16568: Completion/Unix/Command/_ssh: get listing of
|
||||||
|
entire directory for approximation and other purposes.
|
||||||
|
|
||||||
* 16566: Completion/Unix/Command/_ssh: show ls -F
|
* 16566: Completion/Unix/Command/_ssh: show ls -F
|
||||||
classifiers as display strings.
|
classifiers as display strings.
|
||||||
|
|
||||||
|
|
|
@ -5,13 +5,7 @@ _remote_files () {
|
||||||
local expl remfiles remdispf remdispd
|
local expl remfiles remdispf remdispd
|
||||||
|
|
||||||
if zstyle -T ":completion:${curcontext}:" remote-access; then
|
if zstyle -T ":completion:${curcontext}:" remote-access; then
|
||||||
if [[ $options[globdots] == "on" ]] && [[ "$PREFIX" == */ || -z "$PREFIX" ]];
|
remfiles=(${(f)"$(ssh -a -x ${words[CURRENT]%:*} ls -d1F ${${${words[CURRENT]#*:}:h}/\\/(#e)/}/\* 2>/dev/null)"})
|
||||||
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
|
|
||||||
|
|
||||||
remdispf=(${remfiles:#*/})
|
remdispf=(${remfiles:#*/})
|
||||||
remdispd=(${(M)remfiles:#*/})
|
remdispd=(${(M)remfiles:#*/})
|
||||||
|
|
Loading…
Reference in a new issue