# Sample .cshrc file # Protect yourself - Always put the current directory '.' last in your path. set path = ( $HOME/bin /usr/ucb /usr/bin /bin /usr/5bin /usr/local/bin .) # if not interactive, exit if ($?USER == 0 || $?prompt == 0) exit # settings for interactive shells # put your aliases here - so csh scripts won't have to bother with them # File name completion on a Sun..... set filec # ...but ignore these extensions set fignore = (.o .out % ~ .old .orig ) # turn on history function set history=60 #aliases # useful single character aliases alias h 'history | tail -34' # just show last few alias m more alias g grep # you may like these alias lf 'ls -F' alias ll 'ls -lagF' # new command x: add execute ability to a shell script alias x 'chmod +x' # these scripts add protection for new users # always ask for verification before over-writing any file alias mv 'mv -i' # ask before overwriting file alias cp 'cp -i' # ask before overwriting file # setting the variable 'noclobber' # will warn you if you overwrite an existing file #set noclobber # forces > to be new file, >> to be old file # make some friendlier commands # Don't get in the habit of changing the function of Unix commands alias Rm rm -i alias dir ls alias type more alias copy cp alias move mv alias rename mv alias delete 'rm -i'