summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2022-05-13 11:22:39 +0200
committerLars Wendler <polynomial-c@gentoo.org>2022-05-15 14:40:41 +0200
commit7e647e02c4f09ffb0df70a5d3771d0f834e15849 (patch)
treeedeab75082acf6a90bb27e5de2758a62df676a8d /app-shells
parentmedia-libs/zxing-cpp: 1.3.0 version bump (diff)
downloadgentoo-7e647e02c4f09ffb0df70a5d3771d0f834e15849.tar.gz
gentoo-7e647e02c4f09ffb0df70a5d3771d0f834e15849.tar.bz2
gentoo-7e647e02c4f09ffb0df70a5d3771d0f834e15849.zip
app-shells/zsh: restore color change on su
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/25461 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-shells')
-rw-r--r--app-shells/zsh/files/prompt_gentoo_setup-12
1 files changed, 1 insertions, 1 deletions
diff --git a/app-shells/zsh/files/prompt_gentoo_setup-1 b/app-shells/zsh/files/prompt_gentoo_setup-1
index 046e2d87f53a..8b9ac4439919 100644
--- a/app-shells/zsh/files/prompt_gentoo_setup-1
+++ b/app-shells/zsh/files/prompt_gentoo_setup-1
@@ -14,7 +14,7 @@ prompt_gentoo_setup () {
local prompt_gentoo_user=${2:-'green'}
local prompt_gentoo_root=${3:-'red'}
- if [ "$USER" = 'root' ]
+ if [ "$EUID" = '0' ]
then
local base_prompt="%B%F{$prompt_gentoo_root}%m%k "
else