Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completion colors differ on BSD/Linux



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