Re: [gentoo-user] .bashrc not getting sourced at login
On Thursday 24 August 2006 19:04, Neil Bothwick wrote: > On Thu, 24 Aug 2006 09:44:28 -0700, gentuxx wrote: > > I'm having an issue with root's .bashrc not getting sourced at > > login. > > From man bash: > > "When an interactive shell that is not a login shell is started, bash > reads and executes commands from ~/.bashrc, if that file exists." > > .bash_profile is read for a login shell. Yes, the usual way around this is to put [[ -f ~/.bashrc ]] && . ~/.bashrc at the beginning of .bash_profile. The files in /etc/skel use this solution, but gentoo installation does not create those files for user root by default, you have to copy them by hand. -- gentoo-user@gentoo.org mailing list
[gentoo-user] .bashrc not getting sourced at login
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm having an issue with root's .bashrc not getting sourced at login. I was under the impression that .bashrc setting overrode those of /etc/bashrc. Is this not the case? Any idea why this isn't happening? TIA - -- gentux echo "hfouvyyAhnbjm/dpn" | perl -pe 's/(.)/chr(ord($1)-1)/ge' gentux's gpg fingerprint ==> 5495 0388 67FF 0B89 1239 D840 4CF0 39E2 18D3 4A9E -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE7ddsTPA54hjTSp4RApFZAJ9FU1TErXqlDqDVo19E3+35/d8InwCgi9GR nyk4xNIuR1EprvgeIzxwlm4= =m66h -END PGP SIGNATURE- -- gentoo-user@gentoo.org mailing list