|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21585/root/usr/share/zsh/4.2.6/functions/ |
Upload File : |
#autoload
local format raw gopt
if [[ "$1" = -e ]]; then
local expl ret=1 tag
_comp_mesg=yes
if (( $# > 2 )); then
tag="$2"
shift
else
tag="$curtag"
fi
_tags "$tag" && while _next_label "$tag" expl "$2"; do
compadd ${expl:/-X/-x}
ret=0
done
(( $compstate[nmatches] )) || compstate[insert]=
return ret
fi
gopt=()
zparseopts -D -a gopt 1 2 V J
_tags messages || return 1
if [[ "$1" = -r ]]; then
raw=yes
shift
format="$1"
else
zstyle -s ":completion:${curcontext}:messages" format format ||
zstyle -s ":completion:${curcontext}:descriptions" format format
fi
if [[ -n "$format$raw" ]]; then
[[ -z "$raw" ]] && zformat -f format "$format" "d:$1" "${(@)argv[2,-1]}"
builtin compadd "$gopt[@]" -x "$format"
_comp_mesg=yes
fi