############################################################################ ############################################################################ # This is an example C-shell (tcsh) file that defines the shell environment # Written by Alexey Onufriev for the intro UNIX course. ########################################################################### # To make sure all the variables are set automatically every time you open # a unix shell (terminal): # INSTALLING THE C-SHELL. # Copy this .cshrc.example into .cshrc file in your # home directory and type "tcsh" at the prompt. You are using the C-shell now. # Note that commands in .cshrc will automatically be # executed every time you login and start your shell (terminal). # IMPORTANT: THE FILE MUST BE NAMED .cshrc # Also, DO NOT ERASE the original .cshrc.example: if you mess up the .cshrc # later on, you can always replace it with the original. It is possible # to mess up the shell variables so that you won't be able to work in the # shell, and then the above trick may come in handy. # ################################################################## # The contents of .cshrc are executed # when you start your shell; but if you want # it executed immediately, do "source .cshrc" in your home directory. # This option is useful when you are changing setting # in an existing C-shell and want to immediately test # the effect of changes in the # window you are currently using (any newley opened window will # automatically inherit the new settings). # Of course, C-shell (tsch) is not the only shell available, but the syntax # in this file corresponds to C-shell. # # If you want just some of the shell variables set up: # Just cut and paste any command belwo on command line, # and it will be executed by your shell. But you must make sure you are # running a C-shell, since other shells have slightly different sysntax ####################################################### # Now the gory details: ########################################################## #### # SET umask here, because .login isn't read if you fire up xterms remotely #umask 022 # allow everyone to read my files, only I can write #umask 002 # allow only myself & my group to write, others read only #umask 077 denes all access to group and others umask 026 # allow only myself to write, group can read, others nothing #set noclobber prevents files to be over-written # # # setup default printer here #setenv PRINTER crick setenv ARCH `arch` # test what flavour of unix you are on, # and stores it in the environment variable $ARCH to be used by # other programs running under your shell. #setenv AMBERHOME /home/onufriev/amber9 #setenv MSMS_EXECUTABLE_PATH /usr/local/bin/msms.i86Linux2.2.5.5 #setenv MSMSSERVER /usr/local/bin/msms.i86Linux2.2.5.5 #if ( ! $?LD_LIBRARY_PATH ) setenv LD_LIBRARY_PATH #set path=( /opt/intel/compiler70/ia32/bin $path ) #setenv LD_LIBRARY_PATH "/opt/intel/compiler70/ia32/lib:${LD_LIBRARY_PATH}" set path = ( $path . /usr/local/bin /usr/bin /bin /usr/sbin /usr/X11R6/bin /usr/java/j2sdk1.4.2_02/bin/ ) # set PATH for a non-standard fortran library #setenv LD_LIBRARY_PATH /usr/local/lf9562/lib #VMD LOW GRADE GRAPHICS #setenv VMDSIMPLEGRAPHICS 1 # Environment for Concurrent Version application CVS. # CVS for my group #setenv CVS_RSH ssh #setenv CVSROOT :ext:chekhov:/home/onufriev/cvs #setenv CVS_SERVER /usr/bin/cvs # #setenv MOZILLA_HOME /usr/lib/mozilla-1.2.1 # set filec #refers to filename completion set history = 500 set savehist = 50 #setenv DISPLAY mayer:0.0 # # # Now platform specific stuff # get unix flavor set uname = `uname -a` set osv = `echo $uname | awk '{print $1 substr($3,1,1)}'` #echo "operating system = $osv" limit coredumpsize 1k # # set your aliases that customize many common commands. alias setprompt 'set prompt="\! ${HOSTNAME}:"$cwd": "' setprompt # ALIASES # These customize many common commands and define your own. alias T exec tcsh alias cd 'cd \!* ; setprompt' alias h 'history | tail -20' alias ls ls -CF alias help man # -i means query user if this clobbers existing file alias mv mv -i alias cp cp -i # do not delete files, just move to dumpster alias rm /bin/mv \!:1 $HOME/dumpster # blank screensaver. Saves compute cycles! alias xlockb 'xlock -mode blank' # large fornt Xterm "Protect your eyes, you won't be given another pair". alias XT 'xterm -sb -fn r24 -fg green3 -bg black &' alias xt 'xterm -sb -fg green3 -bg black &' #xhost + bioinformatics.cs.vt.edu #xhost + ap1.cs.vt.edu stty intr '^c'