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 03:06:42 +0000 (05:06 +0200)
commit1db68b96bcedd3ace96a31729cbdc17c71afdb86
treec6a928684f74900f37eb2a8f6e1727681fd00064
parent3de8db65759104666d7d40ab2663d50dea002f96
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>
app-shells/bash/files/bashrc