emacs-devel
[Top][All Lists]
Advanced

[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 03:24:34 +0200
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

David Hansen ha scritto:

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.


Stefan Monnier ha scritto:

I personally only use `xterm', so I use code like:

if [[ $TERM == xterm* ]]; then PROMPT=$(print -n
"%{\033]0;%m%${my_uid}(#..-%n)\007%}%B%2c-%?%#%b ") else PS1="%B%${my_uid}(#..%n@)%m-%2c-%?%#%b " fi

in my .zshrc, tho this is for Zsh so it won't work as is for you.


Many thanks for these helpful suggestions, and your time.

Cheers,
   Angelo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]