Mark Geisert via Cygwin wrote:
Backwoods BC via Cygwin wrote:
[...]
I don't know if this is the official method, but it works for me:

##### Shell Options
# Elevated privilege windows have $SESSIONNAME set
if [ "$SESSIONNAME" == "" ] ;then
   printf -v adminPmt '[\u2022Admin\u2022] '
else
   export adminPmt=""
fi

I see the opposite on my machine.  Admin window has empty $SESSIONNAME, non-Admin window has "Console".

Feh, I mentally reversed the 'if' clauses. I see the same $SESSIONNAME behavior on my machine. Sorry for the noise.

..mark

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to