Unix C shell startup configuration file found in the home or root directory. The C shell startup configuration file can contain or perform such functions as set variables, define aliases, perform initializations and other tasks.
Users who are more familiar with Microsoft Windows or Microsoft DOS can relate the autoexec.bat and the config.sys files to the .cshrc file.
Example of a .cshrc file
@(#)Cshrc 1.6 91/09/05 SMI
set path = (/usr/local/bin /usr/local/bin/X11 /usr/openwin/bin /usr/bin
/usr/ucb /usr/etc /usr/local/games .)
alias pwd ’echo $cwd’ umask 066
if ($?USER == 0 || $?prompt == 0) exit
set filec
set history=40
set prompt="hostname
> "
Edit the below lines as you want
setenv EDITOR “pico -t” setenv OPENWINHOME /usr/openwin setenv MANPATH /usr/man:/usr/local/man:/usr/openwin/man setenv LD_LIBRARY_PATH /usr/local/lib:/usr/openwin/lib
limit coredumpsize 0
commands for interactive shells
alias ls ’ls -F’ alias cd ‘cd !*;echo $cwd’ alias home ‘cd ~’
MS-DOS aliases
alias dir ’ls -alg’ alias del ‘rm -i’ alias copy ‘cp -i’ alias move ‘mv -i
Terminal settings
setenv TERM vt100 /usr/bin/stty rows 24 /usr/bin/stty cols 80 /usr/bin/stty erase ^H
C Shell, Operating system terms, Unix help