ls colorized in freebsd csh??

N. Raghavendra raghu at mri.ernet.in
Sun Apr 10 00:14:14 PDT 2005


At 2005-04-09T17:15:30-03:00, ricardo_j_candiotto at ibest.com.br wrote:

> How do I use a ls colorized in FreeBSD 5.2.1???
> ...
> how to do in FreeBSD csh???

One way is to put something like this in ~/.tcshrc.  See tcsh(1).

---

## Enable color display for listing files.
set color

## Specify the colors for listing various file types.
setenv LS_COLORS "no=00:fi=00:di=01;34:ln=01;36;40:pi=40;33:so=01;35"
setenv LS_COLORS "$LS_COLORS":"bd=40;33;01:cd=40;33;01:or=40;31;01"
setenv LS_COLORS "$LS_COLORS":"ex=01;32;40:*.tar=01;31:*.tgz=01;31"
setenv LS_COLORS "$LS_COLORS":"*.arj=01;31:*.taz=01;31:*.lzh=01;31"
setenv LS_COLORS "$LS_COLORS":"*.zip=01;31:*.z=01;31:*.Z=01;31"
setenv LS_COLORS "$LS_COLORS":"*.gz=01;31:*.deb=01;31:*.jpg=01;35"
setenv LS_COLORS "$LS_COLORS":"*.gif=01;35:*.bmp=01;35:*.ppm=01;35"
setenv LS_COLORS "$LS_COLORS":"*.tga=01;35:*.xbm=01;35:*.xpm=01;35"
setenv LS_COLORS "$LS_COLORS":"*.tif=01;35:*.mpg=01;37:*.avi=01;37"
setenv LS_COLORS "$LS_COLORS":"*.gl=01;37:*.dl=01;37:*.tex=01;35"
setenv LS_COLORS "$LS_COLORS":"*.ps=01;35:"

## Use the `tcsh' builtin command `ls-F' to list files.
alias ls "ls-F"

---

Raghavendra.

-- 
N. Raghavendra <raghu at mri.ernet.in> | See mail headers for contact
Harish-Chandra Research Institute   | and OpenPGP details.



More information about the freebsd-questions mailing list