Browse Source

grass.py: reverted part of https://trac.osgeo.org/grass/changeset/65307 to allow aliases and custom prompt in ~/.grass7/bashrc again

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65584 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 9 years ago
parent
commit
8559f27037
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/init/grass.py

+ 2 - 0
lib/init/grass.py

@@ -1446,6 +1446,8 @@ PROMPT_COMMAND=grass_prompt\n""" % (_("2D and 3D raster MASKs present"),
     path = os.path.join(userhome, ".grass.bashrc") # left for backward compatibility
     if os.access(path, os.R_OK):
         f.write(readfile(path) + '\n')
+    if os.access(grass_env_file, os.R_OK):
+        f.write(readfile(grass_env_file) + '\n')
     
     f.write("export PATH=\"%s\"\n" % os.getenv('PATH'))
     f.write("export HOME=\"%s\"\n" % userhome) # restore user home path