Harry Putnam <rea...@newsguy.com> writes:

> Running: GNU Emacs 24.0.92.1 (i386-mingw-nt6.1.7601
>          on win7
> Googling on `shell prompt' and PS1 in eshell... I'm not finding what I
> want. 
>
> I realize eshell may not have anything to do with PS1 variable but
> thought there might be commentary about it in the documentation.
>
> When I run eshell, I do not have a shell prompt.  Should I have?

You should, assuming you invoke with M-x eshell.

> Or how can I create a shell prompt?

What I do is install Cygwin and place this in my ~/.bashrc

export SHELL='c:/usr/cygwin/bin/bash.exe'
export COMSPEC='c:/usr/cygwin/bin/bash.exe'

if [ "$TERM" != "emacs" ]
then
   fancy_ps # some other bash function
else
   PS1="\W$ "
fi

and then start a bash shell in Emacs with M-x shell.

Sarir

-- 
Sarir Khamsi
software guy
sarir.kha...@raytheon.com

Reply via email to