Bug#443245: root's .bashrc PS1 setting defeats debian_chroot
Package: rootskel
Version: 1.50
The default /root/.bashrc contains this line:
export PS1='\h:\w\$ '
That line isn't necessary because /etc/bash.bashrc does a similar but
better thing:
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
Indeed, the /root/.bashrc PS1 setting defeats attempts to set
debian_chroot (as an exported environment variable, or via /etc) to
affect root's prompt.
I think the PS1 setting in /root/.bashrc can safely be removed.
Ian.
Reply to: