diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-21 01:34:56 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-21 01:34:56 +0000 |
commit | 4a662b72f11398d648ea65644cd6416176d7241d (patch) | |
tree | 7f871a6459ffe446339dca060ff4deb7b4ff14d6 /Completion/X/_x_extension | |
parent | 343829717ac96577fd81a42fd32f2fd737e725e6 (diff) | |
download | zsh-4a662b72f11398d648ea65644cd6416176d7241d.tar.gz zsh-4a662b72f11398d648ea65644cd6416176d7241d.tar.xz zsh-4a662b72f11398d648ea65644cd6416176d7241d.zip |
Initial revision
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 |