mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-05 22:11:12 +08:00
added zsh and bash completions to the package
This commit is contained in:
parent
2e99c30178
commit
0b283e7139
39
completions/bash/feedgnuplot
Normal file
39
completions/bash/feedgnuplot
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
complete -W \
|
||||||
|
' \
|
||||||
|
--domain \
|
||||||
|
--dataid \
|
||||||
|
--3d \
|
||||||
|
--colormap \
|
||||||
|
--stream \
|
||||||
|
--lines \
|
||||||
|
--points \
|
||||||
|
--circles \
|
||||||
|
--xlabel \
|
||||||
|
--ylabel \
|
||||||
|
--y2label \
|
||||||
|
--zlabel \
|
||||||
|
--zlabel \
|
||||||
|
--title \
|
||||||
|
--autolegend \
|
||||||
|
--xlen \
|
||||||
|
--xmin \
|
||||||
|
--xmax \
|
||||||
|
--ymin \
|
||||||
|
--ymax \
|
||||||
|
--y2min \
|
||||||
|
--y2max \
|
||||||
|
--zmin \
|
||||||
|
--zmax \
|
||||||
|
--y2 \
|
||||||
|
--curvestyleall \
|
||||||
|
--extracmds \
|
||||||
|
--size \
|
||||||
|
--square \
|
||||||
|
--square_xy \
|
||||||
|
--hardcopy \
|
||||||
|
--maxcurves \
|
||||||
|
--monotonic \
|
||||||
|
--extraValuesPerPoint \
|
||||||
|
--dump \
|
||||||
|
--curvestyle \
|
||||||
|
--legend' feedgnuplot
|
40
completions/zsh/_feedgnuplot
Normal file
40
completions/zsh/_feedgnuplot
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
#compdef feedgnuplot
|
||||||
|
|
||||||
|
_arguments -S \
|
||||||
|
'()--domain[first element of each line is the domain variable]' \
|
||||||
|
'--dataid[each data point is preceded by the corresponding ID]' \
|
||||||
|
'(--monotonic --xlen)--3d' \
|
||||||
|
'--colormap[show a colormapped xy plot]' \
|
||||||
|
'--stream[Plot the data in realtime]::period in s:' \
|
||||||
|
'--lines' \
|
||||||
|
'--points' \
|
||||||
|
'--circles' \
|
||||||
|
'--xlabel:X-axis label:' \
|
||||||
|
'--ylabel:Y-axis label:' \
|
||||||
|
'--y2label:Y2-axis label:' \
|
||||||
|
'--zlabel:Z-axis label:' \
|
||||||
|
'--zlabel:Z-axis label:' \
|
||||||
|
'--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:' \
|
||||||
|
'--ymin:min Y:' \
|
||||||
|
'--ymax:max Y:' \
|
||||||
|
'--y2min:min Y2:' \
|
||||||
|
'--y2max:max Y2:' \
|
||||||
|
'--zmin:min Z:' \
|
||||||
|
'--zmax:max Z:' \
|
||||||
|
'*--y2:plot to place on the Y2 axis:' \
|
||||||
|
'--curvestyleall[Additional styles for ALL curves]:' \
|
||||||
|
'*--extracmds[Additional gnuplot commands]:' \
|
||||||
|
'--size[Gnuplot size option]:' \
|
||||||
|
'--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]:' \
|
||||||
|
'(--3d)--monotonic[Resets plot if an X in the past is seen]' \
|
||||||
|
'--extraValuesPerPoint[How many extra values are given for each data point]:' \
|
||||||
|
'--dump[Instead of printing to gnuplot, print to STDOUT]' \
|
||||||
|
'*--curvestyle[Additional styles for a curve]:curve id: :style:' \
|
||||||
|
'*--legend[Legend for a curve]:curve id: :legend:'
|
2
debian/feedgnuplot.install
vendored
Normal file
2
debian/feedgnuplot.install
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
completions/bash/feedgnuplot /etc/bash_completion.d/
|
||||||
|
completions/zsh/_feedgnuplot /usr/share/zsh/vendor-completions
|
Loading…
Reference in New Issue
Block a user