Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Apr 2005 12:46:27 +0530
From:      "N. Raghavendra" <raghu@mri.ernet.in>
To:        ricardo_j_candiotto@ibest.com.br
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ls colorized in freebsd csh??
Message-ID:  <16984.53963.604872.832208@riemann.mri.ernet.in>
In-Reply-To: <20050409201530.8A6B8937AB@mailweb02.ibest.com.br>
References:  <20050409201530.8A6B8937AB@mailweb02.ibest.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
At 2005-04-09T17:15:30-03:00, ricardo_j_candiotto@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@mri.ernet.in> | See mail headers for contact
Harish-Chandra Research Institute   | and OpenPGP details.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16984.53963.604872.832208>