1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-19 15:41:32 +02:00

zsh-workers/8726

This commit is contained in:
Tanaka Akira 1999-11-22 17:54:30 +00:00
parent f65474d1bc
commit e779e0135d

View file

@ -43,7 +43,6 @@ if [[ "$state" = "remote" ]]; then
_wanted types expl 'data type' &&
compadd -s")" -M 'm:{a-zA-Z}={A-Za-z}' HTML Text PostScript &&
ret=0
fi
else
_tags files && _path_files -W ~ && ret=0
fi
@ -53,19 +52,17 @@ if [[ "$state" = "remote" ]]; then
if compset -P '*@'; then
_wanted hosts expl 'remote host name' &&
_hosts "$expl[@]" -q -S, && ret=0
fi
else
_wanted users expl 'login name' && _users "$expl[@]" -q -S@ && ret=0
fi
fi
;;
*)
if _wanted commands expl 'remote commands'; then
if [[ "$QIPREFIX" ]]; then
compadd "$expl[@]" -qS '(' -M 'm:{a-zA-Z}={A-Za-z}' - \
if [[ -z "$QIPREFIX" ]]; then
compadd "$expl[@]" -s'(' -S '' -M 'm:{a-zA-Z}={A-Za-z}' - \
$remote_commands && ret=0
else
compadd "$expl[@]" -s'(' -S '' -M 'm:{a-zA-Z}={A-Za-z}' - \
compadd "$expl[@]" -qS '(' -M 'm:{a-zA-Z}={A-Za-z}' - \
$remote_commands && ret=0
fi
fi
@ -75,7 +72,7 @@ fi
if [[ "$state" = "urls" ]]; then
# Complete netscape urls
if compset about: ; then
if compset -P about: ; then
_wanted values expl 'about what' &&
compadd authors blank cache document fonts global hype image-cache \
license logo memory-cache mozilla plugins && ret=0