7
7
# Setting $BASH to maintain backwards compatibility
8
8
# TODO: warn users that they should upgrade their .bash_profile
9
9
export BASH_IT=$BASH
10
- export BASH=" $( bash -c ' echo $BASH' ) "
10
+ BASH=" $( bash -c ' echo $BASH' ) "
11
+ export BASH
11
12
fi
12
13
13
14
# For backwards compatibility, look in old BASH_THEME location
14
15
if [ -z " $BASH_IT_THEME " ];
15
16
then
16
17
# TODO: warn users that they should upgrade their .bash_profile
17
18
export BASH_IT_THEME=" $BASH_THEME " ;
18
- unset $ BASH_THEME;
19
+ unset BASH_THEME;
19
20
fi
20
21
21
22
# Load composure first, so we support function metadata
@@ -30,9 +31,9 @@ LIB="${BASH_IT}/lib/*.bash"
30
31
APPEARANCE_LIB=" ${BASH_IT} /lib/appearance.bash"
31
32
for config_file in $LIB
32
33
do
33
- if [ $config_file != $APPEARANCE_LIB ]; then
34
+ if [ " $config_file " != " $APPEARANCE_LIB " ]; then
34
35
# shellcheck disable=SC1090
35
- source $config_file
36
+ source " $config_file "
36
37
fi
37
38
done
38
39
@@ -57,7 +58,7 @@ source "${BASH_IT}/themes/base.theme.bash"
57
58
58
59
# appearance (themes) now, after all dependencies
59
60
# shellcheck source=./lib/appearance.bash
60
- source $APPEARANCE_LIB
61
+ source " $APPEARANCE_LIB "
61
62
62
63
# Load custom aliases, completion, plugins
63
64
for file_type in " aliases" " completion" " plugins"
@@ -75,7 +76,7 @@ for config_file in $CUSTOM
75
76
do
76
77
if [ -e " ${config_file} " ]; then
77
78
# shellcheck disable=SC1090
78
- source $config_file
79
+ source " $config_file "
79
80
fi
80
81
done
81
82
0 commit comments