forked from LHNCBC/ucum-lhc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cshrc.ucum
25 lines (23 loc) · 835 Bytes
/
cshrc.ucum
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
# Use the globally installed node and its modules
set LFORMS_NODE=node-v8.12.0-linux-x64
# Set path
set path = (/depot/packages/${LFORMS_NODE}/bin /bin /usr/local/bin /usr/bin /usr/sbin /sbin /etc)
# Add node_modules/.bin to the path. We can find that from `npm bin`, but that
# takes a second or two, and slows things down. Instead, look in pwd for the
# top-most directory in the containing a node_modules directory.
set dir = `pwd`
set node_modules_dir = ''
if ( -e "$dir/node_modules" ) then
set node_modules_dir = "$dir/node_modules"
endif
while ( "$dir" != '/' )
set dir = `dirname "$dir"`
if ( -e "$dir/node_modules" ) then
set node_modules_dir = "$dir/node_modules"
endif
end
if ( "$node_modules_dir" != '') then
set path = ($path $node_modules_dir/.bin)
endif
# Set node in development mode
unsetenv NODE_ENV