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

View File

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