-
Notifications
You must be signed in to change notification settings - Fork 43
/
.cshrc
87 lines (75 loc) · 2.55 KB
/
.cshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#! /bin/csh
# sample Ptolemy II .cshrc
# $Id$
# By default, create files that are writable by only the user
# Locally, we override this in ucb-.cshrc
umask 022
# Home directory of the Ptolemy II installation
if (! $?PTII ) setenv PTII $HOME
# Try to set up for Java.
if ( ! $?PTJAVA_HOME ) then
# Search the likely places
if ( ! $?PTJAVA_HOME && -d /usr/local/java) then
setenv PTJAVA_HOME /usr/local/java
endif
if ( ! $?PTJAVA_HOME && -d /vol/doppler/doppler2/tools/java/j2sdk1.4.1) then
setenv PTJAVA_HOME /vol/doppler/doppler2/tools/java/j2sdk1.4.1
endif
if ( ! $?PTJAVA_HOME && -d /usr/java ) then
setenv PTJAVA_HOME /usr/java
endif
if ( ! $?PTJAVA_HOME && -d /opt/java) then
setenv PTJAVA_HOME /opt/java
endif
endif
set javapath
if ( $?PTJAVA_HOME ) then
# The user has PTJAVA_HOME set, so they must know what they are doing.
set javapath=$PTJAVA_HOME/bin
if ( ! $?JAVAHOME ) then
setenv JAVAHOME $PTJAVA_HOME
endif
endif
# Path may need adjusting, especially for accessing X programs.
set path = ( \
$PTII/bin \
$javapath \
$PTII/vendors/sun/JavaScope/bin \
/usr/X11/bin \
/usr/openwin/bin \
/usr/local/bin \
/opt/SUNWspro/bin \
/usr/ucb /usr/bin /bin \
/usr/bsd \
/usr/bin/X11 \
/users/ptdesign/gnu/sol2.5/bin \
/usr/ccs/bin \
/usr/sww/bin /usr/sww/X11/bin . )
if ($?prompt) then
# Set automatic file completion
set filec
set notify noclobber
set history=100
set shorthost=` hostname | sed -e 's/\..*$//'`
# hppa does not seem to set $user
set myusername=`whoami`
set prompt="$myusername@$shorthost \!% "
# Useful on the hppa
unset autologout
# some useful aliases
alias ls ls -CF
alias h history
alias j jobs -l
endif
# This is required because of the upgrade to X11R5 on our system
# causes the LD_LIBRARY_PATH to be mis-set as far as THOR is concerned.
# the following corrects for this.
# if (! $?LD_LIBRARY_PATH) setenv LD_LIBRARY_PATH ""
# /usr/local/lib needed for jv-scan, which generates complexity ratings
setenv LD_LIBRARY_PATH /usr/ccs/lib:/usr/lib:/usr/openwin/lib:/usr/sww/X11/lib:/usr/sww/sunos-X11R5/lib:/usr/local/lib
# cvs reads this variable to determine how to ssh
setenv CVS_RSH ssh
# Source UCB local modifications
if (-r ~/ucb-.cshrc) then
source ~/ucb-.cshrc
endif