I'm running RHEL5. I added simple alias command into
~/.bashrc. When I start a new terminal, nothing happens but
source ~/.bashrc works so I know the syntax is correct. I also modified/source-tested
~/.bash_profile but it's not executed on terminal startup either.
~/.profile don't exist on my system.
here is my
# .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions alias hi=hello
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH