這是給 Shell csh、tcsh 用內定的環境設定檔案(當登入時就套用這些設定),若是設定此檔則所有使用 csh 及 tcsh 使用者都會套用此設定檔,若此檔與使用者家目錄的內的 .cshrc 有衝突時則會以家目錄設定優先載入。
if ($?prompt) then
# An interactive shell -- set some stuff up
if ( ! $?WINDOW ) then
set prompt = '[%B%m%b] %B%~%b %# '
else
set prompt = "[%B%m:$WINDOW%b] %B%~%b %# "
if ( ! $?SUDO_USER ) then
eval "`tset -s $TERM`"
endif
endif
if ( -f /usr/local/share/examples/pkgtools/tcsh/complete.sample ) then
source /usr/local/share/examples/pkgtools/tcsh/complete.sample
endif
endif
setenv LANG zh_TW.UTF-8
setenv LC_ALL zh_TW.UTF-8
setenv LESSCHARSET latin1
setenv LC_TIME C
#setenv EDITOR vim
# For BSD 4.x
#alias ls env LC_CTYPE=en_US.ISO_8859-1 \ls
# For BSD 5.x 6.x 7.x see /usr/share/locale
alias ls env LC_CTYPE=en_US.ISO8859-1 \ls
set dspmbyte=big5
# ls color
setenv CLICOLOR
set color
setenv LSCOLORS ExGxFxdxCxDxDxBxBxExEx
# Tab key function
set autolist
set autocorrect
# Disable beep voice
set nobeep