On 29-Oct-99 prabhakar chaganti wrote: > This message was sent from Geocrawler.com by "prabhakar chaganti" > <[EMAIL PROTECTED]> > Be sure to reply to that address. > > Hi everyone: > > I am trying to set up some aliases for frequently used commands. I have > tried adding them to ~/.bashrc and /etc/profile and /etc/bashrc,but have not > had any luck in getting bash to recognize the aliases.Would there be any > reason at all that my ~/.bashrc would not get read by bash. After making the > changes, I have tried both logging out and logging back in, and sourcing the > .bashrc file to try to get bash to see the aliases. I checked to see if > there is any syntax error by trying out each alias from the comma > ndline. All of them seem to work. Does anyone have any ideas as to what I am > doing wrong here??
~/.bashrc is for non-login shells. Have you tried adding them to ~/.profile or ~/.bash_profile ? I put my aliases in ~/.bashrc BUT I have in my ~/.bash_profile the line: source $HOME/.bashrc This is so that when I use a non-login shell or a login shell, my aliases will still be read. .bashrc takes care of the non-login shells, whereas if I am on a login shell, .bash_profile will source the .bashrc file. I don't know if that is *the right way*, but that is how I do it. -- Andrew > > Thanks > prabhakar > > > > > Geocrawler.com - The Knowledge Archive > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < > /dev/null ----------------------------- GnuPG Public KeyID: 0x48109681 *we all live downstream*

