Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <39926939.1DF67B1F@onera.fr> Date: Thu, 10 Aug 2000 10:35:05 +0200 From: GRENON Richard Organization: ONERA X-Mailer: Mozilla 4.51 [en] (X11; I; OSF1 V4.0 alpha) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT sourceware DOT cygnus DOT com Subject: Re: Some comment about Cygwin1.1.4 References: <398EF5AD DOT 97DC2CEC AT onera DOT fr> <200008071749 DOT NAA01544 AT envy DOT delorie DOT com> <398EFA1C DOT 6EC280E7 AT onera DOT fr> <200008071834 DOT OAA01863 AT envy DOT delorie DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I followed the discussion about my first mail. I received an info about a possible .bashrc file and I did'not see it on the mailing list so I send a copy. Maybe somebody would be interested in. I would not be able to do the test before a week, so if anybody wants to try ... >From: "Robert Praetorius" > >A slightly relevant addition to the bash discussion. I >discovered, almost accidentally, after not having read that part of >the bash docs for years, that bash has a facility for encapsulating >special characters in prompt strings so that they don't cause cause >confusion in line wrap calculations, etc. > >you aren't required to put a newline in your prompt string >to clear the effects of special characters. >All you have to is put \[ . . . \] around the special characters. >Here is what I have in my ~/.bashrc (last line is what matters): Here is a copy of the last line of this .bashrc file : export PS1='\[^[]0;\u@\h \w^G^[[32m\]$\[^[[0m\] ' Richard -- Richard GRENON ONERA Departement d'Aerodynamique Appliquee - DAAP/ACI BP 72, 92322 CHATILLON CEDEX - FRANCE phone : +33 1 46 73 42 17 fax : +33 1 46 73 41 46 mailto:Richard DOT Grenon AT onera DOT fr http://www.onera.fr -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com