0

I am new to Ubuntu and am trying to learn the terminal. This may be a very basic question however, I have a program that I type in rat to run. However, before I can type in rat to run the program, I have to go to /home/name/file

and then type in:

source install/env_rat-dev.sh

Could I have those beginning steps happen when I open terminal so I do not have to do it every time?

Thanks so much for any help .

0

1 Answer 1

1

You can add

source install/env_rat-dev.sh

to your ~/.bashrc file.

~/.bashrc is executed every time a new terminal is opened.

bash manual

~/.bashrc The individual per-interactive-shell startup file

1
  • 1
    The path should be probably /home/name/file/install/env_rat-dev.sh.
    – Melebius
    Feb 27, 2017 at 8:26

Not the answer you're looking for? Browse other questions tagged .