Sourcing in a script

Hi forum,
I am new to Linux and I have a rather simple question. To be able to run the Intel Fortran Compiler (main reason for installing Linux for me) I need to run those commands in terminal each time I open the terminal (GNOME, openSUSE 11.0):
source /opt/intel/fce/10.1.015/bin/ifortvars.sh
source /opt/intel/idbe/10.1.015/bin/idbvars.sh

To speed up the process I wanted to created a script that would just source those two scripts and I thought something as simple as that would work:

#!/bin/bash
source /opt/intel/fce/10.1.015/bin/ifortvars.sh
source /opt/intel/idbe/10.1.015/bin/idbvars.sh

However, it does not work (those two scripts set the PATH and LD_LIBRARY_PATH).

My question thus is: how can I create a script/use any other method that would source those two scripts at startup?
Any help will be greatly appreciated,
Cheers,
Tomasz

The problem is you are doing those actions inside an interior shell and those environment settings disappear when that shell exits. You have to do the source in your terminal shell. But you can create an alias to make it easier:

alias ifcsetup='source ...; source ...'

Then run ifcsetup before you start work. Or if you are going to do this for long periods, put the source commands in .bashrc.

Thanks ken_yap. I put the sourcing in .bashrc and it works perfectly.