mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: June 17 2006,14:10 |
|
If you make changes to .bash_profile, they will not be applied until you either log out and back in again, or exit X and source /home/dsl/.bash_profile.
The .bash_profile file is run only for login shells, which in DSL means that it is run only once, when you first log in. For this reason I recommend adding aliases to .bashrc instead, and source that file from .bash_profile. In this way, every shell will have access to the aliases, and changes will not require re-sourcing for anything but the currently opened shell(s).
The suggestion made by the professor will work as well, though you will need to source the file from .bashrc AND source either .alias or .bashrc from .bash_profile in order to apply aliases to all shells. It is, however, a very useful method of setting alias groups, to have different sets of aliases at different times.
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|