zsh-users
 help / color / mirror / code / Atom feed
From: Christoph Berg <cb@heim-d.uni-sb.de>
To: zsh-users@sunsite.auc.dk
Subject: Re: PS1 corrupted through "su"
Date: Mon, 3 Jan 2000 19:03:55 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.21.0001031833410.258-100000@df7cb.heim-d.uni-sb.de> (raw)
In-Reply-To: <14448.55754.322294.62194@bartok.lanl.gov>

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@heim-d.uni-sb.de>
Wohnheim D, Zi. 2405, Universität des Saarlandes


  reply	other threads:[~2000-01-03 18:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-03 17:25 John Galbraith
2000-01-03 18:03 ` Christoph Berg [this message]
2000-01-03 18:10 ` Steve Reid
2000-01-03 18:14   ` John Galbraith
2000-01-03 18:23     ` Nemeth Ervin
2000-01-04  0:18     ` John Galbraith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.21.0001031833410.258-100000@df7cb.heim-d.uni-sb.de \
    --to=cb@heim-d.uni-sb.de \
    --cc=zsh-users@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).