[GRASS-SVN] r47884 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 25 07:48:42 EDT 2011


Author: martinl
Date: 2011-08-25 04:48:42 -0700 (Thu, 25 Aug 2011)
New Revision: 47884

Modified:
   grass/trunk/lib/init/grass.py
Log:
grass.py: show also mapset in $PS


Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2011-08-25 11:47:40 UTC (rev 47883)
+++ grass/trunk/lib/init/grass.py	2011-08-25 11:48:42 UTC (rev 47884)
@@ -803,7 +803,7 @@
     
     f = open(bashrc, 'w')
     f.write("test -r ~/.alias && . ~/.alias\n")
-    f.write("PS1='GRASS %s (%s):\w > '\n" % (grass_version, location_name))
+    f.write("PS1='GRASS %s (%s@%s):\w > '\n" % (grass_version, location_name, mapset))
     
     path = os.path.join(userhome, ".grass.bashrc")
     if os.access(path, os.R_OK):



More information about the grass-commit mailing list