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

Glynn Clements glynn at gclements.plus.com
Thu Oct 29 04:39:38 EDT 2009


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 at gclements.plus.com>


More information about the grass-user mailing list