public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Bash Config files
@ 2005-11-18 20:19 gentuxx
  2005-11-19 13:16 ` darren kirby
  0 siblings, 1 reply; 2+ messages in thread
From: gentuxx @ 2005-11-18 20:19 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

This is sort of a n00bie question, but something I haven't really had
to mess around with.  I recently did an `emerge world` and after the
update and a reboot, my root prompt has changed back to the gentoo
default.  It now seems that the /etc/bashrc and /etc/profile are
overriding my root's .bashrc and .profile.  In addition to the root
prompt being changed, it seems that the PATH environment variable
isn't complete.  _Some_ utilities that are part of the gentoolkit (but
not all) aren't found in the path (qpkg, equery, etc.).  So what do I
need to do to set things right, so my local setting override the
global?  Or is there a reason for this, and I should just modify the
global, since it has if/else's for root?

TIA

- --
gentux
echo "hfouvyAdpy/ofu" | perl -pe 's/(.)/chr(ord($1)-1)/ge'

gentux's gpg fingerprint ==> 34CE 2E97 40C7 EF6E EC40  9795 2D81 924A
6996 0993
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDfjczLYGSSmmWCZMRAiXhAJ4/MiOKe0JNu+49oMj0Xk/5f1JCzACff4eP
0a2w7SVRdvCfgAfNIqIa9cc=
=JkBR
-----END PGP SIGNATURE-----

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] Bash Config files
  2005-11-18 20:19 [gentoo-user] Bash Config files gentuxx
@ 2005-11-19 13:16 ` darren kirby
  0 siblings, 0 replies; 2+ messages in thread
From: darren kirby @ 2005-11-19 13:16 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]

quoth the gentuxx:
> Hi all,
>
> This is sort of a n00bie question, but something I haven't really had
> to mess around with.  I recently did an `emerge world` and after the
> update and a reboot, my root prompt has changed back to the gentoo
> default.  It now seems that the /etc/bashrc and /etc/profile are
> overriding my root's .bashrc and .profile.  In addition to the root
> prompt being changed, it seems that the PATH environment variable
> isn't complete.  _Some_ utilities that are part of the gentoolkit (but
> not all) aren't found in the path (qpkg, equery, etc.).  So what do I
> need to do to set things right, so my local setting override the
> global?  Or is there a reason for this, and I should just modify the
> global, since it has if/else's for root?
>
> TIA

I have found the best way to deal with this is to add this snippet to the end 
of /etc/profile:

if [ -e ~/.bashrc]; then
        . ~/.bashrc
fi

The problem is that you need to add it again when you upgrade baselayout...

> gentux
> echo "hfouvyAdpy/ofu" | perl -pe 's/(.)/chr(ord($1)-1)/ge'
>
> gentux's gpg fingerprint ==> 34CE 2E97 40C7 EF6E EC40  9795 2D81 924A
> 6996 0993

-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-19 13:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-18 20:19 [gentoo-user] Bash Config files gentuxx
2005-11-19 13:16 ` darren kirby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox