summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <zx2c4@gentoo.org>2017-06-10 05:07:18 +0200
committerJason A. Donenfeld <zx2c4@gentoo.org>2017-06-10 05:07:18 +0200
commitf3b3ce20de34a3e4c7a4f7ab014c3f6627ac74e6 (patch)
tree9ca4073c05158fed516eec23e412ab93460c48ae /app-shells/bash/files
parentmedia-sound/gogglesmm: version bump (diff)
downloadgentoo-f3b3ce20de34a3e4c7a4f7ab014c3f6627ac74e6.tar.gz
gentoo-f3b3ce20de34a3e4c7a4f7ab014c3f6627ac74e6.tar.bz2
gentoo-f3b3ce20de34a3e4c7a4f7ab014c3f6627ac74e6.zip
Revert "app-shells/bash: show full cwd for root user"
YIKES! I did not mean to actually push this, just send it to the mailing list. Apologies. This reverts commit 1db68b96bcedd3ace96a31729cbdc17c71afdb86.
Diffstat (limited to 'app-shells/bash/files')
-rw-r--r--app-shells/bash/files/bashrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/app-shells/bash/files/bashrc b/app-shells/bash/files/bashrc
index 03694691d4a7..6db696681956 100644
--- a/app-shells/bash/files/bashrc
+++ b/app-shells/bash/files/bashrc
@@ -86,7 +86,7 @@ fi
if ${use_color} ; then
if [[ ${EUID} == 0 ]] ; then
- PS1+='\[\033[01;31m\]\h\[\033[01;34m\] \w \$\[\033[00m\] '
+ PS1+='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
else
PS1+='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
fi
@@ -99,7 +99,7 @@ if ${use_color} ; then
else
if [[ ${EUID} == 0 ]] ; then
# show root@ when we don't have colors
- PS1+='\u@\h \w \$ '
+ PS1+='\u@\h \W \$ '
else
PS1+='\u@\h \w \$ '
fi