目錄的顏色 - BBS
By Valerie
at 2005-11-22T14:43
at 2005-11-22T14:43
Table of Contents
之前是安裝 gnuls 就可以顯示目錄顏色
但是有另一種方法可以不用安裝 gnuls
爬過文了 可是還是看不懂怎麼修改 該修改哪些檔 ?
我的一般使用者的 .cshrc 檔內容如下 :
========================================================================
# $FreeBSD: src/etc/root/dot.cshrc,v 1.29 2004/04/01 19:28:00 krion Exp $
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
#
alias h history 25
alias j jobs -l
alias la ls -a
alias lf ls -FA
alias ll ls -lA
# A righteous umask
umask 22
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin
/usr/local/bin /usr/X11R6/bin $HOME/bin)
setenv EDITOR vi
setenv PAGER more
setenv BLOCKSIZE K
if ($?prompt) then
# An interactive shell -- set some stuff up
set prompt = "`/bin/hostname -s`# "
set filec
set history = 100
set savehist = 100
set mail = (/var/mail/$USER)
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
endif
endif
========================================================================
我在內容裡加上這行
alias ls ls -G
顏色沒變 失敗
我換加上這兩行
setenv LSCOLORS ExGxcxdxCxegDxabagacad
alias ls "env TERM=vt320-color ls -AFGg"
也不行
請教該如何修改呢 ?
謝謝 ...
--
但是有另一種方法可以不用安裝 gnuls
爬過文了 可是還是看不懂怎麼修改 該修改哪些檔 ?
我的一般使用者的 .cshrc 檔內容如下 :
========================================================================
# $FreeBSD: src/etc/root/dot.cshrc,v 1.29 2004/04/01 19:28:00 krion Exp $
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
#
alias h history 25
alias j jobs -l
alias la ls -a
alias lf ls -FA
alias ll ls -lA
# A righteous umask
umask 22
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin
/usr/local/bin /usr/X11R6/bin $HOME/bin)
setenv EDITOR vi
setenv PAGER more
setenv BLOCKSIZE K
if ($?prompt) then
# An interactive shell -- set some stuff up
set prompt = "`/bin/hostname -s`# "
set filec
set history = 100
set savehist = 100
set mail = (/var/mail/$USER)
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
endif
endif
========================================================================
我在內容裡加上這行
alias ls ls -G
顏色沒變 失敗
我換加上這兩行
setenv LSCOLORS ExGxcxdxCxegDxabagacad
alias ls "env TERM=vt320-color ls -AFGg"
也不行
請教該如何修改呢 ?
謝謝 ...
--
Tags:
BBS
All Comments
Related Posts
ftp 如何抓目錄下的所有檔案
By Olga
at 2005-11-22T12:45
at 2005-11-22T12:45
BBS 打中文字的問題
By Yuri
at 2005-11-22T10:31
at 2005-11-22T10:31
openwebmail 郵件規則
By Daph Bay
at 2005-11-22T10:16
at 2005-11-22T10:16
解壓縮的問題
By Dinah
at 2005-11-22T01:04
at 2005-11-22T01:04
BBS 打中文字的問題
By Sierra Rose
at 2005-11-21T23:36
at 2005-11-21T23:36