forked from LHNCBC/lforms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc.lforms
38 lines (30 loc) · 923 Bytes
/
bashrc.lforms
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
# The following is the standard environment file for the LForms
# development team.
# You should explicitly source
# this first and then do your own environment
# customizations.
# You may set variables before sourcing this to change execution
# of it.
# Use the globally installed node and its modules
NODE_DIR=node-v14.16.1-linux-x64
# Set path
PATH=~/${NODE_DIR}/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.
dir=$(cd $(dirname ${BASH_SOURCE}); pwd)
if [[ -e "$dir/node_modules" ]]
then
PATH=${PATH}:${dir}/node_modules/.bin
fi
# Set node in development mode
unset NODE_ENV
# Set editor for git
export EDITOR=/usr/bin/vim
umask 022
# Set some things only if in an interactive shell
if [[ "$-" == *i* ]]
then
# Maybe needed for CDE
#stty erase ^H
stty erase ^\?
fi