Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion colors differ on BSD/Linux
- X-seq: zsh-users 5039
- From: william@xxxxxxxxxxxxxxx (Will Yardley)
- To: zsh-users@xxxxxxxxxx
- Subject: Re: completion colors differ on BSD/Linux
- Date: Sun, 9 Jun 2002 13:01:53 -0700
- In-reply-to: <20020609195829.GE15532@xxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: New Dream Network
- References: <20020609193643.57510.qmail@xxxxxxxxxxxxxxxxxxxxxxx> <20020609195829.GE15532@xxxxxxxxx>
Calum Selkirk wrote:
> * Jukka Lehti [jukkalehti@xxxxxxxxx] [2002-06-09 12:36 -0700]:
> > > Try putting
> > >
> > > eval `dircolors`
> > > colors
> > >
> > >
> > > in your .zshrc
> >
> > Unforunately no such commands are available.
>
> dircolors is part of the GNU fileutils suite see:
>
> http://www.gnu.org/directory/fileutils.html
>
> and in my .zshrc in have
>
> eval `dircolors ~/.dir_colors`
>
> and
>
> alias ls='ls --color=auto'
and if you're not using GNU ls, the option for color ls may not exist,
or may be different.
in FreeBSD, the option is '-G', and the environment variable is
"LSCOLORS".
i have stuff like this in my .zshrc.
case $(uname) in
Linux)
LS_COLORS="di=33;4:ln=35;4:ex=31:*.rpm=32:*.gz=34:*.tar=34:*.tgz=36:*.bz 2=36:*.deb=34"
alias ls='ls -F --color'
export LS_COLORS
;;
FreeBSD)
LSCOLORS="3x5x2x3x1x464301060203"
alias ls='ls -GF'
export LS_COLORS
;;
OpenBSD|NetBSD|Darwin)
alias ls='ls -F'
;;
[ etc..... ]
--
Will Yardley
input: william < @ hq . newdream . net . >
Messages sorted by:
Reverse Date,
Date,
Thread,
Author