.alias file not sourcing during login to bash shel


Hi Folks

I a new user here and came up with a problem today. I am sure it is user error, so maybe one of you can tell me what to change.

When I login via telnet to my home directory, the .alias file doesnt appear to be sourcing. (In fact, the default .alias in my account appears to be not applicable to the default shell I got, which was the bash shell-- I believe that bash requires = signs in the .alias variable setups, but maybe I am wrong on that. Pardon me if I am not using these terms correctly. )

I can run a ‘source .alias’ at the command line, which enables all my aliases, however the default .bashrc file script doesnt seem to be sourcing the .alias file correctly. Can someone tell me where I went wrong?

Thanks very much!



IIRC, .alias is for csh. Put your aliases in .bash_profile like so:

alias ls='ls -F --color=auto’
or whatever.

You might want to put them in .bashrc instead and then put something like this in .bash_profile:
if [ -f ~/.bashrc ]; then
. ~/.bashrc