1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 04:40:59 +01:00

zsh-workers/9398

This commit is contained in:
Tanaka Akira 2000-01-21 10:15:24 +00:00
parent 415e93ad39
commit c3ab3670e8
2 changed files with 4 additions and 4 deletions

View file

@ -30,8 +30,8 @@ if [[ $ZFTP_SYSTEM = UNIX* ]]; then
rm -f $tmpf rm -f $tmpf
[[ -n $dir && $dir != */ ]] && dir="$dir/" [[ -n $dir && $dir != */ ]] && dir="$dir/"
if [[ -n $WIDGET ]]; then if [[ -n $WIDGET ]]; then
_description expl 'remote directory' _description directories expl 'remote directory'
compadd -S/ -q -P "$dir" - $reply compadd "$expl[@]" -S/ -q -P "$dir" - $reply
elif [[ -n $dir ]]; then elif [[ -n $dir ]]; then
reply=(${dir}$reply) reply=(${dir}$reply)
fi fi

View file

@ -17,7 +17,7 @@ if [[ $ZFTP_SYSTEM == UNIX* && $1 == */* ]]; then
local reply local reply
reply=(${${${(f)"$(<$tmpf)"}##$dir}%\*}) reply=(${${${(f)"$(<$tmpf)"}##$dir}%\*})
rm -f $tmpf rm -f $tmpf
_description expl 'remote file' _description files expl 'remote file'
compadd "$expl[@]" -P $dir - $reply compadd "$expl[@]" -P $dir - $reply
else else
# On the first argument to ls, we usually get away with a glob. # On the first argument to ls, we usually get away with a glob.
@ -29,7 +29,7 @@ else
local fcache_name local fcache_name
zffcache zffcache
if [[ -n $WIDGET ]]; then if [[ -n $WIDGET ]]; then
_description expl 'remote file' _description files expl 'remote file'
compadd "$expl[@]" -F fignore - ${(P)fcache_name} compadd "$expl[@]" -F fignore - ${(P)fcache_name}
else else
reply=(${(P)fcache_name}); reply=(${(P)fcache_name});