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. ~/.bash_login
and ~/.profile
don't exist on my system.
here is my ~/.bashrc
# .bashrc
# Source global definitions if [ -f /etc/bashrc ]; then
. /etc/bashrc fi
# User specific aliases and functions
alias hi=hello
And my ~/.bash_profile
# .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
.bash_profile
, not.bash_profiles
. Was that a typo?.bashrc
nor.bash_profile
is being sourced, you're likely not running bash at all.