|
|
1.1 ! root 1: # This is 'CSHRC' - it is invoked by the file .cshrc in your home directory ! 2: # It gets read by EVERY new shell (csh) that you start. ! 3: # At login time, this file is read before '.login' ! 4: ! 5: # first work out what type of computer we are using: ! 6: set cputype = "unknown" ! 7: if ($cputype == "unknown") if (-x /bin/sun3) if { /bin/sun3 } set cputype = "sun" ! 8: if ($cputype == "unknown") if (-x /bin/sparc) if { /bin/sparc } set cputype = "sparc" ! 9: if ($cputype == "unknown") if (-x /bin/pyr) if { /bin/pyr } set cputype = "pyr" ! 10: if ($cputype == "unknown") if (-x /bin/vax) if { /bin/vax } set cputype = "vax" ! 11: ! 12: # Name of directory containing all members of this group ! 13: set groupdir = ${HOME}/.. ! 14: ! 15: # Set environment variable to tell X-windows programs where to find things ! 16: setenv X11 /usr/local/lib/X11 ! 17: ! 18: # path is a list of directories in which the shell will look for programs ! 19: set path=( ${home}/bin ${home}/bin.${cputype} ${groupdir}/bin \ ! 20: ${groupdir}/bin.${cputype} /usr/local/bin /usr/ucb /bin /usr/bin \ ! 21: /usr/hosts /usr/games $X11/share/bin /usr/new .) ! 22: ! 23: # history defines how many commands csh will remember ! 24: set history = 20 ! 25: ! 26: # Define the prompt that the system gives when ready for a new command ! 27: set prompt = "`hostname`% " ! 28: ! 29: # 'alias' provides for some shorthand: ! 30: ! 31: # make 'lf' give a useful listing of files showing their types ! 32: alias lf "ls -F" ! 33: ! 34: # make '.' be short for 'logout' ! 35: alias . logout ! 36: ! 37: # make 'hi' be short for 'history' ! 38: alias hi history ! 39: ! 40: # make 'rm' always ask before removing anything ! 41: alias rm "rm -i" ! 42: ! 43: # Use a shell variable to store the name of the last directory we were in, ! 44: # so that 'back' will take us back there. ! 45: alias cd 'set old="$cwd"; chdir \!*' ! 46: alias back 'set back="$old"; set old="$cwd"; cd "$back"; unset back; dirs' ! 47: ! 48: # Now do any things that your group supervisor wants, before carrying on ! 49: # with your own .cshrc ! 50: set grouplib = ${HOME}/../lib ! 51: if ( -r ${grouplib}/CSHRC ) source ${grouplib}/CSHRC
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.