-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStartup
More file actions
340 lines (281 loc) · 7.92 KB
/
Startup
File metadata and controls
340 lines (281 loc) · 7.92 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
#!/bin/tcsh
#CVS crap
setenv CVSROOT ":pserver:dcollins@lca2.ucsd.edu:/usr/local/mhd"
setenv CVS_RSH ssh
setenv EDITOR vim
set EDITOR = vim
setenv CVSEDITOR vim
setenv backups "*~ *#* .#*"
setenv a "*.C *.h *.src *.f *.F"
alias greprl 'grep -Rl --include="*.[ChFf]" \!* .'
alias grepr 'grep -R --include="*.[ChFf]" \!* .'
#alias int_resize = "set noglob; eval `resize`"
#
# paper variables
#
setenv p4 "d116 d117 d118 d119 d120 d121 d122 d123 d124"
#
# Machine Overloads
#
set picoalto = dcollins@128.186.110.154:
set home49 = $picoalto./RESEARCH2/Paper49_EBQU/xfer
set bw = " dcollins@h2ologin.ncsa.illinois.edu:"
set stampede = "tg456484@stampede.tacc.utexas.edu:"
set ranch = "tg456484@ranch.tacc.utexas.edu:"
set tgN = "dcollins@tg-login.ncsa.teragrid.org:"
set maverick = "tg456484@maverick.tacc.utexas.edu:"
set tgS = "ux454321@tg-login.sdsc.teragrid.org:"
set CO = "dcollins@cobalt.ncsa.teragrid.org:"
set kraken = "collins@kraken.nics.utk.edu:"
set krakenp = "collins@kraken-pwd.nics.utk.edu:"
set ds = "ux454321@dslogin.sdsc.edu:"
set dsdirect = "ux454321@dsdirect.sdsc.edu:"
set abe = "dcollins@abe.ncsa.uiuc.edu:"
set pp = "dcollins@ppcluster.ucsd.edu:"
set lca2 = "dcollins@lca2.ucsd.edu:"
set ranger="tg456484@tg-login.ranger.tacc.teragrid.org:"
set rangerw="tg456484@tg-login.ranger.tacc.teragrid.org:/scratch/00369/tg456484/"
set triton="dccollin@triton-login.sdsc.edu:"
set subsonic="dcollins@98.230.62.55:"
set yellow="david_c@yr-fe1"
set nautilus="collins@login.nautilus.nics.teragrid.org:"
set lobo="david_c@wtrw.lanl.gov:lo-fe1:"
set lobosftp="david_c@turq-fta1.lanl.gov"
set teahupoo="128.165.45.11"
set nazare="dcollins@nazare.physics.fsu.edu:"
set cloudbreak="dccollins@cloudbreak.physics.fsu.edu:"
set pig = $nazare./PigPen
set noclobber
#
# HG repo variables
#
set woc_repo = "http://dcollins:se7meaor@hg.spacepope.org/week-of-code/"
set mrg_repo = "http://dcollins:se7meaor@hg.spacepope.org/mhdctmerge/"
#
# Things that I've disabled, and may break other things.
#
#if python 2.4.x isn't the default, set python24 in .cshrc
#if ( ! ( -e ~/Scripts/python24 ) ) ln -s /usr/bin/python ~/Scripts/python24
#set path=($path ~/Scripts . $src)
#echo "warning: path not set correctly. totalview wont' work."
if( $?ScriptDir == 0 ) then
setenv ScriptDir $HOME/Scripts
endif
set path=($ScriptDir $ScriptDir/RunTracker $path)
#
# Determine machine, for preferences and prompts.
#
#set prompt_word = $machine
set prompt_word = "%m"
if( $?machine == 0 ) then
#for the mac: It's the only darwin, and the '-a' option output changes with location.
if( `uname` == Darwin ) then
set machine = MAC
set prompt_word = MAC
alias gsed /sw/bin/sed
else
set machine = `uname -a | awk '{print $2}'`
endif
#triton
if( $machine == login-4-0.local ) then
set prompt_word = "triton"
endif
else
set prompt_word = $machine
endif
if ( $?USE_PYTHON3 ) then
if ( $USE_PYTHON3 == 1 ) then
set prompt_word = "$prompt_word"_PY3
endif
endif
#teragrid sub-nodes
if( `echo $machine | cut -c 1-4` == tg-c ) then
set prompt_word = "TG"
endif
#cobalt
if( `echo $machine | cut -c 1-8` == co-login ) then
set prompt_word = "CO"
endif
#abe
if( `echo $machine | cut -c 1-6` == honest ) then
set prompt_word = "ABE"
endif
#cluster
if( `echo $machine | cut -c 1-9` == ppcluster ) then
set prompt_word = "PP"
endif
#helsinki
if(`hostname` == "naiad.astro.helsinki.fi" ) set prompt_word = NAIAD
if(`hostname` == "hectar.astro.helsinki.fi" ) set prompt_word = HECTAR
if( `hostname |cut -c 1-3` == sky ) set prompt_word = `hostname |cut -c 1-4`
#Teragrids need a little more love.
if ( `echo $machine |cut -c 1-8` == "tg-login" ) then
if( `hostname -f |cut -d . -f 2` == sdsc ) then
set prompt_word = "tgS"
unset machine
setenv machine tgS
#printf "\033]2;tgS\007"
endif
if( `hostname -f |cut -d . -f 2` == ncsa ) then
set prompt_word = "tgN"
unset machine
setenv machine tgN
# printf "\033]2;tgN\007"
endif
endif
#
# Just to be sure...
#
setenv machine $machine
if( `hostname | cut -f 2 -d .` == ranger) then
set prompt_word = "RANGER"
endif
#
# Maybe I need to keep on top of nodes...
#
if ( $machine == stampede || $machine == stampede2 || $machine == pleiades ) then
set prompt_word = `uname -n`
endif
alias prompt_long set prompt = $prompt_word":%~\>"
alias prompt_short set prompt = $prompt_word":%c\>"
alias prompt_shortest set prompt = "%c\>"
prompt_long
alias lsi "ls -1 |grep -i \!*"
alias pybuild "python setup.py build_ext -i"
if ( $?YT_DEST == 1 ) then
alias yt_prompt_long set prompt = yt-$prompt_word":%~\"
alias my_activate "set path = ($YT_DEST/bin $path); set prompt = yt-$prompt_word':'%~'\>'"
#set prompt = yt-$prompt_word\ %~%"
else
alias my_activate "cannot activate: YT_DEST not set"
endif
#
# Aliases for directories.
#
alias calc 'awk "BEGIN{ print \!* }" '
alias dve "echo no dve directory defined"
if( $?dve != 0 ) then
alias dve "cd $dve"
endif
alias mhdctmerge "echo no mhdctmerge directory defined."
if( $?mhdctmerge != 0 ) then
alias mhdctmerge "cd $mhdctmerge"
endif
alias mhd "echo no mhd directory defined."
if( $?mhd != 0 ) then
alias mhd "cd $mhd"
endif
alias devel "echo no devel directory defined."
if( $?devel != 0 ) then
alias devel "cd $devel"
endif
alias llnl "echo no llnl directory defined."
if( $?llnl != 0 ) then
alias llnl "cd $llnl"
endif
alias scratch "echo no scratch directory defined."
if( $?scratch != 0 ) then
alias scratch "cd $scratch"
endif
alias src "echo no src directory defined."
if( $?src != 0 ) then
alias src "cd $src"
endif
alias src2 "echo no src2 directory defined."
if( $?src2 != 0 ) then
alias src2 "cd $src2"
endif
alias stable "echo no stable directory defined."
if( $?stable != 0 ) then
alias stable "cd $stable"
endif
alias unstable "echo no unstable directory defined."
if( $?unstable != 0 ) then
alias unstable "cd $unstable"
endif
alias wan "echo no wan directory defined."
if( $?wan != 0 ) then
alias wan "cd $wan"
endif
alias trunk "echo no trunk directory defined."
if( $?trunk != 0 ) then
alias trunk "cd $trunk"
endif
alias woc "echo no woc directory defined."
if( $?woc != 0 ) then
alias woc "cd $woc"
endif
alias yoc "echo no yoc directory defined."
if( $?yoc != 0 ) then
alias yoc "cd $yoc"
endif
if( $?mrg != 0 ) then
alias mrg "cd $mrg"
if( -e $mrg/merge_tools )then
set path=($path $mrg/merge_tools )
endif
else
alias mrg "echo No mrg dir defined."
endif
#
# Because I can't type
#
#if( $machine != MAC && $machine != cortezbank && $machine != Nazare && $machine != picoalto ) alias make gmake
alias moer 'more'
alias mroe 'more'
alias meor 'more'
alias more less
#
# Because Im Lazy
#
alias lusg "ls -1f | grep \!* |sort"
alias li "ls -1 |grep -i \!*"
alias ll ls -l
alias la ls -a
alias lh ls -lh
alias emacs "emacs -nw"
alias em "emacs \!*"
alias cvd "cvs diff -wc \!* |less"
alias svd "svn diff \!* |less"
alias hgd "hg diff \!* |less"
alias hgl "hg log \!* |less"
alias hgs "hg status \!* |less"
alias cvu "cvs update"
alias svd "svn diff \!* |less"
alias gko "gdsm kr \!* -o"
alias gk "gdsm kr \!*"
alias gto "gdsm triton \!* -o"
alias gt "gdsm triton \!*"
#
# batch queries
#
#
# Experiments.
#
alias AliasCmdLineArgs "echo Your command line args are \!*"
alias name 'printf "\033]0;\!*\007"'
alias perf '/usr/local/apps/perf/perf \!*'
if( -e ~/Scripts ) then
alias ack '~/Scripts/ack --nogroup \!*'
else
alias ack "$proj/Scripts/ack --nogroup \!*"
endif
#if ( ${?SSH_TTY} ) then
# echo "dont forget to check the code back in"
#endif
#
# To make other scripts more general
# This is actually breaking with the general paradigm of this
# script, namely checking existance of things set in .cshrc.
#
switch( $machine )
case "lca2.ucsd.edu":
set open_png = feh
set open_pdf = acro
breaksw
case "MAC":
set open_png = open
set open_pdf = open
breaksw
endsw
set path=(. $path )