This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Root/Administrator privileges from cygwin terminal


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]