This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin emacs characters


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]