diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-21 01:34:53 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-21 01:34:53 +0000 |
commit | d18c1b3ac870ae682e5abf51b04e6ed8c9a4bd2d (patch) | |
tree | ab1471c0973d6b537cc058c428b0d8b91a6cb91c /Completion/X/_x_extension | |
parent | 0abdec4fa34283821f14548c0aa97e52b5c8a0eb (diff) | |
download | zsh-d18c1b3ac870ae682e5abf51b04e6ed8c9a4bd2d.tar.gz zsh-d18c1b3ac870ae682e5abf51b04e6ed8c9a4bd2d.tar.xz zsh-d18c1b3ac870ae682e5abf51b04e6ed8c9a4bd2d.zip |
zsh-workers/7949
Diffstat (limited to 'Completion/X/_x_extension')
-rw-r--r-- | Completion/X/_x_extension | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Completion/X/_x_extension b/Completion/X/_x_extension new file mode 100644 index 000000000..967938e28 --- /dev/null +++ b/Completion/X/_x_extension @@ -0,0 +1,17 @@ +#autoload + +local expl + +(( $+_xe_cache )) || _xe_cache=( "${(@)${(@f)$(xdpyinfo)}[(r)number of extensions:*,-1][2,(r)default screen number:*][1,-2]//[ ]}" ) + +_description expl 'X extension' + +if [[ "$1" = -a ]]; then + shift + + compadd "$@" "$expl[@]" -M 'm:{a-z}={A-Z} r:|-=* r:|=*' - all "$_xe_cache[@]" +else + [[ "$1" = - ]] && shift + + compadd "$@" "$expl[@]" -M 'm:{a-z}={A-Z} r:|-=* r:|=*' - "$_xe_cache[@]" +fi |