[GRASS-user] Re: loss of bash aliases

Ivan Shmakov ivan at theory.asu.ru
Thu Mar 6 00:29:37 EST 2008


>>>>> Dylan Beaudette <dylan.beaudette at gmail.com> writes:

 >> .grass.bashrc

 > that did it! thanks.

	It may worth to ``include'' ~/.bashrc from ~/.grass.bashrc, e. g.:

--cut: .grass.bashrc--
if [ -r "$HOME"/.bashrc ]; then
    . "$HOME"/.bashrc
fi
--cut: .grass.bashrc--

	(Just as ~/.bashrc typically sources /etc/bashrc.)

	This way, you should get all the aliases, Shell variables &
	functions defined in ~/.bashrc defined in GRASS as well.  (But
	you'll need to be sure that your ~/.bashrc won't interfere with
	GRASS.)



More information about the grass-user mailing list