1

I'm used to Ubuntu, where I just create a .bash_aliases file and away you go. In CentOS, how do I get .bashrc to load the .bash_aliases file?

Thufir
  • 1,870
  • 7
  • 34
  • 62

1 Answers1

3

If i look into my .bashrc i see the following code

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

This sources the .bash_aliases if present.

May be you have simply add this fragment to your .bashrc in your centos box.