[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] emacs eshell shell prompt
From: |
Sarir Khamsi |
Subject: |
Re: [h-e-w] emacs eshell shell prompt |
Date: |
Mon, 20 Feb 2012 11:01:24 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (windows-nt) |
Harry Putnam <address@hidden> 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
address@hidden