From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26771 invoked from network); 3 Jan 2000 18:04:15 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Jan 2000 18:04:15 -0000 Received: (qmail 11806 invoked by alias); 3 Jan 2000 18:04:01 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2821 Received: (qmail 11799 invoked from network); 3 Jan 2000 18:04:00 -0000 Date: Mon, 3 Jan 2000 19:03:55 +0100 (CET) From: Christoph Berg To: zsh-users@sunsite.auc.dk Subject: Re: PS1 corrupted through "su" In-Reply-To: <14448.55754.322294.62194@bartok.lanl.gov> Message-ID: Organization: "Wohnheim D, Universitaet des Saarlandes" MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT 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 Wohnheim D, Zi. 2405, Universität des Saarlandes