delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/06/16/15:06:32

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:from:to:subject:references:date:in-reply-to
:message-id:mime-version:content-type; q=dns; s=default; b=g6SKL
vFEAUCSsu2vAQIM1g5mUWMSTaatihZBojIdoTwDgAiQ0KjYRkM3uEo9ps8M3D315
CNmoqKjn22SPxBN1KXqxum58IuKKImgO2lS10nIYzVLBk5l/kDgGTXY+AlGqza92
ZR5pGUpPW5n4qbOEETlkpJfo5B2+vc07S9riYY=
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:from:to:subject:references:date:in-reply-to
:message-id:mime-version:content-type; s=default; bh=IfVJ4BL9ibv
f67LLtoVhppwl8DA=; b=EWu+hWTuOmJ7mOrsVe6gZRLi0NkqEGighQz+k3o9mbM
jMUTjIUl78LoqEui+7U3P+tE3UKphzJy1RojfpFAy/O+Q5mG2bwAu1omYLvqsS4y
qHBkS5lSGdDobcn/r0pZ2PSmuN7hcyLPekv8xsBhR/obdY8gUYgyJFV+fmZ8WWVM
=
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=-3.9 required=5.0 tests=AWL,BAYES_50,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2
X-HELO: mail-in-08.arcor-online.net
X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-04.arcor-online.net BF7C1A9E35
From: Achim Gratz <Stromeko AT nexgo DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: Change PS1 when running as administrator
References: <CAKf2h5TWGDwFj-wCav6Skqae+iaLHHtsGBWy1sS9v-PcaJxh3Q AT mail DOT gmail DOT com>
Date: Mon, 16 Jun 2014 21:06:01 +0200
In-Reply-To: <CAKf2h5TWGDwFj-wCav6Skqae+iaLHHtsGBWy1sS9v-PcaJxh3Q@mail.gmail.com> (Frank Fesevur's message of "Mon, 16 Jun 2014 13:24:18 +0200")
Message-ID: <874mzkptd2.fsf@Rainer.invalid>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux)
MIME-Version: 1.0

Frank Fesevur writes:
> When I run as administrator I change my PS1 from "$" to "#" with these
> line in ~/.bashrc.
>
> if id -Gn | grep -i Administrators > /dev/null

If anything I'd check for membership in group 544.  "Administrators"
surely is one of these strings that gets localized depending on the
phase of the moon or something.  I can't look right now, but I'm pretty
sure it says "Administratoren" in a german Windows version.

> If more people like this idea, maybe it could included in /etc/bash.bashrc?

I'll have to think about it, but I lean toward putting it into profile.d
instead.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019