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