File tree 2 files changed +12
-13
lines changed
2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ trim_trailing_whitespace = true
13
13
[* .py ]
14
14
indent_size = 4
15
15
16
- [* .sh ]
16
+ [{ * .sh,profile} ]
17
17
indent_size = 2
18
18
19
19
[* .{xml,htm,html,tmTheme} ]
Original file line number Diff line number Diff line change @@ -5,23 +5,23 @@ ENV_DEBUG=${ENV_DEBUG:-false}
5
5
_debug () {
6
6
# Utility to print debug messages
7
7
case " $ENV_DEBUG " in
8
- 1| true| TRUE)
9
- printf " %b" " $( date +%Y-%m-%dT%H:%M:%S%z ) DEBUG "
10
- printf " %b" " $@ "
11
- printf " %b" " \n"
12
- ;;
13
- * ) ;;
8
+ 1 | true | TRUE)
9
+ printf " %b" " $( date +%Y-%m-%dT%H:%M:%S%z) DEBUG "
10
+ printf " %b" " $@ "
11
+ printf " %b" " \n"
12
+ ;;
13
+ * ) ;;
14
14
esac
15
15
}
16
16
17
17
src () {
18
18
# Utility to import configuration files
19
19
if [ " $1 " ]; then
20
- source_file=" $HOME /.dotfiles/environment/$1 .sh"
21
- _debug " Importing $source_file "
22
- if [ -f " $source_file " ]; then
20
+ source_file=" $HOME /.dotfiles/environment/$1 .sh"
21
+ _debug " Importing $source_file "
22
+ if [ -f " $source_file " ]; then
23
23
# shellcheck source=./environment/functions.sh
24
- . " $source_file "
24
+ . " $source_file "
25
25
else
26
26
echo " ERROR: $source_file does not exist"
27
27
fi
@@ -42,8 +42,7 @@ src "aliases"
42
42
43
43
# Find and import local configuration files
44
44
# Anything in environment/*.local.sh will be imported here
45
- for local_env_source_file in $( find_local_config)
46
- do
45
+ for local_env_source_file in $( find_local_config) ; do
47
46
src " ${local_env_source_file% .sh} "
48
47
done
49
48
You can’t perform that action at this time.
0 commit comments