File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff 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"
120121fi
Original file line number Diff line number Diff 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"
3536fi
Original file line number Diff line number Diff 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"
4445fi
You can’t perform that action at this time.
0 commit comments