app-shells/bash: show full cwd for root user
authorJason A. Donenfeld <zx2c4@gentoo.org>
Sat, 10 Jun 2017 02:06:07 +0000 (04:06 +0200)
committerJason A. Donenfeld <zx2c4@gentoo.org>
Sat, 10 Jun 2017 12:02:30 +0000 (14:02 +0200)
commit15336782891de2bbbd0dca704d028208d5ac7a6d
treef4fa0b4541cd50322f42cf684622d999fe7b29b3
parent54c68619441745c64a92a4e039b48b494795db06
app-shells/bash: show full cwd for root user

Though the first declaration of PS1 in this file uses \w uniformly for
root and non-root, the two subsequent ones inconsistently do not. Thus, a
normal user is able to see clearly where he is in the file system,
whereas the root user -- who should have this sort of visibility -- does
not, since \W (upper-case) is used instead. It seems clear that this
difference is just the result of an old bug; \w for both user types is
clearly more reasonable. This patch fixes things up as such.

Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
Acked-by: Robin H. Johnson <robbat2@gentoo.org>
app-shells/bash/files/bashrc