This is the mail archive of the
mailing list for the Cygwin project.
Re: Change PS1 when running as administrator
- From: Thomas Wolff <towo at towo dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 17 Jun 2014 08:53:11 +0200
- Subject: Re: Change PS1 when running as administrator
- Authentication-results: sourceware.org; auth=none
- References: <CAKf2h5TWGDwFj-wCav6Skqae+iaLHHtsGBWy1sS9v-PcaJxh3Q at mail dot gmail dot com> <874mzkptd2 dot fsf at Rainer dot invalid> <CAKf2h5RT-xFKyu3gxSnrw-_y-sxDefdJKYrCg4XOcRf0HZxvrw at mail dot gmail dot com>
Am 16.06.2014 22:04, schrieb Frank Fesevur:
I can confirm it is localized in German Windows (as I had been told
myself when I proposed the same idea here 2 months ago:) ).
2014-06-16 21:06 GMT+02:00 Achim Gratz:
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.
On all my Dutch Windows all group names are localized apart from
As Corinna had said. Yet, I'd like to check official documentation to
confirm "544" is a constant for this purpose.
Other suggestions had been discussed (like checking something in
But I agree checking the numeric value is better.
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple