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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: cygwin AT cygwin DOT com Subject: Re: Change PS1 when running as administrator References: Date: Mon, 16 Jun 2014 21:06:01 +0200 In-Reply-To: (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 Content-Type: text/plain 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