From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 36F60158091 for ; Sun, 15 May 2022 12:45:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 30664E0843; Sun, 15 May 2022 12:45:41 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1958FE0843 for ; Sun, 15 May 2022 12:45:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1AA7134175E for ; Sun, 15 May 2022 12:45:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EF5C4105 for ; Sun, 15 May 2022 12:45:37 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1652618441.7e647e02c4f09ffb0df70a5d3771d0f834e15849.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/zsh/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-shells/zsh/files/prompt_gentoo_setup-1 X-VCS-Directories: app-shells/zsh/files/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 7e647e02c4f09ffb0df70a5d3771d0f834e15849 X-VCS-Branch: master Date: Sun, 15 May 2022 12:45:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 294309f8-750c-4653-b6ec-a5c36a581ab2 X-Archives-Hash: 040afed32e0f31df1cd27fb578497770 commit: 7e647e02c4f09ffb0df70a5d3771d0f834e15849 Author: Andrew Ammerlaan gentoo org> AuthorDate: Fri May 13 09:22:39 2022 +0000 Commit: Lars Wendler gentoo org> CommitDate: Sun May 15 12:40:41 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e647e02 app-shells/zsh: restore color change on su Signed-off-by: Andrew Ammerlaan gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/25461 Signed-off-by: Lars Wendler gentoo.org> app-shells/zsh/files/prompt_gentoo_setup-1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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