[X-Unix] .profile v/s .bashrc

Eric Crist ecrist at secure-computing.net
Wed Oct 13 16:19:54 PDT 2004


On Oct 13, 2004, at 5:03 PM, Alexandre Quessy wrote:

> Hi!
>
> I want to access my aliases wherever I am I'm my shell. So, I wrote 
> them in my $HOME/.profile file. But there is a problem.
>
> When I first log in, it's my « .profile » that is executed. If i 
> change my shell to zsh, for instance, and then I switch back to bash, 
> it's my « .bashrc » that is executed and my aliases that were set in 
> the « .profile » aren't available anymore. Is there a workaround so 
> that my aliases are always availables ?
>
> Thanks.
>
> Alexandre Quessy

You *could* create a symbolic link from .bashrc to .profile.  To do 
this, do the following:

# ln -s .profile .bashrc

HTH
-----
Eric F Crist
Secure Computing Networks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://listserver.themacintoshguy.com/pipermail/x-unix/attachments/20041013/451aea04/PGP.bin


More information about the X-Unix mailing list