[GRASS-user] grass prompt default working directory

Martin Landa landa.martin at gmail.com
Tue Feb 26 12:43:13 PST 2013


Hi,

2013/2/26 Hamish <hamish_b at yahoo.com>:
> Hamish wrote:
>> firstly, you can add this to ~/.grass.bashrc:
>>
>> g.cd()
>> {
>>   MAPSET=`g.gisenv get=MAPSET`
>>   LOCATION_NAME=`g.gisenv get=LOCATION_NAME`
>>   GISDBASE=`g.gisenv get=GISDBASE`
>>   LOCATION="$GISDBASE/$LOCATION_NAME/$MAPSET"
>>   cd "$LOCATION"
>> }

cool, as Vaclav noted please add such useful notes on the wiki.
Otherwise it will be lost in ML jungle.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


More information about the grass-user mailing list