On 03/14/2012 03:55 PM, Tyler Smith wrote:
Hi, When I change locations within a grass session with g.mapset, the prompt is not updated. If I start grass with:grass -text ~/grassdata/dem/PERMANENT my prompt looks like this: GRASS 6.4.1 (dem):~ > The reference to the location '(dem)' stays, even after changing to another location. How do I make Grass update this? The new environment variables are stored in the $LOCATION_NAME/$MAPSET/.bashrc file (if you're using bash). But this file is not 'source'ed when changing mapsets. So you need to do: eval `g.gisenv` source $GISDBASE/$LOCATION_NAME/$MAPSET/.bashrc or manually reset the prompt: export PS1="GRASS-6.4.2 ($LOCATION_NAME) \w > " Thanks, Tyler Grass 6.4.1 Ubuntu Oneiric _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user This mail was received via Mail-SeCure System.
|
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
