Skip to content

Commit 87a9db7

Browse files
committed
update component loaders
1 parent 26082e8 commit 87a9db7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

sys/dots/.bashrc.d/20-functions.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ if [ -f "$REGISTRY/functions.enabled" ]; then
114114
do
115115
# shellcheck disable=SC1090
116116
if [[ "${line:0:1}" != "#" && -n "$line" ]]; then
117-
[ -f "$line" ] && source "$FUNCTIONS"/"$line".functions.bash
117+
file = "$FUNCTIONS"/"$line".functions.bash
118+
[ -f "$file" ] && source "$file"
118119
fi
119120
done < "$REGISTRY/functions.enabled"
120121
fi

sys/dots/.bashrc.d/40-aliases.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ if [ -f "$REGISTRY/aliases.enabled" ]; then
2929
do
3030
# shellcheck disable=SC1090
3131
if [[ "${line:0:1}" != "#" && -n "$line" ]]; then
32-
[ -f "$line" ] && source "$ALIASES"/"$line".aliases.bash
32+
file = "$ALIASES"/"$line".aliases.bash
33+
[ -f "$file" ] && source "$file"
3334
fi
3435
done < "$REGISTRY/aliases.enabled"
3536
fi

sys/dots/.bashrc.d/50-completions.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ if [ -f "$REGISTRY/completions.enabled" ]; then
3838
do
3939
# shellcheck disable=SC1090
4040
if [[ "${line:0:1}" != "#" && -n "$line" ]]; then
41-
[ -f "$line" ] && source "$COMPLETIONS"/"$line".completions.bash
41+
file = "$COMPLETIONS"/"$line".completions.bash
42+
[ -f "$file" ] && source "$file"
4243
fi
4344
done < "$REGISTRY/completions.enabled"
4445
fi

0 commit comments

Comments
 (0)