This is the proposed default .cshrc file. You should source this first in your local .cshrc file. It should set you up for all standard software (emacs, gcc, TeX, etc). Some programs are not directly executable without some environment variables (AIPS, IDL, IRAF, Mathcad). These programs will either have a script which will set everything up or you will need to set them up by hand. Check out the chapter on Application Help for more information about getting special applications to work.

Default .cshrc File

This listing is mainly to show you what the current default .cshrc file will do. To use it, you should place the following line at the beginning of your .cshrc file:

source /applic/nir/sysman/User/cshrc

Note, there shouldn't be a "." before "cshrc". If you are going to be using both SunOS 4.x and 5.x, use the following to switch between them:


CSH script to determine which cshrc file is appropriate.
if ( -x /usr/5bin/uname) then
    set version = `/usr/5bin/uname -r`
else
    set version = `/usr/bin/uname -r`
endif

if ( $version >= "5" ) then
    source /applic/nir/sysman/User/cshrc
else
    source /some/other/file
endif

Default CSH script to initialze the Solaris 2.5 environment.
# The initial, machine wide defaults for csh.

# /usr/ucb needs to come before /usr/bin if you want to use
# the old BSD commands.
set path = (/applic/nir/bin /applic/nir/gnu/bin \
            /applic/nir/teTeX/bin/sparc-solaris2.5 /applic/apx/bin \
            /applic/apx/gnu/bin /usr/openwin/bin /usr/dt/bin \
            /usr/ccs/bin /usr/ucb /usr/bin /usr/etc /usr/sbin )

setenv MANPATH /applic/nir/man:/applic/nir/gnu/man:/usr/man:/applic/apx/man:/applic/apx/gnu/man:/usr/openwin/man:/usr/dt/man:/applic/nir/security/man:/applic/SUNWspro/man

setenv LD_LIBRARY_PATH /usr/openwin/lib:/applic/nir/lib:/applic/nir/gnu/lib:/applic/apx/lib:/applic/apx/gnu/lib:/usr/dt/lib:/applic/SUNWspro/lib

# Where else to search for openwin help files.
setenv HELPPATH /applic/nir/help:/usr/openwin/lib/help

# The computer running the license server.
setenv ACADSERVER savoirfaire.pas.rochester.edu

# Where we get internet news.
setenv NNTPSERVER news.cc.rochestere.edu

set history=50
limit coredumpsize 0
alias more /applic/nir/gnu/bin/less -M -c

stty erase 	# use C-v C-H to insert ^H as one character.

if ($USER == "root") then
    alias setprompt 'set prompt = "! root:`dirs`> "'
else
    alias setprompt 'set prompt = "! `uname -n`:`dirs`> "'
endif
 
alias cd 'chdir \!* ; setprompt'

©1996 kevin mcfadden