delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/19/12:44:08

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: "Eric Lilja" <mindcooler AT gmail DOT com>
Subject: Re: cygwin emacs characters
Date: Mon, 19 Jun 2006 18:43:31 +0200
Lines: 24
Message-ID: <e76k7m$6g3$1@sea.gmane.org>
References: <4938774 DOT post AT talk DOT nabble DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0606191134590 DOT 11100 AT access1 DOT cims DOT nyu DOT edu> <Pine DOT GSO DOT 4 DOT 63 DOT 0606191137260 DOT 11100 AT access1 DOT cims DOT nyu DOT edu> <Pine DOT GSO DOT 4 DOT 63 DOT 0606191143460 DOT 11100 AT access1 DOT cims DOT nyu DOT edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Igor Peshansky wrote:
[snip]
>>
>> PS1 is usually set in .bashrc or .bash_profile, or /etc/profile (or
>> inherited from the environment).  It may be simplest to just add a
>> line at the end of your .bashrc saying "if [ $TERM = emacs ]; PS1='$
>> '; fi".
>                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Make that "if [ $TERM = emacs ]; then PS1='$ '; fi".  I can only claim
> severe coffee deprivation.
> Igor

In my .bashrc I have
if [ "$EMACS" == "t" ]
then
    PS1='\n\[\033[32m\]\u@\h \[\033[33m\w\033[0m\]\n$ '
fi

Here's a screenshot of my Emacs shell (windows native Emacs, cvs version):
student.stunet.se/mindcooler/emacs_shell.png

/ E 




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