Unix Shell - zsh - how to change dir colors?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > January 2006 > zsh - how to change dir colors?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author zsh - how to change dir colors?
leob@fakemail.com

2006-01-29, 9:31 pm

Xref: number1.nntp.dca.giganews.com comp.unix.shell:178170

Hello everyone,

i use xterm -bg black in ZSH and it is hard to me
to read the directories, as they are written in
dark blue by default. Sorry, but i didn't find
easily how to set up directory colors in ZSH.
Could any one help me?

Thank in advance!

Regards,

Leo
Bill Marcum

2006-01-29, 9:31 pm

On Sat, 28 Jan 2006 19:45:00 -0200, leob@fakemail.com
<leob@fakemail.com> wrote:
> Hello everyone,
>
> i use xterm -bg black in ZSH and it is hard to me
> to read the directories, as they are written in
> dark blue by default. Sorry, but i didn't find
> easily how to set up directory colors in ZSH.
> Could any one help me?
>

The directory colors are not a feature of zsh, they are part of GNU ls.
man dircolors; man ls. You can get rid of the colors with:
alias ls="ls --color=never"

--
Did you know that for the price of a 280-Z you can buy two Z-80's?
-- P.J. Plauger
Stephane CHAZELAS

2006-01-29, 9:31 pm

2006-01-28, 18:09(-05), Bill Marcum:
> On Sat, 28 Jan 2006 19:45:00 -0200, leob@fakemail.com
> <leob@fakemail.com> wrote:
> The directory colors are not a feature of zsh, they are part of GNU ls.
> man dircolors; man ls. You can get rid of the colors with:
> alias ls="ls --color=never"


Yes, they are a feature of zsh. zsh completion can have the
same color scheme as GNU ls. Depending on how you configured it
in zsh with compinstall, it will use the same values as ls, so
you can tune it with dircolors(1). Otherwise, you can tune it
with the list-colors zstyle.

see info -f zsh --index-search=list-colors

You can also tune xterm colors with a X resource file. See X11
and xterm man page.

With XFree86 xterm, you can dynamically change colors with some
escape sequences, as well, though I think you can only change
background and foreground default colors.

print -n '\e]11;blue\a'

--
Stéphane
Thomas Dickey

2006-01-29, 9:31 pm

Stephane CHAZELAS <this.address@is.invalid> wrote:

> With XFree86 xterm, you can dynamically change colors with some
> escape sequences, as well, though I think you can only change
> background and foreground default colors.


Through that escape sequence, yes ("dynamic" colors control sequence only
defined the foreground, background, cursor, etc). But the OSC 4 control
sequence allows changing any of the ANSI/ISO colors.

from ctlseqs.ms:

Ps = 4 ; c ; spec -> Change Color Number c to the
color specified by spec, i.e., a name or RGB specifica-
tion as per XParseColor. Any number of c name pairs may
be given. The color numbers correspond to the ANSI col-
ors 0-7, their bright versions 8-15, and if supported,
the remainder of the 88-color or 256-color table.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Timothy Larson

2006-01-30, 8:42 am

leob@fakemail.com wrote:
> Hello everyone,
>
> i use xterm -bg black in ZSH and it is hard to me
> to read the directories, as they are written in
> dark blue by default. Sorry, but i didn't find
> easily how to set up directory colors in ZSH.
> Could any one help me?


I change the colors client-side, in my terminal application.

Tim
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com