<html style="direction: ltr;">
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="latin-charset" bgcolor="#FFFFFF"
text="#000000">
On 03/14/2012 03:55 PM, Tyler Smith wrote:
<blockquote
cite="mid:CADkt+Zvemhz2zvypaz2kNbtunuyHX7Sc2FpUYDZ1yO851Yi3fA@mail.gmail.com"
type="cite">
<pre wrap="">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?
</pre>
</blockquote>
<br>
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:<br>
eval `g.gisenv`<br>
source $GISDBASE/$LOCATION_NAME/$MAPSET/.bashrc<br>
<br>
or manually reset the prompt:<br>
export PS1="GRASS-6.4.2 ($LOCATION_NAME) \w > "<br>
<br>
<blockquote
cite="mid:CADkt+Zvemhz2zvypaz2kNbtunuyHX7Sc2FpUYDZ1yO851Yi3fA@mail.gmail.com"
type="cite">
<pre wrap="">
Thanks,
Tyler
Grass 6.4.1
Ubuntu Oneiric
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
This mail was received via Mail-SeCure System.
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>