forked from jimlawton/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcshrc
More file actions
34 lines (32 loc) · 1.07 KB
/
cshrc
File metadata and controls
34 lines (32 loc) · 1.07 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
# .cshrc: executed by C shells on startup
#
# This is intended to be a means of launching always
# Bash even if Csh/Tcsh is configured as the login
# shell (think: old-fashioned IT departments).
# If this is login or some command is to be executed
# then change to a sane shell
if ($?loginsh || $?command) then # switch to bash
setenv SHELL /bin/bash
if ($?loginsh) then
if ($?command) then
exec /bin/bash --login -c "$command"
endif
exec /bin/bash --login
endif
# not a login shell, so there must be command
exec /bin/bash -c "$command"
endif
# go ahead, use csh
########################################
# Set up Subversion path. #
########################################
if [ -d /proj/STBTools/tools/svn ]; then
setenv SVNPATH /proj/STBTools/tools/svn/`uname -m`
setenv PATH ${SVNPATH}/bin:${PATH}
setenv PYTHONPATH $SVNPATH/lib/svn-python
if ($?LD_LIBRARY_PATH) then
setenv LD_LIBRARY_PATH ${SVNPATH}/lib:${LD_LIBRARY_PATH}
else
setenv LD_LIBRARY_PATH ${SVNPATH}/lib
endif
fi