[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: On prompt in shell mode
From: |
Angelo Graziosi |
Subject: |
Re: On prompt in shell mode |
Date: |
Thu, 14 Aug 2008 10:50:30 +0200 |
User-agent: |
Thunderbird 2.0.0.16 (Windows/20080708) |
Just for completeness...
David Hansen wrote:
How about:
if [ "x$EMACS" = xt ]; then
# set up your prompt for M-x shell.
else
# fancy prompt for real terminals.
fi
Well, it works just fine on GNU/Linux but not on Cygwin!
On Cygwin, it seems that only the 'else' branch is followed. Indeed using
if [ "x$EMACS" = xt ]; then
# set up your prompt for M-x shell.
PS1='OK1> '
else
# fancy prompt for real terminals.
PS1='OK2> '
fi
both terminals (rxvt, mrxvt, urxvt, xterm...) and Emacs 'M-x shell' have
OK2>
!!! but...
M-x shell
OK2> echo $EMACS
t
Cheers,
Angelo.
- Re: On prompt in shell mode, (continued)
- Re: On prompt in shell mode, Stefan Monnier, 2008/08/12
- Re: On prompt in shell mode, Angelo Graziosi, 2008/08/12
- Re: On prompt in shell mode, Stefan Monnier, 2008/08/13
- Re: On prompt in shell mode, Angelo Graziosi, 2008/08/13
- Re: On prompt in shell mode, Stefan Monnier, 2008/08/13
- Re: On prompt in shell mode, Angelo Graziosi, 2008/08/13
- Re: On prompt in shell mode, David Hansen, 2008/08/13
- Re: On prompt in shell mode, Stefan Monnier, 2008/08/13
- Re: On prompt in shell mode, Angelo Graziosi, 2008/08/13
- Re: On prompt in shell mode,
Angelo Graziosi <=
- Re: On prompt in shell mode, David Hansen, 2008/08/14
- Re: On prompt in shell mode, Angelo Graziosi, 2008/08/14
Re: On prompt in shell mode, Richard M. Stallman, 2008/08/13