delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/03/31/17:50:01

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Reply-To: <patwa AT patwanet DOT co DOT uk>
From: "Hussein Patwa" <patwa AT patwanet DOT co DOT uk>
To: "'Marco Atzeri'" <marco_atzeri AT yahoo DOT it>, <cygwin AT cygwin DOT com>
References: <0481DB75F122450C86C48D5D92F43A30 AT acer22fc5bc362> <311272 DOT 5713 DOT qm AT web25004 DOT mail DOT ukl DOT yahoo DOT com>
Subject: RE: Changing cygwin account name (cygwin only)
Date: Mon, 31 Mar 2008 23:47:56 +0100
Message-ID: <573A9060E90C4D8592E54EFEAC220383@acer22fc5bc362>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <311272.5713.qm@web25004.mail.ukl.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

> Subject: RE: Changing cygwin account name (cygwin only)
> 
> 
> --- Hussein Patwa ha scritto:
> 
> > One more question though, how can I change the way bash 
> (and tcsh as I 
> > sometimes use it for a change) display the type prompt?  I use a 
> > screen reader and it can get tedious hearing it read out the whole 
> > user AT host each time the prompt appears.  Can I change it to 
> just user, 
> > or rename the host part (which is a random laptop name 
> ACER-12345678 
> > for example) to say just patwa AT laptop without changing the windows 
> > name for it?  I'd experiment with passwd, but I'm not sure if the 
> > machine name given in there is taken from windows, or 
> whether it would 
> > break if I changed it.
> > Hope this makes sense.
> > Sorry, but after all the problems, download, install, delete, 
> > re-install cycles I've had this weekend I'm weary of doing 
> anything on 
> > my own that might break what's an almost perfect setup now.
> >  
> 
> to redefine the prompt you need to assign a  new value to variable PS1
> 
> for your scope should be something simple as PS1='\w\n\$ '
> 
> so you have only the current directory and no username and host.
> 
> http://www.linuxselfhelp.com/howtos/Bash-Prompt/Bash-Prompt-HO
> WTO-2.html
> 
> 
> To define it permanenly, add the command to the file .bashrc 
> in your home dir.

Thanks very much.  I'll have a read through this and a play around.  I might
see if I can have a second install of cygwin to play with so I don't break
my main working one through all my experimenting.

H. 

Kind Regards and Best Wishes,

Hussein Patwa.
-- 
PatwaNet
Tel: 0789 47 595 62

Find me on Facebook: http://www.facebook.com/p/Hussein_Patwa/510013486

Get FREE, full-featured IMAP and webmail NOW!  Unlimited space, zero spam,
what could be better?  Respond now and get started today!


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

- Raw text -


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