Re: Some shell's problem
On Mon, 21 Jul 2003 04:50:10 +0200, James Ng Yuen Sum wrote:
> I have tried to add the above command in ~./bashrc and ~/.profile, but
> when i start kde again, i have to type again, so that i want to ask
> which file i need to edit so that the above two commands can run
> automatically when i start linux.
man bash tells you:
.bashrc is executed when a non-login shell is started.
.profile is executed when a login shell is started AND .bash_profile
doesn't exist.
So guess where you have to look? ;-)
Usually, one makes .bash_profile run .bashrc also. There's example code
how to do that in the default .bash_profile that Debian installs. (Look in
/etc/skel/.bash_profile.)
--
Best Regards, | Hi! I'm a .signature virus. Copy me into
Sebastian | your ~/.signature to help me spread!
Reply to: