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

Alexandre Quessy listes at sourcelibre.com
Wed Oct 13 15:03:18 PDT 2004


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
PHP, etc. in Montréal 


More information about the X-Unix mailing list