~/.bashrc or ~/.grass.bashrc

2 messages Options
Embed this post
Permalink
Sebastian P. Luque

~/.bashrc or ~/.grass.bashrc

Reply Threaded More More options
Print post
Permalink
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

_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Glynn Clements

Re: ~/.bashrc or ~/.grass.bashrc

Reply Threaded More More options
Print post
Permalink

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 <[hidden email]>
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user