Quote:
quote:Originally posted by login:
- You can also edit /etc/profile and type any program you would like to execute on bash startup.
|
This is probably better done using ~/.bash_profile
Also, ~/.bashrc is BASH Run Control, where you would execute startup commands when the shell is invoked for your user, rather than ~/.bash_profile, where you would set say, environment variables or such and export them. It doesn't make a big difference where you do these things depending on the nature of what it is you are trying to accomplish, but I just wanted to clarify that.
For example, I set several variables within ~/.bash_profile for my user which are CVS_RSH and CVSROOT since I connect to the Fedora CVS development server to checkout CVS trees.
It beats having to export these variables everytime I login.