| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:from:to:subject:in-reply-to:references:date | |
| :message-id; q=dns; s=default; b=bAGgRwEe6oQTXGY1qYWAuwKemtcq3nB | |
| 9YceBUHkKMRb0ywBzLVnEMqGuU2yQ47Wtw9F4vcR+evChzvlgt/r7Wv+ujA3x8Eb | |
| g3JnMaOcWTjXDq1aqEF2QEzXIYiiW1qxCFm2DQseLdrSTAmz2sDt8VxXY7vKmjce | |
| yrBpUL/sRlmo= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:from:to:subject:in-reply-to:references:date | |
| :message-id; s=default; bh=mKu2IPZHHuDD9PuiTGXYR8Q0nq8=; b=CdjRr | |
| EBov1i27K16qHVaA96CnTXFsVCcub07TItwkhCJeKt1wZD96X029yA0WbAeHhlgy | |
| VVgyFKoBAT5jxfea+Ey6r7X1FHoD+Fu/1tTGpKpAyD96JQeOQTkFnOHI3V8sq99N | |
| Xe26nkQKg6KyLLzdF4PcpUMuzokUkvNVggJwc0= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=-0.3 required=5.0 tests=AWL,BAYES_40,RP_MATCHES_RCVD autolearn=ham version=3.3.2 |
| X-HELO: | freon.franz.com |
| From: | Kevin Layer <layer AT franz DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Root/Administrator privileges from cygwin terminal |
| In-reply-to: | <20131024124731.GB7575@calimero.vinschen.de> |
| References: | <21085 DOT 47545 DOT 572257 DOT 639431 AT consult DOT pretender> <CAFO6C=w=JYbEdGpaqM_f9GE=_=542q8a+VVCJVbYkEvf=Z=gMA AT mail DOT gmail DOT com> <20131024124731 DOT GB7575 AT calimero DOT vinschen DOT de> |
| Comments: | In-reply-to Corinna Vinschen <corinna-cygwin AT cygwin DOT com> message dated "Thu, 24 Oct 2013 14:47:31 +0200." |
| Date: | Thu, 24 Oct 2013 10:19:19 -0700 |
| Message-ID: | <31022.1382635159@freon.franz.com> |
| X-IsSubscribed: | yes |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |