forked from equinor/komodo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enable.csh.in
61 lines (51 loc) · 1.68 KB
/
enable.csh.in
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
changequote(<!,!>)
alias disable_komodo '\\
test $?_PRE_KOMODO_PATH != 0 && setenv PATH "$_PRE_KOMODO_PATH" && unsetenv _PRE_KOMODO_PATH;\\
test $?_PRE_KOMODO_MANPATH != 0 && setenv MANPATH "$_PRE_KOMODO_MANPATH" && unsetenv _PRE_KOMODO_MANPATH;\\
test $?_PRE_KOMODO_LD_PATH != 0 && setenv LD_LIBRARY_PATH "$_PRE_KOMODO_LD_PATH" && unsetenv _PRE_KOMODO_LD_PATH;\\
test $?_KOMODO_OLD_PROMPT != 0 && set prompt="$_KOMODO_OLD_PROMPT" && unsetenv _KOMODO_OLD_PROMPT;\\
test "\!:*" != "preserve_disable_komodo" && unalias disable_komodo;\\
unsetenv KOMODO_RELEASE;\\
unsetenv ERT_LSF_SERVER;\\
rehash;\\
'
rehash
disable_komodo preserve_disable_komodo
if $?PATH then
setenv _PRE_KOMODO_PATH "$PATH"
setenv PATH komodo_prefix/bin:$PATH
else
setenv PATH komodo_prefix/bin
endif
if $?MANPATH then
setenv _PRE_KOMODO_MANPATH "$MANPATH"
setenv MANPATH komodo_prefix/share/man:$MANPATH
else
setenv MANPATH komodo_prefix/share/man:
endif
if $?LD_LIBRARY_PATH then
setenv _PRE_KOMODO_LD_PATH "$LD_LIBRARY_PATH"
unsetenv LD_LIBRARY_PATH
endif
setenv KOMODO_RELEASE komodo_release
set local_script=komodo_prefix/../local.csh
if ( -r $local_script) then
source $local_script
endif
# Could be in a non-interactive environment,
# in which case, $prompt is undefined and we wouldn't
# care about the prompt anyway.
if ( $?prompt ) then
setenv _KOMODO_OLD_PROMPT "$prompt"
set prompt = "[$KOMODO_RELEASE] $prompt"
endif
rehash
changequote()
if ( -d komodo_prefix/../motd/scripts ) then
foreach f (komodo_prefix/../motd/scripts/*)
$f
end
endif
if ( -d komodo_prefix/../motd/messages ) then
cat komodo_prefix/../motd/messages/*
endif