-
Notifications
You must be signed in to change notification settings - Fork 4
/
bashrc.autocomp
50 lines (42 loc) · 1.13 KB
/
bashrc.autocomp
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
# 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-v18.14.2
# 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. Instead, look in pwd for the
# top-most directory in the containing a node_modules directory.
dir=`pwd`
node_modules_dir=''
if [ -e "$dir/node_modules" ]
then
node_modules_dir="$dir/node_modules"
fi
while [[ "$dir" != '/' ]]
do
dir=`dirname "$dir"`
if [ -e "$dir/node_modules" ]
then
node_modules_dir="$dir/node_modules"
fi
done
if [ "$node_modules_dir" != '' ]
then
PATH=$PATH:$node_modules_dir/.bin
fi
# Set editor for git
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