[GRASS-dev] Simple bash auto-completion for GRASS

Vaclav Petras wenzeslaus at gmail.com
Tue Feb 5 03:02:47 PST 2013


Hi,

he is the simple incomplete version of auto-completion for GRASS bash
command line.

Implemented only of two commands -- d.rast and d.vect -- and works
only in the case with single parameter (d.vect mapname). It completes
the name of raster/vector map (for all mapsets as returned by
g.mlist).

How to test it: in the GRASS command line run "source
bash_completion.sh". Type "d.rast " and press TAB.

I don't know what should be auto-completed; how to deal with the
number of GRASS commands; if/how to handle parameters; what are
side-effects; how it works on various systems/shells; and how to
integrated into GRASS. The question which I tried to answer is: Is
that possible?

Vaclav
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bash_completion.sh
Type: application/x-sh
Size: 799 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130205/e28d7e2f/attachment.sh>


More information about the grass-dev mailing list