Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PS1 corrupted through "su"
- X-seq: zsh-users 2821
- From: Christoph Berg <cb@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: PS1 corrupted through "su"
- Date: Mon, 3 Jan 2000 19:03:55 +0100 (CET)
- In-reply-to: <14448.55754.322294.62194@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- Organization: "Wohnheim D, Universitaet des Saarlandes"
Hello,
I have another question concering the prompt stuff:
My $prompt looks like this:
prompt="%{^[]0;%n@%m:%/^G%}
[%B%{^[[31m%}%?%{^[[0m%}%b] %U%n@%m%u:%40<..<%B%{^[[34m%}%/%{^[[0m%}%b %#"
The main point is that it puts something like "cb@df7cb:/home/cb" in
xterm's title bar.
I would like to have the name of the command currently executed included
there and $POSTEDIT seems the right place to put the escape sequences
needed; however $POSTEDIT does not evaulate variable, so I only get
"%n@%m:%/" as title.
How can I tell zsh to evaluate %- and $-expressions and which variable
contains the command being executed?
... Christoph
PS: It would be nice to have quoting for ESC (^[), ^J etc. (e.g. \012)
--
Christoph Berg <cb@xxxxxxxxxxxxxxxx>
Wohnheim D, Zi. 2405, Universität des Saarlandes
Messages sorted by:
Reverse Date,
Date,
Thread,
Author