> > > > Hi > > I have add several aliases to my .bashrc file ,but the file would not > > be consulted while starting up. > > What I am doing wrong > > You need to put them in your .bash_profile file, and you need to make > sure you are running a `login shell'. To get a login shell in an xterm, > you need to specify the `-ls' option, otherwise your .bash_profile won't > be parsed. >
There are other similar ways as well. For example, have your aliases in .bashrc but source by .bash_profile. [06:27:02 shaul]$ cat .bash_profile # ~/.bash_profile: executed by bash(1) for login shells. if [ -f ~/.bashrc ] then case $- in *i*) source ~/.bashrc esac fi [06:33:15 shaul]$