1 | # Prototype user .cshrc file |
---|
2 | # $Author: epeisach $ |
---|
3 | # $Source: /afs/dev.mit.edu/source/repository/packs/dotfiles/dot.cshrc,v $ |
---|
4 | # $Header: /afs/dev.mit.edu/source/repository/packs/dotfiles/dot.cshrc,v 1.13 1989-08-14 17:36:01 epeisach Exp $ |
---|
5 | |
---|
6 | |
---|
7 | # This file sources a system-wide cshrc file, which: |
---|
8 | # - sets up standard environment variables |
---|
9 | # - sources user file ~/.environment, if it exists |
---|
10 | # - sets standard path, OR sources user file ~/.path, if it exists |
---|
11 | # - sets up standard cshell variables, aliases, etc. |
---|
12 | # - source user file ~/.cshrc.mine, if it exists |
---|
13 | |
---|
14 | set initdir=/usr/athena/lib/init |
---|
15 | |
---|
16 | if (-r $initdir/cshrc) then |
---|
17 | source $initdir/cshrc |
---|
18 | else |
---|
19 | if (-r /usr/prototype_user/.cshrc) then |
---|
20 | if ($?prompt) then # Don't echo if noninteractive |
---|
21 | echo -n "Warning: " |
---|
22 | echo "This workstation has not been upgraded to Release 6.3." |
---|
23 | echo "Using old initialization files." |
---|
24 | endif |
---|
25 | source /usr/prototype_user/.cshrc |
---|
26 | else |
---|
27 | if ($?prompt) then # Don't echo if noninteractive |
---|
28 | echo "Warning: System-wide initialization files not found." |
---|
29 | echo "C Shell initialization has not been performed." |
---|
30 | stty dec |
---|
31 | endif |
---|
32 | # set some basic defaults if failed initialization |
---|
33 | umask 077 |
---|
34 | set path=( . ~/${hosttype}bin /srvd/patch /usr/athena \ |
---|
35 | /bin/athena /usr/bin/X /usr/new /usr/new/mh/bin \ |
---|
36 | /usr/ucb /bin /usr/bin /usr/ibm ) |
---|
37 | endif |
---|
38 | endif |
---|
39 | |
---|
40 | |
---|
41 | # If you want to ADJUST the cshell initialization sequence, create any of |
---|
42 | # the following files (as appropriate) in your home directory, with commands |
---|
43 | # to achieve the effect listed: |
---|
44 | # |
---|
45 | # .environment - setup session environment (set environmental variables, |
---|
46 | # attach lockers, etc.) |
---|
47 | # .path - set default search path (you can refer to shell |
---|
48 | # variable $athena_path, which lists athena default path, |
---|
49 | # when you set path, e.g., "set path=(. $athena_path)") |
---|
50 | # .cshrc.mine - setup cshell environment (set shell variables, aliases, |
---|
51 | # unset system defaults, etc.) |
---|
52 | |
---|
53 | # If you want to CHANGE the cshell initialization sequence, revise this .cshrc |
---|
54 | # file (the one you're reading now). You may want to copy the contents of |
---|
55 | # the system-wide cshrc file as a starting point. |
---|
56 | # |
---|
57 | # WARNING: If you revise this .cshrc file, you will not automatically |
---|
58 | # get any changes that Project Athena may make to the system-wide file at |
---|
59 | # a later date. Be sure you know what you are doing. |
---|
60 | |
---|
61 | |
---|