[GRASS-dev] [GRASS GIS] #4007: grass.py and bash: respect aliases in $HOME/.bashrc

GRASS GIS trac at osgeo.org
Sun Dec 8 17:56:08 PST 2019


#4007: grass.py and bash: respect aliases in $HOME/.bashrc
--------------------------+---------------------------------
  Reporter:  neteler      |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  7.8.2
 Component:  Default      |    Version:  git-releasebranch78
Resolution:               |   Keywords:  bash
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+---------------------------------

Comment (by hcho):

 A workaround (current master) is to add

 {{{
 source ~/.bashrc
 }}}

 to $HOME/.grass7/bashrc.

 I kind of understand why we have this separate bashrc (history for each
 mapset), but I'm not sure why we have two different places to read this
 file in grass.py: load_env (exports) and bash_startup (non-exports).
 Hopefully, we can make it cleaner soon.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/4007#comment:1>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list