delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:reply-to:message-id:to:subject | |
:in-reply-to:references:mime-version:content-type | |
:content-transfer-encoding; q=dns; s=default; b=gMUMWHJpRS+EM+ua | |
quu4DuP8nmm60BrVYiQbc+6gSic1TFqFyHA60syWm9lZwKBzjG5rLvUmzilcHQSl | |
PCyO+eS5MlWSpMJF1uA8URW0ZQJDkPzOnAhKBRFT3uLQZJ/0jk981Ba0AWCbskNo | |
PT7VARA0Xo2vWuXRFIzMvPPLCEw= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:reply-to:message-id:to:subject | |
:in-reply-to:references:mime-version:content-type | |
:content-transfer-encoding; s=default; bh=AApltRJiXakIkB9TPT2wRb | |
TYjc8=; b=uXAoazsgvCDKoS1N7OImeTb1NYuRqvJto+xJc0ki0ZedYCfiMPRl6i | |
gSr3VTKOBurfGwpFB3qSpydEiN69/eB7e3VaBBheEwYmn921xp7vq8q7if92rNV9 | |
kL7PGc1iPGyOeXuu6svu/gxn2qiwr1e1ImAVYxb1/hk1nF2SFeqFI= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=4.7 required=5.0 tests=AWL,BAYES_80,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 |
X-HELO: | smtp.ht-systems.ru |
Date: | Sat, 26 Sep 2015 12:11:18 +0300 |
From: | Andrey Repin <anrdaemon AT yandex DOT ru> |
Reply-To: | cygwin AT cygwin DOT com |
Message-ID: | <293283055.20150926121118@yandex.ru> |
To: | Ken Brown <kbrown AT cornell DOT edu>, cygwin AT cygwin DOT com |
Subject: | Re: base-files-4.2-3 : attention maintainer |
In-Reply-To: | <5605983C.8060909@cornell.edu> |
References: | <BLU182-W10FB6B21A2AEC90F71470FD4450 AT phx DOT gbl> <560407A6 DOT 40206 AT gmail DOT com> <87io6z3euv DOT fsf AT Rainer DOT invalid> <5605983C DOT 8060909 AT cornell DOT edu> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Greetings, Ken Brown! > As long as you're updating base-files anyway, maybe you could implement > one of the previously-discussed proposals for showing a prompt of "#" > instead of "$" in shells with sufficient privileges. Unfortunately, I > don't remember if there was ever a consensus reached on exactly how that > should be done. Something to this extent? PS1_TAIL="$( x="$" for group in $(id -G); do { test $group -eq 114 && { x="#"; break; } test $group -eq 544 && { x="#"; break; } test $group -eq 0 && { x="Please remove well-known SID overrides from your /etc/group file#"; break; } } done echo $x )" if [ "$color_prompt" = yes ]; then PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\007\]\n$PS1_TAIL ' else PS1='\u@\h:\w\007\n$PS1_TAIL ' fi unset color_prompt force_color_prompt -- With best regards, Andrey Repin Saturday, September 26, 2015 12:07:50 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |