Root/Administrator privileges from cygwin terminal

Kevin Layer layer@franz.com
Thu Oct 24 17:24:00 GMT 2013


I use this:

    userchar='$'
    if [ "${WINDIR-}" ]; then
	if net session > /dev/null 2>&1; then
	    userchar='#'
	fi
    fi
    export PS1="$PS1$userchar "

I don't remember where I saw it, but it works well for me.

I don't know if it's worse or better, but I'll throw it out there.

Kevin

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



More information about the Cygwin mailing list