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? – terdon Sep 12 '14 at 12:19.bashrc
nor.bash_profile
is being sourced, you're likely not running bash at all. – terdon Sep 12 '14 at 17:05echo $SHELL
= /bin/zsh – user49888 Sep 12 '14 at 17:13~/.bashrc
isn't being run. Is there azsh
equivalent? – user49888 Sep 12 '14 at 17:14~/.zshrc
. In that case, I am closing your question as non-reproducible since it is unlikely to help future visitors. If you have a newzsh
question, feel free to ask it. – terdon Sep 12 '14 at 17:16