[GRASS-user] ~/.bashrc or ~/.grass.bashrc

Hi,

Is there any difference between placing variable definitions in
~/.bashrc vs. ~/.grass.bashrc? Furthermore, should PNG-related
variables be exported? Thanks for any advice.

Cheers,

--
Seb

Seb wrote:

Is there any difference between placing variable definitions in
~/.bashrc vs. ~/.grass.bashrc? Furthermore, should PNG-related
variables be exported? Thanks for any advice.

~/.grass.bashrc is read by the session shell, so it can use and
override any settings made by the GRASS startup script. You can also
use it for settings which should only apply to GRASS sessions.

OTOH, if you want to affect the GRASS startup script, the settings
have to have been made already, so they would need to go into
~/.bashrc (or ~/.profile, ~/.bash_profile, etc).

--
Glynn Clements <glynn@gclements.plus.com>