delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/28/15:09:56

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <20000828190802.17965.qmail@web108.yahoomail.com>
Date: Mon, 28 Aug 2000 12:08:02 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Subject: Re: Change command prompt
To: Yu Zhang <yxz11 AT psu DOT edu>, cygwin AT sources DOT redhat DOT com
MIME-Version: 1.0

--- Yu Zhang <yxz11 AT psu DOT edu> wrote:
> Hello there:
> 
> I tried to change command prompt by putting "export PS1='`cygpath -w
> \w`>'"(no double quotation marks) in ~/.bashrc. The prompt changed but the
> cursor is moved to the first column. However, if I execute "export
> PS1='`cygpath -w \w`>'", then everything is fine. What did I do wrong and
> what should I do to change command prompt.
> 

Make sure that the .bashrc file has UNIX style line endings.

cp .bashrc .bashrc.old
tr -d '\r' < .bashrc.old > .bashrc

Cheers,

=====
---
   Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com>
            __Cygwin: POSIX on Windows__
Cygwin Newbies: <http://gw32.freeyellow.com/>
           __Minimalist GNU for Windows__
  Mingw32 List: <http://www.egroups.com/group/mingw32/>
    Mingw Home: <http://www.mingw.org/>

__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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