what is it? read this: http://en.wikipedia.org/wiki/Unix_shell
for FreeBSD,
- .cshrc for common user located at user home: /home/user/.cshrc.. below is mine..
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 $HOME/bin)
setenv EDITOR vi
setenv PAGER more
setenv BLOCKSIZE K
if ($?prompt) then
# An interactive shell — set some stuff up
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
- .cshrc for user root (su) located at /root/.cshrc.. below is minet..
alias h history 25
alias j jobs -l
alias la ls -a
alias lf ls -FA
alias ll ls -lA
alias ls gnuls –color=auto -AF
# A righteous umask
umask 22
setenv LSCOLORS ExGxFxdxCxegedabagExEx
setenv CLICOLOR yes
set prompt = “[%{33[1;31m%}%n%{33[0m%}@%{33[1;32m%}%m%{33[0m%}] %{33[1;33m%}%/%{33[0;32m%} #%{33[0m%} "
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin)
set set promptchars = '$#'
#set prompt = '\n[%B%n@%m%b] %B%~%b%# ‘
setenv EDITOR vi
setenv PAGER more
setenv BLOCKSIZE K
if ($?prompt) then
# An interactive shell — set some stuff up
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
Note:
- for better performace using my .cshrc, please install gnuls first..
-enjoy-


