delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW |
X-Spam-Check-By: | sourceware.org |
Received-SPF: | pass (google.com: domain of d DOT sastre DOT medina AT gmail DOT com designates 10.180.107.6 as permitted sender) client-ip=10.180.107.6; |
Authentication-Results: | mr.google.com; spf=pass (google.com: domain of d DOT sastre DOT medina AT gmail DOT com designates 10.180.107.6 as permitted sender) smtp.mail=d DOT sastre DOT medina AT gmail DOT com; dkim=pass header.i=d DOT sastre DOT medina AT gmail DOT com |
Date: | Tue, 28 Feb 2012 20:47:15 +0100 |
From: | David Sastre Medina <d DOT sastre DOT medina AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [PATCH] base-files-4.0.9: Change prompt if running with admin rights |
Message-ID: | <20120228194715.GB6761@jethro.local.lan> |
References: | <4F4BB942 DOT 80906 AT t-online DOT de> |
MIME-Version: | 1.0 |
In-Reply-To: | <4F4BB942.80906@t-online.de> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
--0eh6TmSyL6TZE2Uz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 27, 2012 at 06:11:30PM +0100, Christian Franke wrote: > This is an updated version of: > http://cygwin.com/ml/cygwin/2011-04/msg00020.html > Uses the detection method suggested here: > http://cygwin.com/ml/cygwin/2011-04/msg00372.html >=20 > Tested with bash, dash, mksh, posh, and zsh (with symlink > /etc/zprofile -> profile) on cygwin 1.7.11-1 and Win7 x64. I've revisited this idea several times, with the purpose of adding /usr/sbin to the PATH and coloring the prompt differently (red?) for admins. I'll see if I can come up with some variation on your patch that does all this. Thanks. --=20 Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56 --0eh6TmSyL6TZE2Uz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iF4EAREIAAYFAk9NL0MACgkQ95urBFKZ7Fbi9QD+I7D+JnIAebp1WVdO0b/gikuA ZERDSJZGZhGauD2VSkAA/R5vnXCUsWwnwJUn0wIDXTlgr+oV43ToEoWP+cTdkl36 =+VYm -----END PGP SIGNATURE----- --0eh6TmSyL6TZE2Uz--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |