delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/05/02/02:20:19

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Tee <Tee-2135 AT mail DOT com>
Subject: Re: an updated howto on a portable/usb cygwin installguide?
Date: Mon, 2 May 2011 06:19:35 +0000 (UTC)
Lines: 12
Message-ID: <loom.20110502T081326-557@post.gmane.org>
References: <4DB51D1C DOT 8000600 AT bonhard DOT uklinux DOT net>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
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

I noticed with your setup I'm stuck with 

[loggedinuser]@[hostmachinename] ~

as my prompt

is there a way  to change the $user variable without editing /etc/profile  ??

mainly to intercept that pesky USER="$(id -un)" to change it to something of my
choosing in the bat file?
ie Tee@[hostmachine]
more specifically to convince the shell that "$(id -un)" or $USER is "TEE"?


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019