Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Prompt for ZSH
- X-seq: zsh-users 11511
- From: "Gerolf Ziegenhain" <mail.gerolf@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Prompt for ZSH
- Date: Fri, 25 May 2007 14:20:03 +0200
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=N21RRCEimFl8J10exCYJqkO1muLmrpavU9fC93ZFGU89UfL7iwhVCkGm/iV1QepjuXsjzx8msYOnyCUdwQ1EgAfm0kfhSVDHDE+U8gVVe+/PLcML0Osoh1P07qNzOvWHspOvFstafLHJD2wblyJlbKUVNdSmVwE8zv/aOd0MbzU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=e1LEnjdaED7fyehKC4UyV5WLJrdsHvnd7PSIaTbvvXcdo7SiZsLbi0KIx6woebAveQgz/j+hfdECI53NzLyh3OhdPhpKGa5GgFLPD2C1sdZRu3AfH0Xwq48PVyQ3ohFU1SMgHyN6iPNhFtgwRcP1wAJK49h2X14XidNjwFhEHQs=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: gerolf.ziegenhain@xxxxxxxxxxxxxx
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author