mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-01 09:41:44 +02:00
zsh-workers/7564
This commit is contained in:
parent
d02e7389f0
commit
57e98c6948
13 changed files with 38 additions and 110 deletions
|
@ -4,10 +4,10 @@ local ret=1 expl
|
||||||
|
|
||||||
if [[ CURRENT -eq 2 ]]; then
|
if [[ CURRENT -eq 2 ]]; then
|
||||||
if compset -P '?*-'; then
|
if compset -P '?*-'; then
|
||||||
_colors
|
_x_color
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
_colors && ret=0
|
_x_color && ret=0
|
||||||
|
|
||||||
_description expl option
|
_description expl option
|
||||||
compadd "$expl[@]" - -map && ret=0
|
compadd "$expl[@]" - -map && ret=0
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#compdef pnmalias
|
#compdef pnmalias
|
||||||
|
|
||||||
_arguments '-bgcolor:background color:_colors' \
|
_arguments '-bgcolor:background color:_x_color' \
|
||||||
'-fgcolor:foreground color:_colors' \
|
'-fgcolor:foreground color:_x_color' \
|
||||||
'-bonly' '-fonly' '-balias' '-falias' \
|
'-bonly' '-fonly' '-balias' '-falias' \
|
||||||
'-weight:central aliasing weight:' ':file: _pbm_file'
|
'-weight:central aliasing weight:' ':file: _pbm_file'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#compdef pnmmargin
|
#compdef pnmmargin
|
||||||
|
|
||||||
_arguments '-white' '-black' '-color:color: _colors' \
|
_arguments '-white' '-black' '-color:color: _x_color' \
|
||||||
':border width:' ':file: _pbm_file'
|
':border width:' ':file: _pbm_file'
|
||||||
|
|
|
@ -10,6 +10,6 @@ else
|
||||||
_description expl 'old color'
|
_description expl 'old color'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_colors "$expl[@]" && ret=0
|
_x_color "$expl[@]" && ret=0
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#compdef ppmmake
|
#compdef ppmmake
|
||||||
|
|
||||||
_arguments ':color: _colors' ':width:' ':height:'
|
_arguments ':color: _x_color' ':width:' ':height:'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#compdef ppmtoacad
|
#compdef ppmtoacad
|
||||||
|
|
||||||
_arguments '-dxb' '-poly' '-background:background color:_colors' \
|
_arguments '-dxb' '-poly' '-background:background color:_x_color' \
|
||||||
'-white' '-aspect:pixel aspect ratio:' '-8' ':file: _pbm_file'
|
'-white' '-aspect:pixel aspect ratio:' '-8' ':file: _pbm_file'
|
||||||
|
|
|
@ -8,7 +8,7 @@ if compset -N --; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
_x_options \
|
_x_arguments \
|
||||||
-q \
|
-q \
|
||||||
'-g-:device size (<width>x<height>):' \
|
'-g-:device size (<width>x<height>):' \
|
||||||
'-r-:resolution (<val> or <x>x<y>):' \
|
'-r-:resolution (<val> or <x>x<y>):' \
|
||||||
|
|
|
@ -6,13 +6,13 @@ _xt_arguments \
|
||||||
'-altfont:default font:' \
|
'-altfont:default font:' \
|
||||||
'-base:base URL:' \
|
'-base:base URL:' \
|
||||||
'-browser:WWW browser:_command_names -e' \
|
'-browser:WWW browser:_command_names -e' \
|
||||||
'-cr:cursor color:_colors' \
|
'-cr:cursor color:_x_color' \
|
||||||
'-debug:debugging bitmask:((1\:bitmaps 2\:dvi\ translation 4\:pk\ reading 8\:batch\ operation 16\:events 32\:file\ opening 64\:PostScript\ communication 128\:Kpathsea\ statistics 256\:Kpathsea\ hash\ table\ lookups 512\:Kpathsea\ path\ definitions 1024\:Kpathsea\ path\ expansion 2048\:Kpathsea\ searches))' \
|
'-debug:debugging bitmask:((1\:bitmaps 2\:dvi\ translation 4\:pk\ reading 8\:batch\ operation 16\:events 32\:file\ opening 64\:PostScript\ communication 128\:Kpathsea\ statistics 256\:Kpathsea\ hash\ table\ lookups 512\:Kpathsea\ path\ definitions 1024\:Kpathsea\ path\ expansion 2048\:Kpathsea\ searches))' \
|
||||||
'-density:font shrink density:' \
|
'-density:font shrink density:' \
|
||||||
'-gamma:anti-aliasing factor (default 1.0):' \
|
'-gamma:anti-aliasing factor (default 1.0):' \
|
||||||
-grid{1,2,3}':grid color:_colors' \
|
-grid{1,2,3}':grid color:_x_color' \
|
||||||
'-gspalette:Ghostscript palette:(Color Greyscale Monochrome)' \
|
'-gspalette:Ghostscript palette:(Color Greyscale Monochrome)' \
|
||||||
'-hl:page highlight color:_colors' \
|
'-hl:page highlight color:_x_color' \
|
||||||
'-icongeometry:icon geometry:_x_geometry' \
|
'-icongeometry:icon geometry:_x_geometry' \
|
||||||
'-interpreter:Ghostscript program:_command_names -e' \
|
'-interpreter:Ghostscript program:_command_names -e' \
|
||||||
'-margin:margin size:' \
|
'-margin:margin size:' \
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#compdef xfig
|
#compdef xfig
|
||||||
|
|
||||||
_x_options \
|
_x_arguments \
|
||||||
-{help,Landscape,Portrait,debug,dontswitchcmap,flushleft,inches,inverse,latexfonts,left,metric,monochrome,multiple,noscalablefonts,notrack,right,scalablefonts,showallbuttons,single,specialtext,tablet,track} \
|
-{help,Landscape,Portrait,debug,dontswitchcmap,flushleft,inches,inverse,latexfonts,left,metric,monochrome,multiple,noscalablefonts,notrack,right,scalablefonts,showallbuttons,single,specialtext,tablet,track} \
|
||||||
'-bold:bold font:_x_font' \
|
'-bold:bold font:_x_font' \
|
||||||
'-button:button font:_x_font' \
|
'-button:button font:_x_font' \
|
||||||
'-but_per_row:number of buttons:' \
|
'-but_per_row:number of buttons:' \
|
||||||
'-cbg:canvas background color:_colors' \
|
'-cbg:canvas background color:_x_color' \
|
||||||
'-cfg:canvas foreground color:_colors' \
|
'-cfg:canvas foreground color:_x_color' \
|
||||||
'-depth:visual depth:_x_visdepth' \
|
'-depth:visual depth:_x_visdepth' \
|
||||||
'-exportlanguage:export language:(box latex epic eepic eepicemu pictex ibmgl eps ps pstex textyl tpic pic mf acad pcx png gif jpeg tiff ppm xbm xpm)' \
|
'-exportlanguage:export language:(box latex epic eepic eepicemu pictex ibmgl eps ps pstex textyl tpic pic mf acad pcx png gif jpeg tiff ppm xbm xpm)' \
|
||||||
'-iconGeometry:icon geometry:_x_geometry' \
|
'-iconGeometry:icon geometry:_x_geometry' \
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#compdef xsetroot
|
#compdef xsetroot
|
||||||
|
|
||||||
_x_options \
|
_x_arguments \
|
||||||
-{help,def,gray,grey,rv} \
|
-{help,def,gray,grey,rv} \
|
||||||
'-cursor:cursor file:_files -g \*.\(\#i\)\(xbm\|curs\(\|or\)\):mask file:_files -g \*.\(\#i\)\(xbm\|curs\(\|or\)\|mask\)' \
|
'-cursor:cursor file:_files -g \*.\(\#i\)\(xbm\|curs\(\|or\)\):mask file:_files -g \*.\(\#i\)\(xbm\|curs\(\|or\)\|mask\)' \
|
||||||
'-cursor_name:cursor name:_cursors' \
|
'-cursor_name:cursor name:_x_cursor' \
|
||||||
'-bitmap:bitmap file:_files -g \*.\(\#i\)xbm' \
|
'-bitmap:bitmap file:_files -g \*.\(\#i\)xbm' \
|
||||||
'-mod:x grid distance (1-16): :y grid distance (1-16):' \
|
'-mod:x grid distance (1-16): :y grid distance (1-16):' \
|
||||||
'-fg:foreground color:_colors' \
|
'-fg:foreground color:_x_color' \
|
||||||
'-bg:background color:_colors' \
|
'-bg:background color:_x_color' \
|
||||||
'-solid:screen solid color:_colors' \
|
'-solid:screen solid color:_x_color' \
|
||||||
'-name:root window name:'
|
'-name:root window name:'
|
||||||
|
|
|
@ -23,17 +23,17 @@
|
||||||
_arguments \
|
_arguments \
|
||||||
-+{rv,synchronous} \
|
-+{rv,synchronous} \
|
||||||
-{reverse,iconic} \
|
-{reverse,iconic} \
|
||||||
'-background:background color:_colors' \
|
'-background:background color:_x_color' \
|
||||||
'-bd:border color:_colors' \
|
'-bd:border color:_x_color' \
|
||||||
'-bg:background color:_colors' \
|
'-bg:background color:_x_color' \
|
||||||
'-bordercolor:border color:_colors' \
|
'-bordercolor:border color:_x_color' \
|
||||||
'-borderwidth:border width:_x_borderwidth' \
|
'-borderwidth:border width:_x_borderwidth' \
|
||||||
'-bw:border width:_x_borderwidth' \
|
'-bw:border width:_x_borderwidth' \
|
||||||
'-display:display:_x_display' \
|
'-display:display:_x_display' \
|
||||||
'-fg:foreground color:_colors' \
|
'-fg:foreground color:_x_color' \
|
||||||
'-font:font:_x_font' \
|
'-font:font:_x_font' \
|
||||||
'-fn:font:_x_font' \
|
'-fn:font:_x_font' \
|
||||||
'-foreground:foreground color:_colors' \
|
'-foreground:foreground color:_x_color' \
|
||||||
'-geometry:geometry:_x_geometry' \
|
'-geometry:geometry:_x_geometry' \
|
||||||
'-name:name:_x_name' \
|
'-name:name:_x_name' \
|
||||||
'-selectionTimeout:selection timeout (milliseconds):_x_selection_timeout' \
|
'-selectionTimeout:selection timeout (milliseconds):_x_selection_timeout' \
|
||||||
|
|
|
@ -7,13 +7,13 @@ _xt_arguments \
|
||||||
'-bcf:time text cursor is off when blinking (milliseconds):' \
|
'-bcf:time text cursor is off when blinking (milliseconds):' \
|
||||||
'-bcn:time text cursor is on when blinking (milliseconds):' \
|
'-bcn:time text cursor is on when blinking (milliseconds):' \
|
||||||
'-cc:character class:' \
|
'-cc:character class:' \
|
||||||
'-cr:text cursor color:_colors' \
|
'-cr:text cursor color:_x_color' \
|
||||||
'-e:program: _command_names -e:*::program arguments: _normal' \
|
'-e:program: _command_names -e:*::program arguments: _normal' \
|
||||||
'-fb:bold font:_x_font' \
|
'-fb:bold font:_x_font' \
|
||||||
'-fi:icon font:_x_font' \
|
'-fi:icon font:_x_font' \
|
||||||
'-hc:background color for highlighted text:_colors' \
|
'-hc:background color for highlighted text:_x_color' \
|
||||||
'-mc:multi-click threshold (milliseconds):' \
|
'-mc:multi-click threshold (milliseconds):' \
|
||||||
'-ms:pointer cursor color:_colors' \
|
'-ms:pointer cursor color:_x_color' \
|
||||||
'-nb:margin bell number:' \
|
'-nb:margin bell number:' \
|
||||||
'-sl:save lines:' \
|
'-sl:save lines:' \
|
||||||
'-ti:terminal ID:(vt52 vt100 vt101 vt102 vt220)' \
|
'-ti:terminal ID:(vt52 vt100 vt101 vt102 vt220)' \
|
||||||
|
@ -22,75 +22,3 @@ _xt_arguments \
|
||||||
'-ziconbeep:iconbeep (percent):' \
|
'-ziconbeep:iconbeep (percent):' \
|
||||||
'-C' \
|
'-C' \
|
||||||
'-S-:pseudo-terminal and file descriptor:'
|
'-S-:pseudo-terminal and file descriptor:'
|
||||||
#compdef xterm
|
|
||||||
|
|
||||||
_arguments \
|
|
||||||
'-version' \
|
|
||||||
'-help' \
|
|
||||||
'-132' \
|
|
||||||
'-ah' '+ah' \
|
|
||||||
'-ai' '+ai' \
|
|
||||||
'-aw' '+aw' \
|
|
||||||
'-b:inner border size:' \
|
|
||||||
'-bc' '+bc' \
|
|
||||||
'-bcf:time text cursor is off when blinking (milliseconds):' \
|
|
||||||
'-bcn:time text cursor is on when blinking (milliseconds):' \
|
|
||||||
'-bdc' '+bdc' \
|
|
||||||
'-cb' '+cb' \
|
|
||||||
'-cc:character class:' \
|
|
||||||
'-cm' '+cm' \
|
|
||||||
'-cn' '+cn' \
|
|
||||||
'-cr:text cursor color:_color' \
|
|
||||||
'-cu' '+cu' \
|
|
||||||
'-dc' '+dc' \
|
|
||||||
'-e:*::program: _normal' \
|
|
||||||
'-fb:bold font:' \
|
|
||||||
'-fi:icon font:' \
|
|
||||||
'-hc:background color for highlighted text:_color' \
|
|
||||||
'-hf' '+hf' \
|
|
||||||
'-ie' '+ie' \
|
|
||||||
'-im' '+im' \
|
|
||||||
'-j' '+j' \
|
|
||||||
'-leftbar' \
|
|
||||||
'-ls' '+ls' \
|
|
||||||
'-mb' '+mb' \
|
|
||||||
'-mc:multi-click threshold (milliseconds):' \
|
|
||||||
'-ms:pointer cursor color:_color' \
|
|
||||||
'-nb:margin bell number:' \
|
|
||||||
'-nul' '+nul' \
|
|
||||||
'-pc' '+pc' \
|
|
||||||
'-rightbar' \
|
|
||||||
'-rw' '+rw' \
|
|
||||||
'-s' '+s' \
|
|
||||||
'-samename' '+samename' \
|
|
||||||
'-sb' '+sb' \
|
|
||||||
'-sf' '+sf' \
|
|
||||||
'-si' '+si' \
|
|
||||||
'-sk' '+sk' \
|
|
||||||
'-sl:save lines:' \
|
|
||||||
'-sp' '+sp' \
|
|
||||||
'-t' '+t' \
|
|
||||||
'-ti:terminal ID:(vt52 vt100 vt101 vt102 vt220)' \
|
|
||||||
'-tm:terminal setting:' \
|
|
||||||
'-tn:terminal type:' \
|
|
||||||
'-u8' '+u8' \
|
|
||||||
'-ulc' '+ulc' \
|
|
||||||
'-ut' '+ut' \
|
|
||||||
'-vb' '+vb' \
|
|
||||||
'-wc' '+wc' \
|
|
||||||
'-wf' '+wf' \
|
|
||||||
'-ziconbeep:iconbeep (percent):' \
|
|
||||||
'-C' \
|
|
||||||
'-S-:pseudo-terminal and file descriptor:' \
|
|
||||||
'-bd:border color:_color' \
|
|
||||||
'-bg:background color:_color' \
|
|
||||||
'-bw:border width:' \
|
|
||||||
'-display:display:' \
|
|
||||||
'-fg:foreground color:_color' \
|
|
||||||
'-fn:font:' \
|
|
||||||
'-geometry:geometry:' \
|
|
||||||
'-iconic' \
|
|
||||||
'-name:name:' \
|
|
||||||
'-rv' \
|
|
||||||
'-title:title:' \
|
|
||||||
'-xrm:resource:'
|
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
#compdef xv
|
#compdef xv
|
||||||
|
|
||||||
_x_options \
|
_x_arguments \
|
||||||
-{help,quick24,slow24,best24,noqcheck,pkludge,RM} \
|
-{help,quick24,slow24,best24,noqcheck,pkludge,RM} \
|
||||||
-+{fixed,rw,perfect,owncmap,stdcmap,cecmap,ninstall,8,24,root,noresetroot,max,maxpect,quit,clear,cmap,imap,cemap,cmtmap,vsmap,nopos,dither,smooth,raw,acrop,4x3,hflip,vflip,norm,hist,mono,rv,wloop,random,loadclear,nofreecols,rgb,hsv,lbrowse,nostat,2xlimit,nolimits,close,iconic,viewonly,poll,vsperfect,vsdisable,nodecor} \
|
-+{fixed,rw,perfect,owncmap,stdcmap,cecmap,ninstall,8,24,root,noresetroot,max,maxpect,quit,clear,cmap,imap,cemap,cmtmap,vsmap,nopos,dither,smooth,raw,acrop,4x3,hflip,vflip,norm,hist,mono,rv,wloop,random,loadclear,nofreecols,rgb,hsv,lbrowse,nostat,2xlimit,nolimits,close,iconic,viewonly,poll,vsperfect,vsdisable,nodecor} \
|
||||||
'-fg:foreground color:_colors' \
|
'-fg:foreground color:_x_color' \
|
||||||
'-bg:background color:_colors' \
|
'-bg:background color:_x_color' \
|
||||||
'-hi:top left shadow color:_colors' \
|
'-hi:top left shadow color:_x_color' \
|
||||||
'-lo:bottom right shadow color:_colors' \
|
'-lo:bottom right shadow color:_x_color' \
|
||||||
'-bw:border width:' \
|
'-bw:border width:' \
|
||||||
'-geometry:geometry:_x_geometry' \
|
'-geometry:geometry:_x_geometry' \
|
||||||
'-expand:expansion factor:' \
|
'-expand:expansion factor:' \
|
||||||
'-aspect:aspect ratio (e.g. 4:3):' \
|
'-aspect:aspect ratio (e.g. 4:3):' \
|
||||||
'-ncols:maximum number of colors used:' \
|
'-ncols:maximum number of colors used:' \
|
||||||
'-rmode:root display mode:((0\:tiling 1\:integer\ tiling 2\:mirrored\ tiling 3\:integer\ mirrored\ tiling 4\:centered\ tiling 5\:centered\ tiling\ on\ solid\ background 6\:centered\ tiling\ on\ '\\\''warp'\\\''\ background 7\:centered\ tiling\ on\ '\\\''brick'\\\''\ background 8\:symmetrical\ tiling 9\:symmetrical\ mirrored\ tiling))' \
|
'-rmode:root display mode:((0\:tiling 1\:integer\ tiling 2\:mirrored\ tiling 3\:integer\ mirrored\ tiling 4\:centered\ tiling 5\:centered\ tiling\ on\ solid\ background 6\:centered\ tiling\ on\ '\\\''warp'\\\''\ background 7\:centered\ tiling\ on\ '\\\''brick'\\\''\ background 8\:symmetrical\ tiling 9\:symmetrical\ mirrored\ tiling))' \
|
||||||
'-rfg:root foreground color:_colors' \
|
'-rfg:root foreground color:_x_color' \
|
||||||
'-rbg:root background color:_colors' \
|
'-rbg:root background color:_x_color' \
|
||||||
'-cgeom:control window geometry:_x_geometry' \
|
'-cgeom:control window geometry:_x_geometry' \
|
||||||
'-igeom:info window geometry:_x_geometry' \
|
'-igeom:info window geometry:_x_geometry' \
|
||||||
'-cegeom:color editor window geometry:_x_geometry' \
|
'-cegeom:color editor window geometry:_x_geometry' \
|
||||||
|
@ -26,8 +26,8 @@ _x_options \
|
||||||
'-gamma:gamma value:' \
|
'-gamma:gamma value:' \
|
||||||
'-cgamma:red gamma value: :green gamma value: :blue gamma value:' \
|
'-cgamma:red gamma value: :green gamma value: :blue gamma value:' \
|
||||||
'-preset:default preset (1-4):(1 2 3 4)' \
|
'-preset:default preset (1-4):(1 2 3 4)' \
|
||||||
'-white:'"'"'white'"'"' color:_colors' \
|
'-white:'"'"'white'"'"' color:_x_color' \
|
||||||
'-black:'"'"'black'"'"' color:_colors' \
|
'-black:'"'"'black'"'"' color:_x_color' \
|
||||||
'-wait:seconds to wait:' \
|
'-wait:seconds to wait:' \
|
||||||
'-visual:visual:(TrueColor StaticColor DirectColor StaticGray GrayScale PseudoColor)' \
|
'-visual:visual:(TrueColor StaticColor DirectColor StaticGray GrayScale PseudoColor)' \
|
||||||
'-cursor:cursor character number:' \
|
'-cursor:cursor character number:' \
|
||||||
|
|
Loading…
Reference in a new issue