Quoting "Reuben D. Budiardja" <[EMAIL PROTECTED]>:

when you 'log in', it is not .bashrc which gets executed, but .bash_profile
.bashrc is executed when you open an xterm (or some other term emulator), when
you `su` or in some other instances, as when you telnet or ssh.

maybe if you do a link from your .bashrc to a .bash_profile, though it would be
better to have separate entries for each, and have a comon file, say,
.bash_common, and include it from both .bashrc and .bash_profile with the line
. .bash_common

(note the '.' at the beginning of the line, since it is it that says "include
this file")

> 
> Hi,
> I recenltly moved around my home directory. Previously it was in
> /rdonald 
> (separate partition), and then I move it to /home/rdonald. I logged in
> as 
> root, and edit /etc/passwd and put my home dir as /home/rdonald there.
> 
> However, I forgot to copy some files from the old home before I deleted
> it, 
> including .bashrc. No problem, I though, I just copied it from my other
> 
> machine. But then whenever I log in, the /home/rdonald/.bashrc file does
> not 
> get executed. I know this because I customize my prompt there, and I
> defined 
> some aliases. If after log in, I type 'bash' again, then all is well.
> What do 
> I need to look to fix this? It's just little annoying.
> 
> Thanks for any answer.
> RDB
> 
> 
> -- 
> Reuben D. Budiardja
> Department of Physics and Astronomy
> The University of Tennessee, Knoxville, TN
> -------------------------------------------------
> /"\  ASCII Ribbon Campaign against HTML    
> \ /  email and proprietary format      
>  X   attachments.
> / \
> -------------------------------------------------
> Have you been used by Microsoft today? 
> Choose your life. Choose freedom. 
> Choose LINUX.
> -------------------------------------------------
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]
> https://www.redhat.com/mailman/listinfo/redhat-list
> 


-------------------------------------------------
Obtén tu correo en www.correo.unam.mx
UNAMonos Comunicándonos



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to