mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-20 05:53:52 +01:00
20 lines
499 B
Plaintext
20 lines
499 B
Plaintext
#autoload
|
|
|
|
local expl
|
|
|
|
_wanted extensions || return 1
|
|
|
|
(( $+_xe_cache )) || _xe_cache=( "${(@)${(@f)$(xdpyinfo)}[(r)number of extensions:*,-1][2,(r)default screen number:*][1,-2]//[ ]}" )
|
|
|
|
if [[ "$1" = -a ]]; then
|
|
shift
|
|
|
|
_all_labels extensions expl 'X extensions' \
|
|
compadd "$@" -M 'm:{a-z}={A-Z} r:|-=* r:|=*' - all "$_xe_cache[@]"
|
|
else
|
|
[[ "$1" = - ]] && shift
|
|
|
|
_all_labels extensions expl 'X extensions' \
|
|
compadd "$@" -M 'm:{a-z}={A-Z} r:|-=* r:|=*' - "$_xe_cache[@]"
|
|
fi
|