1999-09-21 03:34:56 +02:00
|
|
|
#autoload
|
|
|
|
|
|
|
|
local expl
|
|
|
|
|
2000-04-11 09:57:56 +02:00
|
|
|
_tags extensions || return 1
|
1999-09-21 03:34:56 +02:00
|
|
|
|
2000-04-01 22:43:43 +02:00
|
|
|
(( $+_xe_cache )) || _xe_cache=( "${(@)${(@f)$(xdpyinfo)}[(r)number of extensions:*,-1][2,(r)default screen number:*][1,-2]//[ ]}" )
|
1999-09-21 03:34:56 +02:00
|
|
|
|
|
|
|
if [[ "$1" = -a ]]; then
|
|
|
|
shift
|
|
|
|
|
2000-04-11 09:57:56 +02:00
|
|
|
_wanted extensions expl 'X extensions' \
|
2000-04-01 22:43:43 +02:00
|
|
|
compadd "$@" -M 'm:{a-z}={A-Z} r:|-=* r:|=*' - all "$_xe_cache[@]"
|
1999-09-21 03:34:56 +02:00
|
|
|
else
|
|
|
|
[[ "$1" = - ]] && shift
|
|
|
|
|
2000-04-11 09:57:56 +02:00
|
|
|
_wanted extensions expl 'X extensions' \
|
2000-04-01 22:43:43 +02:00
|
|
|
compadd "$@" -M 'm:{a-z}={A-Z} r:|-=* r:|=*' - "$_xe_cache[@]"
|
1999-09-21 03:34:56 +02:00
|
|
|
fi
|