* [gentoo-user] .bashrc not getting sourced at login
@ 2006-08-24 16:44 gentuxx
2006-08-24 17:04 ` Neil Bothwick
0 siblings, 1 reply; 3+ messages in thread
From: gentuxx @ 2006-08-24 16:44 UTC (permalink / raw
To: gentoo-user
-----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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] .bashrc not getting sourced at login
2006-08-24 16:44 [gentoo-user] .bashrc not getting sourced at login gentuxx
@ 2006-08-24 17:04 ` Neil Bothwick
2006-08-24 17:42 ` Etaoin Shrdlu
0 siblings, 1 reply; 3+ messages in thread
From: Neil Bothwick @ 2006-08-24 17:04 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 417 bytes --]
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.
--
Neil Bothwick
"He's dead, Jim. You get his phaser, I'll grab his wallet."
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] .bashrc not getting sourced at login
2006-08-24 17:04 ` Neil Bothwick
@ 2006-08-24 17:42 ` Etaoin Shrdlu
0 siblings, 0 replies; 3+ messages in thread
From: Etaoin Shrdlu @ 2006-08-24 17:42 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-08-24 17:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-24 16:44 [gentoo-user] .bashrc not getting sourced at login gentuxx
2006-08-24 17:04 ` Neil Bothwick
2006-08-24 17:42 ` Etaoin Shrdlu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox