source: trunk/packs/dotfiles/env_setup @ 2054

Revision 2054, 999 bytes checked in by epeisach, 35 years ago (diff)
Changes to be compatible with 6.3B [brlewis]
Line 
1# Prototype file for setting up course-specific environment
2# $Author: epeisach $
3# $Source: /afs/dev.mit.edu/source/repository/packs/dotfiles/env_setup,v $
4# $Header: /afs/dev.mit.edu/source/repository/packs/dotfiles/env_setup,v 1.2 1989-08-18 14:59:05 epeisach Exp $
5
6alias extend 'if (-d \!:2) if ("$\!:1" \!~ *"\!:2"*) setenv \!:1 ${\!:1}:\!:2'
7
8set dir = `/bin/athena/attach -p $SUBJECT`
9if (! $status) then
10        set prompt = "$SUBJECT% "
11        if ( -r $dir/.attachrc) then
12                source $dir/.attachrc
13        else
14                extend PATH $dir/${hosttype}bin
15                extend MANPATH $dir/man
16        endif 
17else
18        echo ""
19        echo "The $SUBJECT filesystem could not be attached."
20        set filsys = `hesinfo $SUBJECT filsys`
21        if ($#filsys < 3) then
22                echo "Check your spelling of the filesystem name."
23        else
24                echo "The $filsys[1] fileserver named $filsys[3] may be down."
25        endif
26        echo ""
27        echo "Type exit to get rid of this window."   
28endif
29unset dir
30unsetenv SUBJECT        # so that child shells won't do all this again.
Note: See TracBrowser for help on using the repository browser.