This is the mail archive of the
mailing list for the Cygwin project.
Re: [PATCH] base-files-4.0.9: Change prompt if running with admin rights
David Sastre Medina wrote:
On Mon, Feb 27, 2012 at 06:11:30PM +0100, Christian Franke wrote:
This is an updated version of:
Uses the detection method suggested here:
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.
Makes sense. Please also include the '#' as the very old & very well
known root prompt.
A Cygwin shell run as admin has more *effective* rights than a Windows
console run admin. So there should be a "be careful" sign.
I'll see if I can come up with some variation on your patch that does
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple