[GRASSLIST:2270] Re: Making better use of ~/.grassrc5
glynn.clements at virgin.net
Sat Aug 4 11:26:34 EDT 2001
Rich Shepard wrote:
> I want to increast the default size of the graphic monitor using
> MONITOR_WIDTH and MONITOR_HEIGHT. But, rather than setting them as global
> environment variables in bash, I would like them to be active only when
> GRASS is running.
> Can I put these variables in ~/.grassrc5 and have them read and applied
> whenever I start GRASS?
Yes. $GISBASE/etc/Init.sh uses g.gisenv to insert the contents of
~/.grassrc5 into the environment used by the shell.
> What about releasing them when GRASS is shut down?
The "grass5" script spawns a subshell; the variables defined in
~/.grassrc5 only apply to that subshell.
> Could that be done with a change to /usr/local/bin/grass5?
No change needed.
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-user