zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Lyons <fusion@nmt.edu>
To: zsh-workers@sunsite.dk
Subject: colors & tab completion
Date: Fri, 7 Sep 2001 02:11:11 -0600	[thread overview]
Message-ID: <20010907021111.B14003@nmt.edu> (raw)

Hi everyone,

I just recently decided to try and make that color prompt I always
wanted, so I eventually came up with this setup (after parsing
/usr/local/share/zsh/3.1.9/colors):

PROMPT="${fg[magenta]}%n${fg[white]}@${fg[green]}%m ${fg[blue]}%C \
${fg[white]}%(#.=>.->) "

this clearly makes this format: "username@host directory -> " with
the username magenta, the host green, and the directory blue.  the
-> becomes => when logged in as root.

anyway, that all works fine.  the problem is that when one presses
tab multiple times to activate automenu, this is what gets
displayed:

"username@host directory -> filename.ext1                     ext2"

where the huge gap appears to be about equal to the length of the
color prompt.

I tried doing this with zsh -f, in case it was my config file, and
it wasn't.  I'm running OpenBSD 2.9 on my personal system, but I
have the same problem on the university computers running a
Slackware variant.  Same problem with zsh versions 3.1.9 and 4.0.2.

any help would be greatly appreciated!  Thank you

Daniel


             reply	other threads:[~2001-09-07  8:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-07  8:11 Daniel Lyons [this message]
2001-09-07  8:22 ` Borsenkow Andrej

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=20010907021111.B14003@nmt.edu \
    --to=fusion@nmt.edu \
    --cc=zsh-workers@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).