Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Colors
- X-seq: zsh-users 414
- From: Bruce Stephens <stephens@xxxxxxxxxxx>
- To: shr@xxxxxx (Scott RoLanD)
- Subject: Re: Colors
- Date: Fri, 20 Sep 1996 11:29:49 +0200 (MET DST)
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <9609200203.AA10566@s3> from "Scott RoLanD" at Sep 19, 96 07:03:41 pm
> I just started using color-ls with a color-xterm last month, and I'm
> addicted to it now.
>
> But now when I use tab compeltion in zsh for cd and ls it feels weak.
>
> What I'd like is for:
> less d<tab>
>
> to look exactly the same as:
> ls -d d*
>
> Is it in theory possible to do the above with compctl? If not how
> might we add it?
Not with compctl, but somebody has a patch to do it. It was rejected
for the standard release in favour of (one day) dynamically loadable
extensions to do this kind of thing. I don't remember the URL for the
patches, unfortunately. I'm sure somebody can, or you could search the
mail archives.
> Zsh currently supports making the prompts bold, etc. Has anyone played
> with trying to give them certain colors?
Sure. Look at the %{..%} codes. For example, I have
PS1="%{$(print -n '\e[46;34;1m')%}%@, %D{%A %d %B} %m%#%{$(print -n '\e[m')%} "
Messages sorted by:
Reverse Date,
Date,
Thread,
Author