[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eshell regexp for prompt
From: |
Matthew Flaschen |
Subject: |
Re: eshell regexp for prompt |
Date: |
Sun, 04 Feb 2007 03:26:42 -0500 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20070103) |
Matthew Flaschen wrote:
> Hadron wrote:
>> What is the best regexp to match my eshell prompt which is of the form
>>
>> ~/d1/d1 $
>>
>> which I assume is an eshell default since my normal bash shell is different?
>>
>
> First, are you aware that you can get a bash shell with M-x shell ?
>
> I'll try to look into how you could get the behavior you're asking about
> in eshell.
>
> Matt Flaschen
I figured out the reason it works in shell but not eshell is that shell
is based a framework called comint, which defines a "field" for the
prompt. Beginning of line will stop there. However, eshell makes no
field. I tried to make it do so, but couldn't figure it out (I'm new to
elisp).
Matthew Flaschen
signature.asc
Description: OpenPGP digital signature