[GRASS-dev] Custom GRASS command line prompt

Nikos Alexandris nik at nikosalexandris.net
Sat Jul 27 06:23:21 PDT 2013


I want to alter the default GRASS command line prompt. For my needs, I find it better to 
have the current Mapset shown along with the Location.

As a first experiment, I edited the corresponding file in place:

grass7_trunk/dist.x86_64-unknown-linux-gnu/grass70.tmp, line 1039:

- f.write("PS1='GRASS %s (%s):\w > '\n" % (grass_version, location_name))
+ f.write("PS1='G %s (%s/%s):\w > '\n" % (grass_version, location_name, mapset))


Now it appears like:  "G 7.0.svn (utm_37s/post):~ >".  My understanding is that I 
probably need to edit the file:

grass7_trunk/dist.x86_64-unknown-linux-gnu/grass70.tmp


Do you have customised prompts?  Any ideas for a more productive command line?

Thanks, Nikos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130727/5d1afd9c/attachment-0001.html>


More information about the grass-dev mailing list