[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: On prompt in shell mode
From: |
David Hansen |
Subject: |
Re: On prompt in shell mode |
Date: |
Thu, 14 Aug 2008 01:17:47 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) |
On Thu, 14 Aug 2008 01:02:27 +0200 Angelo Graziosi wrote:
> works, but
>
> (setenv "PS1" "address@hidden \w\n$ ")
>
> doesn't: Emacs starts with errors:
>
> "An error has occurred while loading '[...]/.emacs':
> error: Non-hex digit used for Unicode escape"
You have to quote the backslash with another backslash (the lisp reader
interprets it special in strings): "address@hidden \\w\\n$".
How about:
if [ "x$EMACS" = xt ]; then
# set up your prompt for M-x shell.
else
# fancy prompt for real terminals.
fi
in ~/.bashrc.
David
- Re: On prompt in shell mode, (continued)
- Re: On prompt in shell mode, adg, 2008/08/12
- Re: On prompt in shell mode, Chong Yidong, 2008/08/12
- 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 <=
- 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, 2008/08/14
- 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