[PATCH] base-files-4.0.9: Change prompt if running with admin rights

David Sastre Medina d.sastre.medina@gmail.com
Tue Feb 28 20:25:00 GMT 2012


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

-- 
Huella de clave primaria: AD8F BDC0 5A2C FD5F A179  60E7 F79B AB04 5299 EC56
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: Digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120228/c8a21b9d/attachment.sig>


More information about the Cygwin mailing list