1 |
|
2 |
################################################################# |
3 |
# |
4 |
# .cshrc file |
5 |
# |
6 |
# initial setup file for both interactive and noninteractive |
7 |
# C-Shells |
8 |
# |
9 |
################################################################# |
10 |
|
11 |
|
12 |
# Set openwin as my default window system |
13 |
set mychoice=openwin |
14 |
|
15 |
# set up search path |
16 |
|
17 |
# add directories for local commands |
18 |
set lpath = ( ) |
19 |
if ( ${?mychoice} != 0 ) then |
20 |
if ( ${mychoice} == "openwin" ) then |
21 |
set lpath = ( /usr/openwin/bin/xview /usr/openwin/bin /usr/openwin/lib $lpath ) |
22 |
endif |
23 |
endif |
24 |
|
25 |
limit descriptors 200 |
26 |
|
27 |
set path = (. ~ $lpath /usr/local /usr/local/bin /usr/bin /usr/ucb /usr/etc /usr/sbin \ |
28 |
/tis4000/tasks /tis4000/apple /tis4000/snl /tis4000/udb /tis4000/graphics \ |
29 |
/opt/Acrobat4/bin /opt/Applix /export/home/tis4000/UTILITIES /export/home/oracle/orahome ) |
30 |
|
31 |
setenv XAPPLRESDIR $HOME/tasks |
32 |
setenv WINDOW_MGR 'olwm' |
33 |
setenv OPENWINHOME /usr/openwin |
34 |
# |
35 |
setenv LD_LIBRARY_PATH /usr/openwin/lib:/usr/X11R5/lib:/usr/Motif1.2.4/lib:/usr/dt/lib |
36 |
setenv XENVIRONMENT /home/tis4000/tasks/tis4000Xdefaults |
37 |
setenv EDITOR textedit |
38 |
setenv GALAXYHOME /galaxy |
39 |
# |
40 |
# |
41 |
# Setup Oracle Logicals |
42 |
# |
43 |
setenv ORACLE_BASE /home/oracle |
44 |
setenv ORACLE_DOC /home/oracle/orahome/wg/doc |
45 |
setenv ORACLE_HOME /home/oracle/orahome |
46 |
setenv ORACLE_NLS /home/oracle/orahome/ocommon/nls/admin/dat |
47 |
setenv ORACLE_SID tis4 |
48 |
# |
49 |
|
50 |
setenv EPICS_DISPLAY_PATH /tis4000/graphics |
51 |
# |
52 |
# set EPICS_TS_MIN_WEST based on the Timezone |
53 |
# |
54 |
set myzone=`date "+%Z"` # get the Current Timezone from the date |
55 |
|
56 |
if ( $myzone == "EDT" || $myzone == "EST" ) then |
57 |
setenv EPICS_TS_MIN_WEST 300 |
58 |
else if ( $myzone == "CDT" || $myzone == "CST" ) then |
59 |
setenv EPICS_TS_MIN_WEST 360 |
60 |
else if ( $myzone == "MDT" || $myzone == "MST" ) then |
61 |
setenv EPICS_TS_MIN_WEST 420 |
62 |
else if ( $myzone == "PDT" || $myzone == "PST" ) then |
63 |
setenv EPICS_TS_MIN_WEST 480 |
64 |
endif |
65 |
|
66 |
|
67 |
# cd path |
68 |
|
69 |
#set lcd = ( ) # add parents of frequently used directories |
70 |
#set cdpath = (.. ~ ~/bin ~/src $lcd) |
71 |
|
72 |
# set this for all shells |
73 |
|
74 |
#set noclobber |
75 |
|
76 |
# aliases for all shells |
77 |
|
78 |
alias cd 'cd \!*;echo $cwd' |
79 |
alias mailx 'mail' |
80 |
alias cp 'cp -i' |
81 |
alias mv 'mv -i' |
82 |
#alias rm 'rm -i' |
83 |
alias pwd 'echo $cwd' |
84 |
#alias del 'rm -i' |
85 |
umask 000 |
86 |
tset -e |
87 |
# |
88 |
# setup alias for printing text files to a Post Script printer |
89 |
# |
90 |
alias print '/usr/lib/lp/postscript/postprint \!* | lp' |
91 |
alias print_land '/usr/lib/lp/postscript/postprint -pland \!* | lp' |
92 |
alias psg '/usr/ucb/ps -axww | grep \!* | grep -v grep' |
93 |
|
94 |
# skip remaining setup if not an interactive shell |
95 |
|
96 |
if ($?USER == 0 || $?prompt == 0) exit |
97 |
|
98 |
# settings for interactive shells |
99 |
|
100 |
set history=40 |
101 |
set ignoreeof |
102 |
#set notify |
103 |
#set savehist=40 |
104 |
#set prompt="% " |
105 |
#set prompt="`hostname`{`whoami`}\!: " |
106 |
#set time=100 |
107 |
|
108 |
# commands for interactive shells |
109 |
|
110 |
#date |
111 |
#pwd |
112 |
|
113 |
|
114 |
# other aliases |
115 |
|
116 |
#alias a alias |
117 |
#alias h 'history \!* | head -39 | more' |
118 |
#alias u unalias |
119 |
|
120 |
#alias clear |
121 |
#alias list cat |
122 |
#alias lock lockscreen |
123 |
#alias m more |
124 |
alias mroe more |
125 |
#alias type more |
126 |
|
127 |
#alias . 'echo $cwd' |
128 |
#alias .. 'set dot=$cwd;cd ..' |
129 |
#alias , 'cd $dot ' |
130 |
|
131 |
#alias pdw 'echo $cwd' |
132 |
#alias la 'ls -a' |
133 |
alias ll 'ls -la' |
134 |
#alias ls 'ls -F' |
135 |
|
136 |
#alias pd dirs |
137 |
#alias po popd |
138 |
#alias pp pushd |
139 |
|
140 |
#alias +w 'chmod go+w' |
141 |
#alias -w 'chmod go-w' |
142 |
#alias x 'chmod +x' |
143 |
|
144 |
#alias j 'jobs -l' |
145 |
|
146 |
alias bye logout |
147 |
#alias ciao logout |
148 |
#alias adios logout |
149 |
|
150 |
#alias punt kill |
151 |
|
152 |
#alias r rlogin |
153 |
alias run source |
154 |
|
155 |
#alias nms 'tbl \!* | nroff -ms | more' # nroff -ms |
156 |
#alias tms 'tbl \!* | troff -t -ms >! troff.output &' # troff -ms |
157 |
#alias tpr 'tbl \!* | troff -t -ms | lpr -t &' # troff & print |
158 |
#alias ppr 'lpr -t \!* &' # print troffed |
159 |
|
160 |
#alias lp1 'lpr -P1' |
161 |
#alias lq1 'lpq -P1' |
162 |
#alias lr1 'lprm -P1' |
163 |
|
164 |
#alias sd 'screendump | rastrepl | lpr -v &' |
165 |
|
166 |
alias ed textedit |
167 |
|
168 |
#alias help man |
169 |
#alias key 'man -k' |
170 |
|
171 |
#alias mkae make |
172 |
# |
173 |
source /tis4000/.Cshrc.tis4000 |