zsh-users
 help / color / mirror / code / Atom feed
From: "Gerolf Ziegenhain" <mail.gerolf@ziegenhain.com>
To: zsh-users@sunsite.dk
Subject: Prompt for ZSH
Date: Fri, 25 May 2007 14:20:03 +0200	[thread overview]
Message-ID: <de52e9920705250520y61f7a140x39ce9e994cb7e6d@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 556 bytes --]

Hi,

Recently I switched from bash to zsh. One thing that is _not_ working so far
is my old colored command prompt. I converted it to zsh and it looks like:

export PS1="$(print ${dark_gray})[$(print ${blue})%n$(print
${dark_gray})@$(print ${purple})%m$(print ${dark_gray})|$(print
${none})%1~$(print ${purple})>$(print ${none})"

But this command prompt has a problem with linebreak, as it is too long for
one line because of the escape sequences. In bash this issue could be solved
with something like

\[$COLOR\]

How to do this in zsh?

/BR:
   Gerolf

[-- Attachment #2: Type: text/html, Size: 627 bytes --]

             reply	other threads:[~2007-05-25 12:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-25 12:20 Gerolf Ziegenhain [this message]
2007-05-25 13:12 ` Peter Stephenson

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=de52e9920705250520y61f7a140x39ce9e994cb7e6d@mail.gmail.com \
    --to=mail.gerolf@ziegenhain.com \
    --cc=zsh-users@sunsite.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).