Updated bash, zsh completions with new commands. zsh completion has better prompts

This commit is contained in:
Dima Kogan 2013-09-20 22:31:15 -07:00
parent c615c8d65e
commit 3c0743c192
2 changed files with 50 additions and 42 deletions

View File

@ -10,10 +10,12 @@ complete -W \
--dataid \
--domain \
--dump \
--exit \
--extraValuesPerPoint \
--extracmds \
--geometry \
--hardcopy \
--help \
--histogram \
--histstyle \
--legend \
@ -25,7 +27,9 @@ complete -W \
--square_xy \
--stream \
--terminal \
--timefmt \
--title \
--version \
--xlabel \
--xlen \
--xmax \

View File

@ -17,8 +17,8 @@ _arguments -S
'--title:Plot title:' \
'--autolegend[Label each plot with its data ID]' \
'(--3d)--xlen[the size of the x-window to plot]::window size:' \
'--xmin:min X:' \
'--xmax:max X:' \
'(--xlen)--xmin:min X:' \
'(--xlen)--xmax:max X:' \
'--ymin:min Y:' \
'--ymax:max Y:' \
'--y2min:min Y2:' \
@ -26,14 +26,14 @@ _arguments -S
'--zmin:min Z:' \
'--zmax:max Z:' \
'*--y2:plot to place on the Y2 axis:' \
'--curvestyleall[Additional styles for ALL curves]:' \
'*--extracmds[Additional gnuplot commands]:' \
'--curvestyleall[Additional styles for ALL curves]:style' \
'*--extracmds[Additional gnuplot commands]:command' \
'--square[Plot data with square aspect ratio]' \
'--square_xy[For 3D plots, set square aspect ratio for ONLY the x,y axes]' \
'--hardcopy[Plot to a file]:' \
'--maxcurves[The maximum allowed number of curves]:' \
'--hardcopy[Plot to a file]:filename' \
'--maxcurves[The maximum allowed number of curves]:number of curves' \
'(--3d)--monotonic[Resets plot if an X in the past is seen]' \
'--extraValuesPerPoint[How many extra values are given for each data point]:' \
'--extraValuesPerPoint[How many extra values are given for each data point]:N'\
'--dump[Instead of printing to gnuplot, print to STDOUT]' \
'--geometry[The X11 geometry string]:geometry string:' \
'*--curvestyle[Additional styles for a curve]:curve id: :style:' \
@ -41,4 +41,8 @@ _arguments -S
'--binwidth:Histogram bin width:' \
'--histstyle:Style of histogram:(frequency unique cumulative cnormal)' \
'--terminal:Terminal options to set with "set terminal":' \
'*--legend[Legend for a curve]:curve id: :legend:'
'*--legend[Legend for a curve]:curve id: :legend:' \
'--exit[Exit gnuplot after making the plot]' \
'--version' \
'--help' \
'--timefmt[Format for time/date data]:time format'