Re: Bash default /etc/bash.bashrc overwrites PS1 even if SUDO_PS1 is set
From:
Bob Proulx
Subject:
Re: Bash default /etc/bash.bashrc overwrites PS1 even if SUDO_PS1 is set
Date:
Tue, 19 Dec 2017 16:32:24 -0700
User-agent:
Mutt/1.9.2 (2017-12-15)
Eric Engstrom wrote:
> doh - thanks - didn't think of that, and that makes more sense.
>
> Nevermind then.
In the /usr/share/doc/bash/README.Debian.gz file:
5. What is /etc/bash.bashrc? It doesn't seem to be documented.
The Debian version of bash is compiled with a special option
(-DSYS_BASHRC) that makes bash read /etc/bash.bashrc before ~/.bashrc
for interactive non-login shells. So, on Debian systems,
/etc/bash.bashrc is to ~/.bashrc as /etc/profile is to
~/.bash_profile.
Bob